Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

README

An app to import unittest autotests into TestRail.

Command Line Parameters (unittestrail.py)

  • --project (-p) TestRail project id (number)

  • --base_url (-H) TesRail address. http://testrail.local/ for example

  • --login (-l) TestRail username

  • --password (-P) User`s password

  • --tests_path (-t) Directory with tests to import

  • --delete_tests (-D) Deletes all tests from TestRail that was deleted from Python files

  • --module_path (-m) Path(s) to modules that will be imported in tests. Usually it`s project root directory

Tests Description

In all docstrings in tests you want to import into TestRail must start with following strings:

  • title: Test title which appears in TestRail as testcase`s name (will take test method name if title: is not presented)

  • suite: Testsuite name (required, will be created if not presented)

  • section: Section name in defined suite (required, will be created if not presented)

Suite & section can be specified inside testclass` docstring. If specified in testmethod's docstring, it'll be owerwritten.

Steps description

Each step must start with a dash (-). After any amount of steps may be expected result: a s tring(s) which starts with equals sign (=)

Example

#!python

def test_party(self):
    """
    title: Testcase Example
    suite: Testsuite Example
    section: Section Example
    - Get sixpack
    - Get friends
    = Fun in progress
    - Get Playstation
    = Hardcore gaming in progress
    """
    pass

About

Binding for TestRail API

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.