Skip to main content

Updated fork of Robot Framework library, listener and pre-run modifier for working with TestRail

Project description

RobotFramework Testrail

Short Description


Updated fork of robotframework-testrail

Installation



pip install u-robotframework-testrail

Documentation


See documentation on GitHub

Usage


How to enable TestRail API

TestRail API Client

Library for working with TestRail.

Example

*** Settings ***

Library    TestRailAPIClient    host    user    password    run_id



*** Test Cases ***

Case

    ${project}=    Get Project    project_id

    ${section}=    Add Section    project_id=${project['id']    name=New Section

    ${case}=       Add Case    ${section['id']}    Title    Steps    Description    Refs    type_id    priority_id

    Update Case    ${case['id']}    request_fields

TestRail Listener

Fixing of testing results and updating test cases.

Example

  1. Create custom field "case_description" with type "text", which corresponds to the Robot Framework's test case documentation.

  2. Create Robot test:

    *** Test Cases ***
    
    Autotest name
    
        [Documentation]    Autotest documentation
    
        [Tags]    testrailid=10    defects=BUG-1, BUG-2    references=REF-3, REF-4
    
        Fail    Test fail message
    
  3. Run Robot Framework with listener:

    
    pybot --listener TestRailListener.py:testrail_server_name:tester_user_name:tester_user_password:run_id:https:update  robot_suite.robot
    
    

    Test with case_id=10 will be marked as failed in TestRail with message "Test fail message" and defects "BUG-1, BUG-2".

    Also title, description and references of this test will be updated in TestRail. Parameter "update" is optional.

TestRail Pre-run Modifier

Pre-run modifier for starting test cases from a certain test run.

Example

  1. Create Robot test:

    *** Test Cases ***
    
        Autotest name 1
    
        [Documentation]    Autotest 1 documentation
    
        [Tags]    testrailid=10
    
        Fail    Test fail message
    
        Autotest name 2
    
        [Documentation]    Autotest 2 documentation
    
        [Tags]    testrailid=11
    
        Fail    Test fail message
    
  2. Run Robot Framework with pre-run modifier:

    
    pybot --prerunmodifier TestRailPreRunModifier:testrail_server_name:tester_user_name:tester_user_password:run_id:http:results_depth robot_suite.robot
    
    

    Only test cases that are included in the test run run_id will be executed.

  3. To execute tests from TestRail test run only with a certain status, for example "failed" and "blocked":

    
    pybot --prerunmodifier TestRailPreRunModifier:testrail_server_name:tester_user_name:tester_user_password:run_ind:http:results_depth:failed:blocked robot_suite.robot
    
    

License


Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

u-robotframework-testrail-1.4.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

u_robotframework_testrail-1.4-py2.py3-none-any.whl (16.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file u-robotframework-testrail-1.4.tar.gz.

File metadata

  • Download URL: u-robotframework-testrail-1.4.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8

File hashes

Hashes for u-robotframework-testrail-1.4.tar.gz
Algorithm Hash digest
SHA256 a5b00b70c53d5d9940f5a9e3f613e496f4ba8b1b7146288fbff296829ebf84d5
MD5 7f67b26a9e7acbede00eb599c7c12bb6
BLAKE2b-256 ea032e52b5b3626adad2b150a51cc71c4e2334cd5cf569c6c445bda34fa3d11d

See more details on using hashes here.

File details

Details for the file u_robotframework_testrail-1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: u_robotframework_testrail-1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8

File hashes

Hashes for u_robotframework_testrail-1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c81cbc6d513bd053848bf6408ab9241e9b40f7fc4687613a3cbb1680b18b2de0
MD5 3311d57e384e74b4b8311eb9b6547291
BLAKE2b-256 ad6a56797b186bec2fb61ef986b2fe46494388097efcd4d5789791f22bf846fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page