Binding for TestRail API
Python
Switch branches/tags
Nothing to show
Clone or download
Latest commit fab6ae2 Sep 17, 2014
Permalink
Failed to load latest commit information.
testrail
tests Fix tests Sep 12, 2014
.gitignore .gitignore modification Sep 1, 2014
LICENSE
README.md
docstring_parser.py
source_files_parser.py Remove code comments Sep 11, 2014
unittestrail.py Add expandvars & expanduser to module_path Sep 16, 2014

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