Running Tests
List available frameworks
curl -u <api-key>: https://cloud.bitbar.com/api/me/available-frameworks
Start a test run
These are put into a configuration file as follows:
{ "osType":"ANDROID","projectId":PROJECT_ID, "files":[ {"id":APP_FILE_ID}, {"id":TEST_FILE_ID}, {"id":DATA_FILE_ID} ], "frameworkId":FRAMEWORK_ID,"deviceGroupId":DEVICE_GROUP_ID }
curl -H 'Content-Type: application/json' -u <api-key>: https://cloud.bitbar.com/api/me/runs --data-binary @configuration
Note
Mandatory fields are: osType
, frameworkId
, files
(depending on the framework), deviceGroupId
or deviceIds
.
Configuration fields
Field | Description |
---|---|
| Applies only to AppCrawler runs if the tested application has a login screen. |
| Applies only to AppCrawler runs if the tested application has a login screen. |
| Specifies device group devices for the run. |
| Specifies device IDs for the run (the priority is higher than for |
| Specifies the device language. Default value: |
| File configuration. Object fields:
|
| Specifies the framework for the run. |
| The URL to be POSTed when the run is finished (must be public). |
| For Android Instrumentation framework. Default: |
| For UI Automator framework. Defines if the app should be launched (can be launched by the test). |
| For Android Instrumentation - relates to |
| For Android Instrumentation - relates to |
| Defines how many times the test can be rerun in case of failures. |
| Defines |
| Defines the project in which the run should be created. When its value is empty, a new project is created. |
| The name of the project to be created when |
| Defines the scheduler of the run. Possible values:
|
| The directory of screenshots on devices. Default value: |
| When it is set, new device sessions are attached to the existing test run. |
| The name of the test run. |
| The list of additional parameters (key, value). |
| The timeout between the runs when a user can expect partial results. |
| For UI Automator framework. |
| Defines if a video should be recorded. Enabled by default. |
| For Android Instrumentation framework. Runs a test with the specified annotations. |
| For Android Instrumentation framework. Runs a test without the specified annotations. |