Cucumber JS framework
If your testing framework is Cucumber.js, the SeaLights agent integrates directly with it and reports the test results to the server directly.
Configuration
Using the Sealights plugin with the Cucumber command
From the command line, add sealights parameters with --sl- prefix in addition to the --require argument specifying the Sealights plugin
node_modules/.bin/cucumber-js ./features --require sealights-cucumber-plugin --sl-tokenfile <path/to/token-file> --sl-labid <lab-id> --sl-testStage <test-stage-name>Using the Sealights plugin with Protractor configuration
If you're running your Cucumber.JS tests with Protactor, in addition to the sealights-protractor-plugin, you need to specify in your protractor.conf.js file the required Sealights Cucumber plugin installed above.
cucumberOpts: {
require: [
'./src/steps/*.steps.ts',
require.resolve('sealights-cucumber-plugin')
]
},Parameters details
sl-token or sl-tokenFile
Yes
Access token generated from the SeaLights server provided directly or via the path to file containing it
sl-testStage
Yes
Name of the test stage
sl-labid
Yes
Unique ID for the test environment (lab). Used to associate test results with the correct build.
sl-buildSessionId or sl-buildSessionIdFile
No
(Deprecated) Build Session ID. Use sl-labid instead.
sl-proxy
Optional
Address of proxy to run connection through
Last updated
Was this helpful?

