Preflight is a code-free automated UI testing tool. This package allows you to run your Preflight tests.
bash
npm install -g @applitools/preflight-cli
`
Run
To be able to run any command, you need to provide clientId and clientSecret parameters.
`bash
preflight --clientId="" --clientSecret=""
`
$3
Provide testId parameter to run a test.
`bash
preflight --testId="" --clientId="" --clientSecret=""
`
$3
Provide groupId parameter to run a group.
`bash
preflight --groupId="" --clientId="" --clientSecret=""
`
$3
Provide tags parameter to run tests by tags. (It could be either tag id or tag name)
`bash
preflight --tags="," --clientId="" --clientSecret=""
`
> You can also provide groupId and tags together to filter tests by tags in a group.
> `bash
> preflight --groupId="" --tags="," --clientId="" --clientSecret=""
> `
$3
Provide workflowId parameter to run a workflow.
`bash
preflight --workflowId="" --clientId="" --clientSecret=""
`
$3
Provide testSuiteId parameter to run a test suite.
`bash
preflight --testSuiteId="" --clientId="" --clientSecret=""
`
Parameters
| Parameter | Description | Default Value |
|------------------|---------------------------| ------------- |
| --clientId | Preflight client id | |
| --clientSecret | Preflight client secret | |
| --environment| Environment to run tests in. (environmentId or URL) | null |
| --captureScreenshots | Capture screenshots (Can only be used with test, group and tag run) | true |
| --waitForResults| Wait for running tests to finish. | true |
| --reportFilename| Report filename. | preflight-junit-report.xml |
| --exitOnFail | Exit if any test fails. | false |
| --apiUrl | API URL | Preflight API URL |
| --authUrl` | Auth URL | Preflight Auth URL |