SatelliteQE / betelgeuse

Betelgeuse reads standard Python test cases and offers tools to interact with Polarion.
GNU General Public License v3.0
12 stars 20 forks source link

Test Cases must provide new automation_script field #98

Closed omaciel closed 7 years ago

omaciel commented 7 years ago

Test Cases in Polarion now require the following field to be set: automation_script

This field will store a URL pointing to the location of the specific test case in the source code. Though one can provide a generic URL such as https://github.com/SatelliteQE/robottelo, we should be able to provide something more accurate such as https://github.com/SatelliteQE/robottelo/blob/master/tests/foreman/cli/test_contentview.py#L160.

elyezer commented 7 years ago

If the AST can provide the module path like tests/foreman/cli/test_contentview.py and the line number where the testcase is defined then we could expect an automation_script_url option and the path + line number can be added after the URL.

Or offer some formatting like {path} and {line_number} so one can specify the URL based on the source control management. For example git web would have an URL like http://<hostname>/git/users/<user>/<project>/tree/dirsrvtests/{path}?h=tp_fix#n{line_number} while github would have https://github.com/<user>/<project>/blob/master/{path}#L{line_number}

omaciel commented 7 years ago

@elyezer agreed and I think the module (full) path and file number is provided by AST, but I could be wrong. This should be optional.