Description
Preflight is a code-free automated UI testing tool. This package allows you to run your Preflight tests.
Usage
Prerequisite
Before you start, you need to get a client id and client secret from Account Settings > API under your Preflight account.
Install
Download package with below command.
npm install preflight-cli
Run
Run the Preflight application with below command.
npm run preflight
Run Test on Preflight
Client id and client secret are required parameters. This is the example run command.
preflight run_test --clientId="<client-id>" --clientSecret="<client-secret>" --testId="<test-id>"
These are the other parameters.
Parameter | Description |
---|---|
--clientId |
Preflight client id. |
--clientSecret |
Preflight client secret. |
--testId |
Preflight test id. |
--groupId |
Preflight group id. |
--environmentId |
Preflight environment id. |
--tags |
Tags. (Ex: --tags "smoke tests,critical tests" ) |
--noScreenshot |
Don't capture screenshots. |
--noWaitResult |
Don't wait tests results. |
--apiUrl |
Api URL |
--authUrl |
Auth URL |
Run Workflow on Preflight
Client id and client secret are required parameters. This is the example run command.
preflight run_workflow --clientId="<client-id>" --clientSecret="<client-secret>" --workflowId="<workflow-id>"
These are the other parameters.
Parameter | Description |
---|---|
--clientId |
Preflight client id. |
--clientSecret |
Preflight client secret. |
--workflowId |
Preflight workflow id. |
--environmentId |
Preflight environment id. |
--noWaitResult |
Don't wait workflow results. |
--apiUrl |
Api URL |
--authUrl |
Auth URL |