Forum Discussion

meowgee0727's avatar
meowgee0727
New Contributor
3 years ago

Any way to upload the testComplete test results to testrail?

I saw one of the comment under this post:

https://community.smartbear.com/t5/TestComplete-Questions/TestComplete-integration-with-TestRail/td-p/93787

 

There is a external function using CLR bridge to execute some of the scripts in .NET

https://support.smartbear.com/testcomplete/docs/testing-with/advanced/using-external-functions/calling-from-dotnet-assemblies.html#PlugIn

 

I now have completed a scripts can analyst the HTML testComplete test result and upload the test result to the testRail.

Can I put this scripts into testComplete and using CLR bridge to execute it?

 

I also see one comment saying there is no direct way to integrate with testrail:

https://community.smartbear.com/t5/TestComplete-Questions/TestComplete-integration-with-TestRail/m-p/186336#M65463

 

Thus, to upload the test result from testComplete can only depend on two way.

1. Create a script to find all of the test result in the HTML package which is exported from testComplete and upload the test result

2. Using CLR bridge to update the test result to testRail (also need a external script)

Correct me if I am wrong, just want to check if we can use the CLR bridge function to upload the test result in testComplete?

 

https://support.smartbear.com/testcomplete/docs/testing-with/advanced/using-external-functions/index.html

 

 

 

 

 

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    In TC, there's a command line parameter called ExportSummary, which allows you to generate a summary report for the current test run, in XML. It should be possible to write a scripts which translates the TC summary report into something that TestRail accepts via its API's.

     

    As far as I'm aware, there's not function in TC that allows this.

     

     

    • meowgee0727's avatar
      meowgee0727
      New Contributor

      Yeah. You’re right. We can also choose to export the test result in different format such as HTML by command line. I think this can use for Jenkins pipeline to automatically upload the test result to testrail. Of course, we still need to implement the scripts for the exported test report. I made the post to make sure I am doing this thing in an efficient way. Thanks for replying!

    • meowgee0727's avatar
      meowgee0727
      New Contributor

      Hello Marsha_R:

       

      I can use my scripts to fetch the test result in the HTML test result package, and upload the test results and attachments to testRail (via testRail API), I just want to know if I can do this within testComplete itself, like using CLR bridge or other internal function to complete the same task.

      • Marsha_R's avatar
        Marsha_R
        Moderator

        So you haven't tried it in TestComplete yet?