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

Testrail and UFT Integration


Has anyone come up with a neat way to push automated test results from HP QTP/UFT to Testrail? I have done some research and struggled to find anyone who has achieved this and would be interested to hear from anyone who has and how it was written.
I assume one could do this with Python pulling elements together given that the Testrail API won’t be natively supported in UFT (it’s VBScript).


Hello Will,

Thanks for your posting! There are two common approaches to integrate automated tests with TestRail and TestRail’s API.

The first one would be to record and submit test results as your test automation tool goes through the tests and this is often implemented by integrating directly with the test execution engine (via listeners, for example). This often requires a tight integration with the test automation tool and using the tools & script the test automation tool provides (VBScript in your case, for example).

The other option is to use result files most test automation tools generate and this can be implemented as a post-processing step and independently of the test automation tool. This is usually the easier and most flexible option and the one we also recommend most of the time. The advantage of this option is that you can use any tool or programming language (such as Python) and independently of running the actual tests. QTP seems to have support for result files as well via the Export/Save File features after running your tests.

I hope this helps!



That’s really useful Tobias, thanks for that, had not thought of using the results as these could be interpreted by virtually any language which can then liaise with the Testrail API.


You are welcome, Will, happy to help :slight_smile:



Hello will,
One question, we just started with testrail and uft and we are in the same situation as you were. We would be grateful if you would explain to us a little bit how you did the integration or if you could send us an example of the same.