Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

...

Parameter

Description

token

Access token generated from the SeaLights server

tokenfile

Path to file containing access token generated from the SeaLights server

buildsessionid

Session ID of configuration created

buildsessionidfile

Path to file containing the Session ID of configuration created

scm

Source control used

Current options are: git, none

scmprovider

The provider name of your Source Control Management (SCM) tool.
Values: Github, Bitbucket and Gitlab (Default is Github)

scmbaseurl

The URL to the repository which contains the code.

If not provided, the url of the remote GIT origin will be used

Example: https://my.bitbucket.com/projects/ABCD/repos/XYZ/browse/A1

scmversion

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.

proxy

Address of proxy to run connection through

help

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

token

Access token generated from the SeaLights server

tokenfile

Path to file containing access token generated from the SeaLights server

buildsessionid

Session ID of configuration created

buildsessionidfile

Path to file containing the Session ID of configuration created

cov-report

Path to generate XML coverage report

per-test

Collect coverage per test (Default: false)

interval

Interval in milliseconds to send data

labid

Unique ID for a set of test labs in case multiple labs are running simultaneously (case-sensitive)

proxy

Address of proxy to run connection through

help

Show Help message and exit.

args...

Extra arguments for running the application server

Test Listener

Starting a test stage

...

Code Block
sl-python {pytest|unittest|unit2|nose} --help

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

...

token

...

Access token generated from the SeaLights server

...

tokenfile

...

Path to file containing access token generated from the SeaLights server

...

buildsessionid

...

Session ID of configuration created

...

buildsessionidfile

...

Path to file containing the Session ID of configuration created

...

-

...

Path to generate XML coverage report

...

-

...

Collect coverage per test (Default: false)

...

interval

...

Interval in milliseconds to send data

...

labid

...

Unique ID for a set of test labs in case multiple labs are running simultaneously (case-sensitive)

...

proxy

...

Address of proxy to run connection through

help

...

Show Help message and exit.

...

args...

...

Logging

Enabling logging in Python is done using by setting the SL_DEBUG environment variable to “true”.

...