Showing results for 
Search instead for 
Did you mean: 

Integration TestRail and TestComplete

New Contributor

Re: Integration TestRail and TestComplete

The class looks like this:


const PORT = 8011;


function TestRailClientClass() {
    this.server = "http://localhost:" + PORT + "/";

TestRailClientClass.prototype.sendResult = function(caseId, caseStatus, failureReason) {
   let message = (caseStatus == 1 ? "test passed" : "test didn't passed");
   let request = aqHttp.CreateGetRequest(`http://localhost:8011/${caseId}_${caseStatus}_${failureReason}`);

module.exports.TestRailClientClass = TestRailClientClass;


Instance of TestRailClientClass sends result of each test to the server (outer program built on Java) that sends result to TestRail. The server uses TestRail API. In other words: I didn't manage to implement TestRail API using Javascript in TestComplete but I had the same implementation on Java, so I added server class to Java-project, that receives http-requests from TestComplete and then passes results to TestRail.

The chain looks like this:

Test passes/faies -> TestRailClientClass sends result to server -> Server sends result to TestRail


New Here?
Join us and watch the welcome video:
Script Wanted
Let's start July with new challenges!

Create a script to pass custom command-line arguments as a test parameter for the TechCorner tag!

Will you dare to take the challenge?

Top Kudoed Authors