Versions Compared

Key

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

...

Parameter

Description

javaagent

Path to Sealights Java test agent jar

sl.token

Access token generated from the SeaLights server

sl.tokenFile

Path to file containing the access token generated from the SeaLights server

sl.buildSessionId

Session ID of configuration created

sl.buildSessionIdFile

Path to file containing the Session ID of configuration created

sl.tags

One or several tags (comma separated) to be passed to Sealights in order to label the test listener in the cockpit

sl.labId

Unique ID for a set of test labs in case multiple labs are running simultaneously

sl.proxy

Address of proxy to run connection through

sl.testStage

Name of the test stage (When running with JMeter)

sl.filesStorage

Path to a folder that the agent can save temporary files to

sl.webappLocation

Location of Path to the webapps folder to search for the artifcat infolder containing the artifact of the application, by default 'webapps'.
If the property is provided, the agent looks recursively inside the .war and .ear files in the path defined by the property. The search stops on the first file found.
This parameter is necessary when the agent does not find automatically the sltoken.txt and buildSessionId.txt files added to the artifact by Sealights Maven or Gradle plugins during the build.

Logging

In order to enable logs, you can set the following parameters as environment variables or, when using as javaagent, add them as -Dsl.* parameters

Parameter

Description

sl.log.level

Sets the log level to one of the following: "off", "error", "warn", "info", "debug"

sl.log.toConsole

Set to true to enable log output to the console

sl.log.toFile

Set to true to enable log output to a file

sl.log.folder

Provide a folder to save the log files in

sl.log.filename

Provide the name of the log file

sl.log.count

Limit the number of log files to create. Default: 10

sl.log.limit

Limit the size of the log file in megabytes (MB). Default value is 10 (i.e. 10*1024 KB)

--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED

Special JVM parameter to allow logging in Java 9 and later in addition to -Dsl.log.* above. 
If the option is not provided, the test listener will work as usual, but logging will not work.