sealights-newman-wrapper
v2.0.136
Published
Sealights agent for Newman
Readme
Sealights Newman wrapper
This is the Sealights newman agent.
Install
npm install sealights-newman-wrapperUsage
Execute this package using npx and pass sl and newman arguments
npx sealights-newman-wrapper --sl-token ... -c ./collection.jsonor use it in script.
Example:
const { slNewman, ConfigProvider } = require('sealights-newman-wrapper');
const config = new ConfigProvider({
tokenFile: "sltoken.txt",
buildSessionIdFile: "buildSessionId",
testStage: "newman",
});
slNewman.run(config, {
collection: './collection.json',
environment: require('./local.environment.json'),
});Passing parameters to reporter via CLI
From the command line add sealights parameters with '--sl-' prefix
npx sealights-newman-wrapper ... --sl-tokenFile <path/to/token-file> --sl-buildSessionIdFile <path/to/buildSessionId-file> --sl-testStage e2ePassing parameters to plugin via config file
Create a file sl.conf and fill it with config in JSON format
{
tokenFile: <path/to/token-file>,
buildSessionIdFile: <path/to/buildSessionId-file>,
testStage: e2e,
}Supported parameters
- token - Sealights token
- tokenFile - Path to file contains the Sealights token
- buildSessionId - Sealights build session id
- buildSessionIdFile - Path to file contains the Sealights build session id
- testStage - Test stage current tests are relates to
- labId - Pre-defined Sealights lab-id (optional)
- proxy - Proxy server (optional)
- testProjectId - Test project ID differentiates between different test stages with the same test stage name of different teams/products/etc.
- prID - Identifies PR pipeline executions, allowing them to be distinguished from eachother and from other executions of the same test-stage.
Author
Sealights
