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

Integrating with Robot Framework using API

Has anyone done this?
Just starting studying on the subject and it seems that after this is done to one project I can use the scripts as templates for other projects just changing testcaseID’s etc.

Any pitfalls I should try to avoid?

Hello Marko,

Thanks for your posting. We don’t have an example for Robot currently but TestRail’s API uses simple HTTP calls so this should be easy to integrate. The usual workflow would be “tag” your automated tests with the related test case IDs in TestRail and then use these IDs to add test results via the API (in combination with the ID of the test run, e.g. via the add_result_for_case API method).


I’m trying to integrate robotframe work and Test rail by following below steps
but got the error mentioned after the steps. please help on this?

  1. pip install robotframework-testrail
  2. TestRail API binding for Python (ZIP) (copied this file in local folder)
  3. in robot file used below line
    *** Settings ***
    Library TestRailAPIClient host user password run_id
  4. in command line used below command
    pybot --listener robot_suite.robot

getting error :[ ERROR ] Taking listener ‘’ into use failed:

Importing listener ‘’ failed: Module ‘TestRailListener’ does not contain ‘py’.

Thank you in advance

Any success on integration ?

Hey Phaneendra,

Did you able to integrate Robot framework with Testrail?
Please let me know