Package: testcube-client
testcube-clientA Python client for testcube.Free software: MIT licenseTestCube Project:https://github.com/tobyqin/testcubeTestCube Client Project:https://github.com/tobyqin/testcube-clientGet StartedYou should have python 2.7 or 3.x installed on your machine. Then follow steps here.InstallationInstall testcube-client via pip is the most easy way.pipinstalltestcube-client-URegister to ServerYou must have aTestCubeserver deployed at somewhere, then run--registercommand.:testcube-client--registerhttp://testcube-server:8000Upload Run ResultsOnce you registered to a server, you will have 2 ways to upload test results, first choice is calling--start-runat the beginning and calling--finish--runwhen finished.:# call --start-run before run startedtestcube-client--start-run-name"nightly run for testcube"--teamCore--productTestCube# call --finish-run after run finishedtestcube-client--finish-run--xunit-files"**/results/*.xml"In this way, TestCube will record theexactstart_timeandend_timefor the run. You should provideteamandproductname when start the run.Another choice is using--runcommand to upload test results like a batch.:# put this command at the end of a runtestcube-client--run-n"smoke tests for testcube"-tXPower-pTestCube-vv1.0-x"**/smoke*.xml"With this choice, TestCube will use current time asend_timefor the run, and guessstart_timeaccording to run duration.teamandproductname are also required.Upload Result FilesSometimes your test will generate result files, for example, screenshots, log files. These files are useful when analyze test failure, so we can upload them to TestCube as well:# call --result-files to upload filestestcube-client--result-files"**/*.png"# use -i as a shortcuttestcube-client-i"**/*.jpg"Note:In order to link a file to a test result, thefile namemustcontainstest case nameso that TestCube can map them together.For example:testcasename=>"test_student_login"resultfilename=>"test_student_login_failed.png"Command-line OptionsThe optional arguments:-h,--helpshowthishelpmessageandexit-rREGISTER,--registerREGISTERRegistertotheTestCubeserver,e.g.http://server:8000
-run,--runUploadruninfoatonetime,requireteam,product,nameandxunitfiles.
-start,--start-runStartarun,requireteam,productandaname.
-finish,--finish-runFinisharun,requirexunitfiles.
-xXUNIT_FILES,--xunit-filesXUNIT_FILESSpecifythexunitxmlresults,e.g"**/result*.xml"-iRESULT_FILES,--result-filesRESULT_FILESSpecifytheresultfiles,e.g"**/output/**/*.png"-nNAME,--nameNAMESpecifytherunname.
-tTEAM,--teamTEAMSpecifytheteamname.
-pPRODUCT,--productPRODUCTSpecifytheproductname.
-vPRODUCT_VERSION,--product-versionPRODUCT_VERSIONSpecifytheproductversion.[Optional]-f,--forceForcetheaction,support--registercommand.
-vb,--verboseShowverboseloginfo.History0.8.0 (2018-06-03)Fix description page in new pipy site, changed to markdown format.0.7.8 (2018-02-08)Support clean up runs after specified days, for example:testcube-client --cleanup-runs days 600.7.6 (2017-10-31)Support server version v1.3Save environment variables to server when start a run, use for result reset0.7.0 (2017-10-25)Support server version v1.2Able to handle pending task, for example:testcube-client --handle-taskAble to rerun a result by reset id, for example:testcube-client --reset-result 12345 -x "[**]/[*].xml"0.6.0 (2017-09-07)Able to upload result files using argument --result-filestestcube-client --result-files "[**]/[*].png"0.5.0 (2017-07-07)Update due to testcube model changed, not compatible with prev versions0.3.3 (2017-06-29)Improve run url in output.Bug fix: run duration data incorrect.Abort run if failed to analyze its xml.Always summarize run duration from test cases.Bug fix: unicode exception message in python 2.Bug fix: multiple cache hits error.0.2.2 (2017-06-13)Support--forcecommand when register a server.Sum the testsuite time from testcases if there is no time attribute in result xml.Fix document moved header issue when server deployed in IIS server.Add cache to improve performance.Fix import error.0.1.3 (2017-06-12)Support register to TestCub server.Support--runcommand.Support--start-runcommand.Support--finish-runcommand.0.1.0 (2017-06-08)First release on PyPI.