A Python client for testcube. (https://github.com/tobyqin/testcube)
Project description
testcube-client
A Python client for testcube.
Free software: MIT license
TestCube Project: https://github.com/tobyqin/testcube
TestCube Client Project: https://github.com/tobyqin/testcube-client
Get Started
You should have python 2.7 or 3.x installed on your machine. Then follow steps here.
Installation
Install testcube-client via pip is the most easy way.
pip install testcube-client -U
Register to Server
You should have a .. _TestCuber: https://github.com/tobyqin/testcube server deployed, then run –register command.:
testcube-client register http://testcube-server:8000
Submit Run Info
You have 2 ways to upload test results to TestCube, one is call –start-run at the beginning and call –finish–run once it finished.:
# add --start-run before run started testcube-client --start-run -name "nightly run for testcube" --team Core --product TestCube # add --finish-run once run completed testcube-client --finish-run -xunit **/results/*.xml
In this way to upload test results, TestCube will use the exact start_time and end_time for the run.
Another choice is use one time –run command to upload test results.:
# put this command at the end of a run testcube-client --run -name "smoke tests for testcube" --team XPower --product TestCube --product-version v1.0 --xunit **/smoke*.xml
Command-line Options
The optional arguments:
-h, --help show this help message and exit -r REGISTER, --register REGISTER Register to the TestCube server, e.g. http://server:8000 -run, --run Upload run info at one time, require team,product,name and xunit files. -start, --start-run Start a run, require team, product and a name. -finish, --finish-run Finish a run, require xunit files. -x XUNIT_FILES, --xunit-files XUNIT_FILES Specify the xunit xml results, e.g "**/result*.xml" -n NAME, --name NAME Specify the run name. -t TEAM, --team TEAM Specify the team name. -p PRODUCT, --product PRODUCT Specify the product name. -v PRODUCT_VERSION, --product-version PRODUCT_VERSION Specify the product version. [Optional]
History
0.1.4 (2017-06-12)
Fix import error.
0.1.3 (2017-06-12)
Support register to TestCub server.
Support –run command.
Support –start-run command.
Support –finish-run command.
0.1.0 (2017-06-08)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.