Supported Framework
Running your tests - Functional Tests
Running tests with unittest
sl-python unittest --teststage "Unit Tests" {--cov-report /path/to/report.xml} <your args...>Running tests with pytest
sl-python pytest <Options ...> <pytest args...>
Options:
--buildsessionidfile <Text> Path to a file to save the build session id in (default: <user.dir>/buildSessionId.txt)
--buildsessionid <Text> Provide build session id manually, case-sensitive
--tokenfile <Text> A path to a file where the program can find the token. Case-sensitive
--token <Text> Token (mandatory. Can also be provided by 'tokenfile' argument). Case-sensitive
--labid <Text> Lab Id, case-sensitive
--teststage <Text> {E.g: integration tests, regression, [Unit Tests]}
--cov-report <Path> {E.g: /path/to/report.xml}
--per-test <StrToBool> {E.g: false, [true]}
--interval <Integer in milli second> {E.g: 20000, [10000], 5000}
-tsd, --test-selection-disable <Flag>
-tsri, --test-selection-retry-interval <Integer in second> {E.g: 1, [5], 10}
-tsrt, --test-selection-retry-timeout <Integer in second> {E.g: 30, [60], 120} Running tests with unittest2
Running tests with nose
Running tests with behave
Last updated
Was this helpful?

