Enables running multiple execution types easily from terminal against continuous testing cloud.
CLI Installation
To install the package please run the following command:
npm install dai-ct |
---|
CLI Configuration
In order to execute dai-ct CLI, a credentials.json file must be supplied.
Add a file named credentials.json in the root directory of the project, it needs to contain:
- cloudUrl
- accessKey
This file needs to be in json format.
Running Cypress/Playwright Tests
Enables users to run Cypress or Playwright projects.
Cypress/Playwright projects are run asynchronously, the response received is immediate
dai-ct cypress run -p or --project <path to the project> -c or --conf <path to conf file> |
---|
dai-ct playwright run -p or --project <path to the project> -c or --conf <path to conf file> |
---|
Parameters
Name | Mandatory | Description |
---|---|---|
-p or --project | Yes | The Cypress project to run |
-c or --conf | No | A configuration file for the requested execution. |
Running Espresso/XCUITest Tests
Enables users to run Espresso or XCUITest projects.
Espresso/XCUITest projects are run asynchronously, the response received is immediate
dai-ct espresso run -a or --app <path to the app> -t or --testApp <path to the test app file> -c or --conf <path to conf.json file> |
---|
dai-ct xcuitest run -a or --app <path to the app> -t or --testApp <path to the test app file> -c or --conf <path to conf.json file> |
---|
Parameters
Name | Mandatory | Description |
---|---|---|
-c or --conf | Yes | A configuration file for the requested execution. Only the mandatory parameters are supported for now:
|
-a or --app | No (only if appUrl is provided in the conf.json) | The application under test |
-t or --testApp | No (only if testAppUrl is provided in the conf.json) | espresso / XCUI tests(.zip extension only) |