Start activity command
Starts an Android activity on the device. Android applications are composed of a series of "Activity" units. Each Activity presents a UI screen that allows users to perform some part of the application, such as call a number, take a photo, send an email, or view a map. When testing the application, it may be desirable to start the application execution from a specific Activity, rather than the initial Activity (usually referred to as the .Main
).
Applications can be large and complex, written by many development teams. The start activity and sync activity commands enable a tester to start and sync a specific activity on the device and decreases the time it takes to write a test, allowing more coverage in a dynamic environment where time to develop tests is short.
Parameters
Name | Type | Possible values | Description |
---|---|---|---|
Device ID* |
String |
The device for this command. By default, this is the device under test (DUT). |
|
Package* |
String |
The Android identifier of the application. Example: |
|
Activity* |
String |
The name of the activity. Example: |
|
Intent action |
String |
The name of the intent action. |
|
Intent category |
String |
The name of the intent category. |
|
Intent flags |
String |
The name of the intent flags. |
|
Intent arguments |
String |
The name of the intent arguments. |
|
Comment |
String |
Adds a comment to the script |
|
On-fail Result* |
Condition |
Ignore | Break | Continue | Abort | Catch |
The behavior when the command fails. |
* Mandatory parameter