Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Calling an automated tool application from TestRail through js customisations


#1

Hi All,

I’ve been mulling this over but hopefully (after reading some of the other posts) i’m trying this out. If I used a basic javascript function i.e.

function runApp()
{
var shell = new ActiveXObject(“WScript.shell”);
shell.run(“xxxxxx.exe”, 1, True);
}

As an example…

How can i plug this in to the customisations with the “$(document).ready(
function() {”

Would I still need to use the $(document).ready(… or would I need to place my function server side in order for it to run?

Thanks in advance


#2

Hi,

Thanks for your posting. We usually recommend starting automation tools outside of TestRail and then submitting the results via TestRail’s API:

http://docs.gurock.com/testrail-api2/start

This makes it much easier to modify your automation stack in the future and it’s also easier to automate the triggering (e.g. via cron or other scheduling tools).

Cheers,
Tobias


#3

Thanks Tobias,

Maybe I’m looking to deep into things… time to start looking from the outside in :smile:


#4

Thanks, Max. :slight_smile: Please let me know in case any additional questions come up, we are happy to help.

Cheers,
Tobias