This section includes the detailed documentation for the following object classes of Mobile.
Mobile General Actions
Mobile.DragAndDropToObject
This action drags the specified mobile object and drops on another specified mobile object.
Input Parameters:
Parameter Nane | Parameter Description | Mandatory | Data Type |
---|---|---|---|
dragLocator | The locator value of the mobile element you want to drag. | Yes | String |
dragLocatorType | The locator type of mobile element you want to drag. | Yes | String |
dropToLocator | The locator value of the mobile element on which you want to drop. | Yes | String |
dropToLocatorType | The locator type of the mobile element on which you want to drop. | Yes | String |
Example:
Mobile.DragAndDropToObject dragLocator dragLocatorType dropToLocator dropToLocatorType
Mobile.CloseApp
This action closes the specified application or mobile browser.
This action does not have any parameter.
As the mobile app is closed, you cannot have any mobile action after the step containing this action.
Example:
Mobile.CloseApp
Mobile.HideKeyboard
This action hides the keyboard if present on the screen.
Parameters mentioned below are applicable for iOS only.
For Android, parameters are not required and ignored if provided.
Input Parameters:
ParameterName | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Strategy | Enter the strategy to hide the keyboard. Value for this parameter can be |
pressKeys and tapOutside. | No | String | |
KeyName | Enter the text that is displayed on the button of the keyboard you want to press to hide keyboard. | No | String |
Example:
Mobile.HideKeyboard "Tap_Outside" "Done"
Mobile.OpenApp
This action launches native/hybrid mobile Android or iOS application on the mobile device (emulator or physical). If the app does not exist in the device, this action will take the APK/ IPA file path specified and install it on the device before launching it.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Android APK Path / iOS IPA Path | Enter the absolute path of the apk/app/ipa file. This path should be accessible to the system where Appium server is installed. | No | String |
Android Package / iOS BundleID | Enter the package name of the Android app or bundle ID of the iOS app. | Yes | String |
Android Activity | Enter the activity name of the Android app. For iOS, enter as Dummy Activity Name. | Yes | String |
Example:
Mobile.OpenApp "D:\myapp.apk" "com.app.package" "com.app.package.MainActivity"
Mobile.PressAt
This action clicks at the specified point on the device screen.
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
X | The x-coordinate value of the specified point on the screen. | No | String |
Y | The y-coordinate value of the specified point on the screen. | No | String |
Example
Mobile.PressAt "5" "10"
Mobile.PressHomeButton
This action opens the home screen of the device.
This action does not have any parameter.
Example:
Mobile.PressHomeButton
Mobile.PressRecentsButton
This action shows the recent application.
This action does not have any parameter.
Note: This action is not supported on the iOS platform.
Example:
Mobile.PressRecentsButton
Mobile.SwitchApp
This action launches new native/hybrid mobile Android or iOS application to which you want to switch from the already launched native/hybrid mobile application.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Package |
---|---|---|---|
Package Name | Enter the package name of the Android app or bundle ID of the iOS app. | No | String |
ActivityName | Enter the activity name of the Android app. For iOS, enter as Dummy Activity Name. | No | String |
Example:
Mobile.SwitchApp "com.app.package" "com.app.package.MainActivity"
...
This action changes the current Web execution platform from Desktop to Mobile or from Mobile to Desktop. When used, web application test case will run on specified platform.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Platform | Platform to run web application on. Supported platforms are "Desktop" and "Mobile". | Yes | String |
Example:
SwitchWebExecutionPlatform "Mobile"
...
This action stores the web view handle under the specified key. The key value can be retrieved using the key name.
Input Parameters:
ParameterName | Parameter Description | Mandatory | Data Type |
---|---|---|---|
key | Enter the key under which you want to store the web view handle. | Yes | String |
Example:
Mobile.StoreWebViewHandle "Key"
...
This action selects the web view present in the current page hybrid app. If key is provided (by using StoreWebViewHandle action), system selects the webview specified in key. If key is not provided, default webview will be selected.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | enter the key used in the action "StoreWebViewHandle". | No | String |
Example:
Mobile.SelectWebView "Key"
...
This action selects the web view using the URL or pattern specified in the parameters.
Input Parameters:
ParameterName | Parameter Description | Mandatory | Data Type |
---|---|---|---|
URL | Enter the URL to open. | No | String |
IsURLPattern | Specify whether the URL is patterned or not. | No | String |
Example:
Mobile.SelectWebviewUsingURL "www.google.com" "False"
...
This action can be used when working with Android applications.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
keyName | Enter the key to be pressed. For more information, click here. | Yes | String |
modifierKeyName | Enter Modifier (Meta State) key to press. Generally used for combination of keys such as Shift, Ctrl, and so on. For more information, click here. | No | String |
Example:
Mobile.Presskeys “F”
...
This action performs swipe based on the coordinates provided in the parameters.
Input Parameters:
ParameterName | Parameter Description | Mandatory | Data Type |
---|---|---|---|
startX | Enter the starting point in x-axis from where you want to start the swipe. | Yes | String |
startY | Enter the starting point in y-axis from where you want to start the swipe. | Yes | String |
endX | Enter the starting point in x-axis from where you want to stop the swipe. | Yes | String |
endY | Enter the starting point in y-axis from where you want to stop the swipe. | Yes | String |
duration | Enter the duration seconds for the action to perform | No | String |
Example:
Mobile.Swipe "100" "123" "145" "121" "1"
...
This parameter is mandatory.
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
matchText | The toast message, which is expected to display. | Yes | String |
Example:
Mobile.VerifyToast "Success"
Mobile Element Actions
Click
This action clicks the specified object.
This action does not have any parameter.
Example:
Click
LongPress
This action performs the long press event on the specified object.
...
List of accessible properties for iOS: "name", "value", "label", "hint"
Input Parameters:
ParameterName | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the property value will be stored. | Yes | String |
Property | Property/attribute name whose value needs to be stored under the specified key. This can be any accessible property of Android/iOS native object mentioned above. | Yes | String |
Example: StorePropertyValue "key" "text"
StoreVisibility
This action stores visibility of the mobile object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
strKey | The visibility value for the mobile object is stored as:
| No | String |
Example:
StoreVisibility "Key"
...
This action performs swipe and finds object until timeout occurs.
Input Parameters:
ParameterName | Parameter Description | Mandatory | Data Type |
---|---|---|---|
upDownLeftRight | Enter the direction of swipe:
| No | String |
timeoutInSeconds | Enter the timeout in seconds. | No | String |
swipePageInSeconds | Enter in how many seconds one page should be swiped. Default is 1 second. | No | String |
Example:
Swipe "up" "10" "1"
...
This action verifies the enability of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
enability | Value for this parameter can be True or False.
| No | String |
Example:
VerifyEnability "True"
...
This action verifies the existence of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
existence | Value for this parameter can be True or False.
| No | String |
Example: VerifyExistence "True"
...
If the wait time is "" then the wait time shall be the "Sync Time" set under the associated execution profile.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Timeout | Enter the number of seconds to wait for the object to appear or disappear. This has to be 0 or any positive number. | No | String |
existence | Value for this parameter can be True or False.
| No | String |
Example:
WaitForObject "10" "True"
...
This action stores existence of the object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the existence's Boolean value will be stored.
| Yes | String |
Example:
StoreExistence "Key"
...
This action performs swipe and finds object until timeout occurs.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
upDownLeftRight | Enter the direction of swipe:
| No | String |
timeoutInSeconds | Enter the timeout in seconds. | No | String |
swipePageInSeconds | Enter in how many seconds one page should be swiped. Default is 1 second. | No | String |
Example:
Swipe "up" "10" "1"
...
List of accessible properties for iOS: "name", "value", "label", "hint"
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the property value will be stored. | Yes | String |
Property | Property/attribute name whose value needs to be stored under the specified key. This can be any accessible property of Android/iOS native object mentioned above. | Yes | String |
Example:
StorePropertyValue "key" "text"
StoreVisibility
This action stores visibility of the mobile object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
strKey | The visibility value for the mobile object is stored as:
| No | String |
Example:
StoreVisibility "Key"
VerifyEnability
This action verifies the enability of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
enability | Value for this parameter can be True or False.
| No | String |
Example:
VerifyEnability "True"
...
This action verifies the existence of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
existence | Value for this parameter can be True or False.
| No | String |
Example:
VerifyExistence "True"
...
If the wait time is "" then the wait time shall be the "Sync Time" set under the associated execution profile.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Timeout | Enter the number of seconds to wait for the object to appear or disappear. This has to be 0 or any positive number. | No | String |
existence | Value for this parameter can be True or False.
| No | String |
Example:
WaitForObject "10" "True"
...
This action selects the check box, only if the parameter passed is True.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Check | Value of this parameter can be True or False.
| No | String |
Example:
CheckIfTrue "True"
...
This action does not have any parameter.
Example:
Click
On this page:
Table of Contents | ||||
---|---|---|---|---|
|
IsChecked
This action verifies whether the specified check box is selected.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
state | Value of this parameter can be either True or False.
| No | String |
Example:
IsChecked "True"
...
This action stores existence of the object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the existence's Boolean value will be stored.
| Yes | String |
Example:
StoreExistence "Key"
...
List of accessible properties for iOS: "name", "value", "label", "hint"
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the property value will be stored. | Yes | String |
Property | Property/attribute name whose value needs to be stored under the specified key. This can be any accessible property of Android/iOS native object mentioned above. | Yes | String |
Example:
StorePropertyValue "key" "text"
StoreVisibility
This action stores visibility of the mobile object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
strKey | The visibility value for the mobile object is stored as:
| No | String |
Example:
StoreVisibility "Key"
Swipe
This action performs swipe and finds object until timeout occurs.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
upDownLeftRight | Enter the direction of swipe:
| No | String |
timeoutInSeconds | Enter the timeout in seconds. | No | String |
swipePageInSeconds | Enter in how many seconds one page should be swiped. Default is 1 second. | No | String |
Example:
Swipe "up" "10" "1"
...
This action verifies the enability of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
enability | Value for this parameter can be True or False.
| No | String |
Example:
VerifyEnability "True"
...
This action verifies the existence of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
existence | Value for this parameter can be True or False.
| No | String |
Example:
VerifyExistence "True"
...
If the wait time is "" then the wait time shall be the "Sync Time" set under the associated execution profile.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Timeout | Enter the number of seconds to wait for the object to appear or disappear. This has to be 0 or any positive number. | No | String |
existence | Value for this parameter can be True or False.
| No | String |
Example:
WaitForObject "10" "True"
...
The action shall wait for maximum 15 seconds for the object to disappear. If the object disappears before 15 seconds elapses, the execution continues to the next steps.
MobileDropDown Actions
...
Note |
---|
These actions are available when working with the Android application testing only. |
Click
This action clicks the specified object.
...
Items present in the drop-down must have a 'text' property.
Input Parameters:
ParameterName | Parameter Description | Mandatory | Data Type |
---|---|---|---|
itemName | Enter the item name that you want to select from the list. | Yes | String |
Example:
SelectItemByName "Qualitia"
On this page:
Table of Contents | ||||
---|---|---|---|---|
|
StoreExistence
This action stores existence of the object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the existence's Boolean value will be stored.
| Yes | String |
Example:
StoreExistence "Key"
...
List of accessible properties for iOS: "name", "value", "label", "hint"
Input Parameters:
ParameterName | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the property value will be stored. | Yes | String |
Property | Property/attribute name whose value needs to be stored under the specified key. This can be any accessible property of Android/iOS native object mentioned above. | Yes | String |
Example:
StorePropertyValue "key" "text"
StoreVisibility
This action stores visibility of the mobile object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
strKey | The visibility value for the mobile object is stored as:
| No | String |
Example:
StoreVisibility "Key"
Swipe
This action performs swipe and finds object until timeout occurs.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
upDownLeftRight | Enter the direction of swipe:
| No | String |
timeoutInSeconds | Enter the timeout in seconds. | No | String |
swipePageInSeconds | Enter in how many seconds one page should be swiped. Default is 1 second. | No | String |
Example:
Swipe "up" "10" "1"
...
This action verifies the enability of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
enability | Value for this parameter can be True or False.
| No | String |
Example:
VerifyEnability "True"
...
This action verifies the existence of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
existence | Value for this parameter can be True or False.
| No | String |
Example:
VerifyExistence "True"
...
If the wait time is "" then the wait time shall be the "Sync Time" set under the associated execution profile.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Timeout | Enter the number of seconds to wait for the object to appear or disappear. This has to be 0 or any positive number. | No | String |
existence | Value for this parameter can be True or False.
| No | String |
Example:
WaitForObject "10" "True"
...
This action clicks the element present at the specified location.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemIndex | Enter the list item index which you want to select. Index starts at 1. | Yes | String |
listItemMemberIndex | Enter the list item member from the list which you want to select. Index starts at 1. | Yes | String |
Example:
ClickElement "3" "2"
...
This action compares the data present at the specified list item member index.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemMemberIndex | Enter the list item member index where you want to compare the data. | No | String |
expectedListItemMembersData | Enter the expected data to verify. | No | Array |
Example:
CompareListItemMembersData "2" "Qualitia^QTP^WebDriver"
...
This action compares the data present at the specified list item index.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemIndex | Enter the list item index where you want to compare the data. | Yes | String |
expectedListItemData | Enter the expected data to verify. | No | Array |
Example:
CompareListItemData "2" "Qualitia^QTP^WebDriver"
On this page:
...
...
DeSelectCheckboxAtListItemMember
This action deselects the check box present at given list item index.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemIndex | Enter the list item index from where check box is to be deselected. | Yes | String |
listItemMemberIndex | Enter the list item member index from where check box is to be deselected. | No | String |
Example:
DeSelectCheckboxAtListItemMemberIndex "3" "7"
...
This action selects the check box present in the specified list item member.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemIndex | Enter the list item index from where you want to select the check box. | Yes | String |
listItemMemberIndex | Enter the list item member index from where you want to select the check box. | No | String |
Example:
SelectCheckboxatListItemMember "5" "4"
...
This action stores existence of the object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the existence's Boolean value will be stored.
| Yes | String |
Example:
StoreExistence "Key"
...
This action stores the count of list items in the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name in which you want to store the item count. | Yes | String |
Example:
StoreListItemCount "Key"
...
This action stores the list item index which contains the maximum value. This action only works with numerical data.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key in which you want to save the list item index. | Yes | String |
listItemMemberIndex | Enter the list item member index in which you want to look for the data. | No | String |
Example:
StoreListItemIndexContainingMaxValue "Key" "1"
...
This action stores the list item index which contains the minimum value. This action only works with numerical data.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key in which the list item index will be saved. | Yes | String |
listItemMemberIndex | Enter the list item member index in which the data is to be checked. | Yes | String |
Example:
StoreListItemIndexContainingMinValue "Key" "1"
...
The comparison is case-sensitive.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key in which you want to save the list item index. | Yes | String |
textToVerify | Enter the text that you want to verify. | No | String |
listItemMemberIndex | Enter the list item member index in which you want to check the data. | Yes | String |
Example:
StoreListItemIndexContainingText "Key" "Qualitia" "1"
...
The comparison is case-sensitive.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name in which the index number will be stored. | Yes | String |
textArrayToVerify | Enter the text array to be verified. | Yes | Array |
listItemMemberIndex | Enter the list item member from where the text is to be taken. | Yes | String |
Example:
StoreListItemIndexContainingTextInArray "Key" "d^f" "3"
...
This action stores the total count of the specified list item members under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which you want to store the count. | Yes | String |
Example:
StoreListItemMembersCount "Key"
...
List of accessible properties for iOS: "name", "value", "label", "hint"
Input Parameters:
ParameterName | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the property value will be stored. | Yes | String |
Property | Property/attribute name whose value needs to be stored under the specified key. This can be any accessible property of Android/iOS native object mentioned above. | Yes | String |
Example:
StorePropertyValue "key" "text"
StoreVisibility
This action stores visibility of the mobile object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
strKey | The visibility value for the mobile object is stored as:
| No | String |
Example:
StoreVisibility "Key"
Swipe
This action performs swipe and finds object until timeout occurs.
Input Parameters:
ParameterName | Parameter Description | Mandatory | Data Type |
---|---|---|---|
upDownLeftRight | Enter the direction of swipe:
| No | String |
timeoutInSeconds | Enter the timeout in seconds. | No | String |
swipePageInSeconds | Enter in how many seconds one page should be swiped. Default is 1 second. | No | String |
Example:
Swipe "up" "10" "1"
...
The data comparison is case-sensitive.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemIndex | Enter the list item index where you want to verify the existence. | Yes | String |
expectedListItemsData | Enter the expected data separated by carrot. You can provide one or more expected strings. | No | Array |
existence | Enter the expected existence of the data (True or False). | No | String |
Example:
VerifyDataExistenceInListItem "7" "40" "True"
...
The data comparison is case-sensitive.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemMemberIndex | Enter the list item member index where existence is to be verified. | Yes | String |
expectedListItemMembersData | Enter the expected data separated by carrot. You can provide one or more expected strings. | No | Array |
existence | Enter the expected existence of the data (True or False). | No | String |
Example:
VerifyDataExistenceInListItemMembers "5" "49" "True"
...
This action verifies the enability of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
enability | Value for this parameter can be True or False.
| No | String |
Example:
VerifyEnability "True"
...
This action verifies the existence of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
existence | Value for this parameter can be True or False.
| No | String |
Example:
VerifyExistence "True"
...
This action verifies the total count of items present under the list with the expected specified count.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
expectedListItemsCount | Enter the expected count. | No | String |
Example:
VerifyListItemCount "5"
...
This action verifies the list item member count with the expected specified count.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
expectedListItemMembersCount | Enter the expected count. | Yes | String |
Example:
VerifyListItemMemberCount "5"
...
This action verifies the actual data of the specified location matches with the expected data.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
data | Enter the data which you want to verify (case-sensitive). | Yes | String |
listItemIndex | Enter the list item index from which you want to verify the data. | Yes | String |
listItemMemberIndex | Enter the list item member index from which you want to verify the data. | No | String |
Example:
VerifyText "Qualitia" "3" "1"
WaitForObject (Deprecated)
This action waits for the object to appear or disappear for the maximum number of seconds specified.
...
If the wait time is "" then the wait time shall be the "Sync Time" set under the associated execution profile.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Timeout | Enter the number of seconds to wait for the object to appear or disappear. This has to be 0 or any positive number. | No | String |
existence | Value for this parameter can be True or False.
| No | String |
Example:
WaitForObject "10" "True"
...
This action enters the value into the specified MobileEdit box. When you remove the mouse from the parameter in Test Case Editor screen, the value is displayed in the encrypted format.
Input Parameters:
Paramters Name | Parameter Description | Mandatory | String |
---|---|---|---|
Text | Enter the test that needs to be entered in the specified text box in the specified format. | Yes | String |
Example:
SecureSet "Encrypt(Abc)". When you remove mouse from the parameter in Test Case Editor screen, you will view the data ABC as encrypted form such as "vHpmlfI4R3PQkCN4sZnuqw==þNWE3ZDdkNjE3N2JmNDM2ODgxMzQwYWI1MTA3YWNjMDc="
...
This action sets the text into mobile text box object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Value | Enter the value you want to add into specified mobile text box. | No | String |
Example:
Set "Qualitia"
On this page:
Table of Contents | ||||
---|---|---|---|---|
|
StoreExistence
This action stores existence of the object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the existence's Boolean value will be stored.
| Yes | String |
Example:
StoreExistence "Key"
...
List of accessible properties for iOS: "name", "value", "label", "hint"
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the property value will be stored. | Yes | String |
Property | Property/attribute name whose value needs to be stored under the specified key. This can be any accessible property of Android/iOS native object mentioned above. | Yes | String |
Example:
StorePropertyValue "key" "text"
...
This action reads the existing text available in mobile text box and stores it into the specified key.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which you want to store the text. | Yes | String |
Example:
StoreText "Key"
...
This action stores visibility of the object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
strKey | The visibility value for the object is stored as:
| No | String |
Example:
StoreVisibilty "Key"
...
This action performs swipe and finds object until timeout occurs.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
upDownLeftRight | Enter the direction of swipe:
| No | String |
timeoutInSeconds | Enter the timeout in seconds. | No | String |
swipePageInSeconds | Enter in how many seconds one page should be swiped. Default is 1 second. | No | String |
Example:
Swipe "up" "10" "1"
...
This action verifies the enability of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
enability | Value for this parameter can be True or False.
| No | String |
Example:
VerifyEnability "True"
...
This action verifies the existence of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
existence | Value for this parameter can be True or False.
| No | String |
Example:
VerifyExistence "True"
...
If the wait time is "" then the wait time shall be the "Sync Time" set under the associated execution profile.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Timeout | Enter the number of seconds to wait for the object to appear or disappear. This has to be 0 or any positive number. | No | String |
existence | Value for this parameter can be True or False.
| No | String |
Example:
WaitForObject "10" "True"
...
MobileRadioButton Actions
Note |
---|
These actions are available when working with the Android application testing only. |
Click
This action clicks the specified object.
...
This action verifies whether the radio button is selected or deselected.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
State | Value of this parameter can be either True or False.
| No | String |
If radio button is selected and state is "True", result is success. If radio button is selected and state is "False" result is failure.
...
This action does not have any parameter.
Example:
Select
On this page:
...
SelectByIndex
This action selects the specified radio button based on its index number. The index starts from 1. This action should be used only when radio button is part of a radio-group and group has a valid resource ID on Android.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
groupName | Enter the resource ID of the radio group. | Yes | String |
Index | Enter the index of the radio button in the radio group. Index starts at 1. | No | String |
Example:
SelectByIndex "com.sample.app:id/radiogroup1" "2"
...
This action selects the radio button if parameter passed is TRUE.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Select | Value of this parameter can be True or False.
| No | String |
Example:
SelectIfTrue "True"
...
This action stores existence of the object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the existence's Boolean value will be stored.
| Yes | String |
Example:
StoreExistence "Key"
...
List of accessible properties for iOS: "name", "value", "label", "hint"
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the property value will be stored. | Yes | String |
Property | Property/attribute name whose value needs to be stored under the specified key. This can be any accessible property of Android/iOS native object mentioned above. | Yes | String |
Example:
StorePropertyValue "key" "text"
StoreVisibility
This action stores visibility of the mobile object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
strKey | The visibility value for the mobile object is stored as:
| No | String |
Example:
StoreVisibility "Key"
Swipe
This action performs swipe and finds object until timeout occurs.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
upDownLeftRight | Enter the direction of swipe:
| No | String |
timeoutInSeconds | Enter the timeout in seconds. | No | String |
swipePageInSeconds | Enter in how many seconds one page should be swiped. Default is 1 second. | No | String |
Example:
Swipe "up" "10" "1"
...
This action verifies the enability of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
enability | Value for this parameter can be True or False.
| No | String |
Example:
VerifyEnability "True"
...
This action verifies the existence of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
existence | Value for this parameter can be True or False.
| No | String |
Example:
VerifyExistence "True"
...
If the wait time is "" then the wait time shall be the "Sync Time" set under the associated execution profile.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Timeout | Enter the number of seconds to wait for the object to appear or disappear. This has to be 0 or any positive number. | No | String |
existence | Value for this parameter can be True or False.
| No | String |
Example:
WaitForObject "10" "true"
...