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

Integrating with Robot Framework using API

#1

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?

#2

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).

Regards,
Tobias

#3

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 TestRailListener.py:testrail_server_name:tester_user_name:tester_user_password:run_id:https:update robot_suite.robot

getting error :[ ERROR ] Taking listener ‘TestRailListener.py:testrail_server_name:tester_user_name:tester_user_password:run_id:https:update’ into use failed:

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

Thank you in advance

#5

Any success on integration ?