Skip to content

My contribution to TestLink. This php add-on (to put anywhere on any php website) is able to convert XML test plans (tests to execute) from TestLink into Python nosetests classes.

License

Notifications You must be signed in to change notification settings

samsalas/testlink-nosetests-addon

Repository files navigation

testlink-nosetests-addon

My contribution to TestLink. This php add-on (to put anywhere on any tool based on php, like testlink or mantis) is able to convert XML test plans (tests to execute) from TestLink into Python nosetests classes.

What is the point?

The point of the addon is to provide easyly a Python testing script from the Test Plan to execute to the coding of the execution in Python. It is then possible to export the nosetests results into JUnit format and Cobertura for continuous integration purposes. #How to?

You add the project in a directory like "yourtool.local/nosetest". You browse then into "yourtool.local/nosetest/importPython.html". You select the file to convert. It should be a Testlink Test Plan XML File (go to the "Test Execution" section and click on "Export Test Plan"). It works with TestLink 1.9.12. The file uploaded will be saved into the directory "nosetest/uploads". Then you have the Python nosetests scripts templates ready.

The second section can export one specific testcase number into a nosetest script. This section uses the XML-RPC client with testlink to produce the nosetest template. Do not forget to edit the config.php file.

Nosetest / Jenkins

To use nosetests : nosetests -v testplan.py To link the results to jenkins for example, use the XML files produced by the command nosetests -v testplan.py --with-xunit --with-xcoverage. More details are in the headerPython.txt file.

About

My contribution to TestLink. This php add-on (to put anywhere on any php website) is able to convert XML test plans (tests to execute) from TestLink into Python nosetests classes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published