Table of Contents |
---|
...
Code Block |
---|
sl-python config {--token <token> | --tokenfile <file>} --appname <appname> --branchname <branch> --buildname <build> --workspacepath <path> [--include <include>] [--exclude <exclude>] [--buildsessionid <buildsessionid>] [--proxy <proxy>] [--help] |
Parameter | Description |
---|---|
| Access token generated from the Sealights server |
| Path to file containing access token generated from the SeaLights server |
| Name of the application |
| The source branch of the application |
| The build label of the current build |
| Path to the workspace where the source code exists |
| Include only files whose paths match one of these patterns. |
| Omit files whose paths match one of these patterns. |
| Optional: A user provided session ID (case-sensitive) |
| Address of proxy to run connection through |
| Show Help message and exit. |
Pull Request Session ID
Code Block |
---|
sl-python prConfig {--token <token> | --tokenfile <file>} --appname <appname> --targetbranch <branch> --latestcommit <commit_sha> --pullrequestnumber <number> --repourl <url> --workspacepath <path> [--include <include>] [--exclude <exclude>] [--buildsessionid <buildsessionid>] [--proxy <proxy>] [--help] |
Parameter | Description |
---|---|
| Access token generated from the Sealights server |
| Path to file containing access token generated from the SeaLights server |
| Name of the application |
| The branch to which this PR will be merged into (already reported to SeaLights) |
| The full SHA of the last commit made to the Pull Request |
| he number assigned to the Pull Request from the source control |
| The pull request URL for the PR to be scanned, up until the section before the pullRequestNumber value |
| Path to the workspace where the source code exists |
| Include only files whose paths match one of these patterns. |
| Omit files whose paths match one of these patterns. |
| Optional: A user provided session ID (case-sensitive) |
| Address of proxy to run connection through |
| Show Help message and exit. |
Scanning a build
Code Block |
---|
sl-python scan {--token <token> | --tokenfile <file>} {--buildsessionid <id> | --buildsessionidfile <file>} --scm {git|none} [--scmBaseUrl <url> --scmProvider {github|gitlab|bitbucket} [--scmVersion <version>] [--proxy <proxy>] [--help] |
Parameter | Description |
---|---|
| Access token generated from the SeaLights server |
| Path to file containing access token generated from the SeaLights server |
| Session ID of configuration created |
| Path to file containing the Session ID of configuration created |
| Source control used Current options are: git, none |
| The provider name of your Source Control Management (SCM) tool. |
| The URL to the repository which contains the code. If not provided, the url of the remote GIT origin will be used Example: |
| The version of your Source Control Management (SCM) tool. If left blank, cloud version is assumed. Otherwise, specify the version of your on-premise server. |
| Address of proxy to run connection through |
| Show Help message and exit. |
Running backend server
Code Block |
---|
sl-python run {--token <token> | --tokenfile <file>} {--buildsessionid <id> | --buildsessionidfile <file>} [--cov-report <path>] [--per-test {true|false}] [--interval <interval>] [--labid <labid>] [--proxy <proxy>] [--help] args... |
Parameter | Description |
---|---|
| Access token generated from the SeaLights server |
| Path to file containing access token generated from the SeaLights server |
| Session ID of configuration created |
| Path to file containing the Session ID of configuration created |
| Path to generate XML coverage report |
| Collect coverage per test (Default: false) |
| Interval in milliseconds to send data |
| Unique ID for a set of test labs in case multiple labs are running simultaneously (case-sensitive) |
| Address of proxy to run connection through |
| Show Help message and exit. |
| Extra arguments for running the application server |
Test Listener
Starting a test stage
Code Block |
---|
sl-python start {--token <token> | --tokenfile <file>} {--buildsessionid <id> | --buildsessionidfile <file>} --teststage <teststage> [--labid <labid>] [--proxy <proxy>] [--help] |
Parameter | Description |
---|---|
| Access token generated from the SeaLights server |
| Path to file containing access token generated from the SeaLights server |
| Session ID of configuration created |
| Path to file containing the Session ID of configuration created |
| Name of the test stage |
| Unique ID for a set of test labs in case multiple labs are running simultaneously |
| Address of proxy to run connection through |
Upload report files
Report files must be JUnit style XML reports
Code Block |
---|
sl-python uploadReports {--token <token> | --tokenfile <file>} {--buildsessionid <id> | --buildsessionidfile <file>} {--reportfile <reportFile> | --reportfilesfolder <reportFilesFolder>} [--hasmorerequests {False|True}] [--labid <labid>] [--source <source>] [--type <type>] [--proxy <proxy>] [--help] |
Parameter | Description |
---|---|
| Access token generated from the SeaLights server |
| Path to file containing access token generated from the SeaLights server |
| Session ID of configuration created |
| Path to file containing the Session ID of configuration created |
| Path to report file. This argument can be declared multiple times in order to upload multiple files. |
| Path to folder that contains nothing but report files. All files in folder will be uploaded. Note: all files in the folder will be uploaded |
| Set to ‘True’ if test results contains multiple reports (Default: ‘False’). |
| Unique ID for a set of test labs in case multiple labs are running simultaneously (case-sensitive) |
| The reports provider. If not set, the default will be 'Junit xml report'. |
| Name of testing framework type. The report type. If not set, the default will be 'JunitReport'
|
| Address of proxy to run connection through |
| Show Help message and exit. |
Ending a test stage
Code Block |
---|
sl-python end {--token <token> | --tokenfile <file>} {--buildsessionid <id> | --buildsessionidfile <file>} [--labid <labid>] [--proxy <proxy>] [--failbuild {true|false}] |
Parameter | Description |
---|---|
| Access token generated from the SeaLights server |
| Path to file containing access token generated from the SeaLights server |
| Session ID of configuration created |
| Path to file containing the Session ID of configuration created |
| Unique ID for a set of test labs in case multiple labs are running simultaneously |
| Address of proxy to run connection through |
| Show Help message and exit. |
Running Tests via pytest, unittest, unit2 or nose
...