After you define your requirements, you need to determine your testing goals. To do this, examine your application, system environment, and testing process to outline the testing strategy for achieving your goals.


 After you determine your testing goals, you build a test plan tree, which hierarchically divides your application into testing modules, or subjects. For each subject in the test plan tree, you define tests that contain test steps.


 For each test step, you specify the commands to be performed on your application. You can increase the flexibility of a test step by adding parameters.


 To keep track of the relationship between your tests and your requirements, you can add links between them. This can help you ensure compliance with your requirements throughout the testing process.



1. Creating Test Case Tree

The typical application is too large to test as a whole. The Test Plan module enables you to divide your application according to functionality. You divide your application into modules, or sub modules, by creating a test plan tree.


The test plan tree is a graphical representation of your test plan, displaying your tests according to the hierarchical relationship of their functions. After you define modules in the tree, you decide which tests to create for each modules, and add them to the tree.


2. Display Test Plan Tree

Click the Test Plan Folder Icon in the tool bar.


                         

3. Click Create New Test Plan Icon


                           

4. Add details to the Test Plan – Overview Tab



5. Map the Test Cases to Requirements


 

 

 

Designing Test Steps

 

After you add a test to the test plan tree and define basic test information, you define test steps—detailed, step-by-step instructions that specify how your steps execute the test. A step includes the commands to be performed on your application and the parameters.

 

1. Double click on the Test Command cell, a dropdown will be displayed with list of mobile commands.

 


Auto Prudent Test simplifies the development of test cases allowing users to select commands during test development phase. Commands in Auto Prudent Test perform operations on the required objects (UI controls) as per their predefined command. Commands are associated with different objects of the application under test.

 

2. Usually, multiple commands are mapped with required object in the application to allow users to perform different operations on the object. However, some commands do not have objects associated with them. For example, the MobiTypeTextinTextBox sets a value in specific Edit box control.

 

The following example explains the usage of commands.

  • A typical login screen on a mobile application may have two text boxes for entering user name and password. These text boxes are the controls or the objects in an application. 

  • The login screen also has a Submit button, which is also an object, to log on to the application. The command for the user name text box is MobiTypeTextinTextBox

  • This command enters a value into an edit box. The string value in the edit box is the single input (parameter) for this command. The command for the Submit button is ClickMobiButton

  • This command performs a click operation on the Submit or Sign In button. No parameter is required for this command.

So the test steps for the above example would be like this.



3. Once you created the test steps, click on Submit Button, to get the steps saved.

 

Test Commands

Test commands are classified as

  • Common Mobile Commands 

  • Specific Mobile Commands  

 

 

Test Command Name

Parameter 1

Parameter 2

Description about the command 

Type of command

AndroidBackButton

--No Parameter Required--


This command is used to perform back button action

Common

BackgroundApp

--No Parameter Required--


Run the app in the background

Common

ClickIfEnabled

ElementName


This command is used to click on the element if it is enabled 

Common

ClickImageUsingText

TextBoxName


This command is used to click on the image using the given text.

TextBox

ClickMobiAlert

AlertName


This command is used to click on the accept alert option

Mobile AlertMessage

ClickMobiButton

ButtonName


This command is used to click on the mobile button element

Mobile Button

ClickMobileElement

ElementName


This command Is used to click on the element provided

Common

ClickUsingText

TextBoxName

Text of the element

This command is used to click on the element using the provided text

Mobile TextBox

CloseApp

--No Parameter Required--


Close the current focused app

Common

CompareText

TextBoxName

Actual Text to compare

This command is used to compare the text provided in parameter 2 with the text present in the element.

Mobile TextBox

DeFocusMobiButton

ButtonName


This command is used to defocus the button described

Mobile Button

DeFocusMobiCheckBox

CheckboxName


This command is used to defocus the checkbox described

Mobile CheckBox

DeFocusMobiDropDown

DropDownName


This command is used to defocus the dropdown described

Mobile DropDown

DeFocusMobiEditField

EditFieldName


This command is used to defocus the editfield described

Mobile EditField

DeFocusMobiRadioButton

RadioButtonName


This command is used to defocus the radio button described

Mobile RadioButton

DeFocusMobiTextArea

TextBoxName


This command is used to defocus the text area element described.

Mobile TextBox

DeSelectMobiCheckBox

CheckboxName


This command is used to deselect the check box which is selected already

Mobile Checkbox

DeSelectMobiRadioButton

RadioButtonName


This command is used to deselect the radio button which is already selected.

Mobile RadioButton

DismissMobiAlert

Alert Name


Command used to dismiss the alert popup

Mobile AlertMessage

DoubleClickonMobiButton

ButtonName


This command is used to perform double click action on the button element.

Mobile Button

DoubleClickOnMobiElement

ElementName


This command is used to perform double click action on the element.

Common

DropDownOptionAvailable

DropDownName


This Command is used to verify whether the dropdown has list of options to be choosed.

Mobile DropDown

DropDownOptionNotAvailable

DropDownName


This Command is used to verify whether the dropdown has no options to be choosed.

Mobile DropDown

EndMobiSession

--No Parameter Required--


Terminate the mobile session 

Common

GetMobiDeviceTime

--No Parameter Required--


Get the time of the current working device

Common

GetMobiText

TextBoxName


This command is used to get the text of the mobile element

Mobile TextElement

GetScreenOrientation

--No Parameter Required--


Command used to get the screen orientation

Common

HideKeyboard

--No Parameter Required--


Command used to hide the keyboard on the mobile screen

Common

IsAppInstalled

BundleId


This command is used to verify whether the app is installed or not using the bundleid

Common

IsKeyBoardShown

--No Parameter Required--


Verify whether the keyboard is visible on the screen

Common

IsSelected

SelectedElementName


Verify whether the element is present at selected state.

Common

MobiAttributeExist

Attribute Name


Verify whether the mobile attribute exists.

Mobile Attribute

MobiBrowserClose

--No Parameter Required--


Close the browser session in the mobile

Common

MobiClearTextArea

TextBoxName


This command is used to clear the text area if it has any text present in it.

Mobile TextBox

MobiClickImage

ImageElement


This command is used to click on the mobile image

Mobile Image

MobiDeleteAllCookies

--No Parameter Required--


Delete all the cookies present.

Common

MobiDoubleTap

ElementName


peform double tap on the element provided.

Common

MobiElementExist

ElementName


Verify whether the mobile element exists.

Common

MobiElementFocused

ElementName


This command is used to set the focus on the mobile element.

Common

MobiElementNotExist

ElementName


Verify whether the mobile element does not exist .

Common

MobiElementNotSelected

ElementName


This command is used to verify the mobile element provided is not selected

Common

MobiElementNotVisible

ElementName


This command is used to verify the mobile element provided is not visible on the screen

Common

MobiElementSelected

ElementName


This command is used to verify the mobile element provided is selected properly

Common

MobiElementVisible

ElementName


This command is used to verify the mobile element provided is visible on the screen

Common

MobiInstallApp

ApkPath


This command is used to install the app to the mobile environment by providing proper apk path

Common

MobiLinkClick

LinkName


This command click on the Link

Mobile Link

MobiLinkPresent

LinkName


Verify the Link is present

Mobile Link

MobiLinkTextVerification

LinkName

Verification Text

Verify the text present on the link is equal to the link provided in parameter 2.

Mobile Link

MobiLockDevice

--No Parameter Required--


This command is used to lock the device.

Common

MobiLongPress

ElementName


This command is used to perform the long press action.

Common

MobiMaximize

--No Parameter Required--


This command is used to maximize screen 

Common

MobImplicitWait

TimeToWaitInMilliSeconds


This command is used to wait until the time specified.

Wait time

MobiPasteText

TextBoxName

Text to be pasted

This command is used to paste the text provided in paramter 2 to the element specified in parameter 1.

TextBox

MobiRefresh

--No Parameter Required--


Refreshthe screen focused currently.

Common

MobiRemoveApp

BundleId


Remove the app from your mobile using bundleid

Common

MobiResetApp

--No Parameter Required--


Reset the app to the default state.

Common

MobiScrollUp

The X coordinate of the Click

The Y coordinate of the Click

This command is used to scroll to the top using the x and y coordinates provided.

Common

MobiSendKeys

TextBoxName

Keys to enter

This command is used to enter the key on the Text box element

Input Element

MobiSingleTap

ElementName


Perform single tap on the element.

Common

MobiSleep

TimeToWaitInMilliSeconds


This command is used to wait until the time specified.

Mobile Wait time

MobiTypeTextinTextBox

TextBoxName

Text to be typed

This command is used to type the given text in parameter 2 to the element specified.

Mobile TextBox

SelectMobiCheckBox

CheckBoxName


This command is used to select the checkbox element

Mobile CheckBox

SelectMobiDropDownItemByIndex

DropDownName

Index of the dropdown list

This command is used to select the dropdown element using the index provided

Mobile DropDown

SelectMobiFrame

FrameName


Select the frame present on the window

Mobile Frame

SelectMobiItemFromDropDown

DropDownName

List of drop down item

This command is used to select multiple option from the dropdown.

Mobile DropDown

SelectMobiOptionByIndex

OptionName

Index of the option present

This command is used to select the option element using the index provided

Mobile DropDown

SelectMobiRadioButton

RadioButtonName


This command is used to select the radio button element

Mobile RadioButton

SetMobiFocus

FocusElementName


Set focus on the element provided

Mobile Focus Element

SetMobiFocusDropDown

DropDownName


Set focus on the dropdown element provided

Mobile DropDown

SetMobiFocusTextArea

TextAreaName

Text to be focused

Set focus on the text area element provided

Mobile TextArea

SetMobiLandscapeOrientation

--No Parameter Required--


Make the screen to landscape orientation

Common

SetMobiPortraitOrientation

--No Parameter Required--


Make the screen to portrait orientation

Common

UncheckUsingText

CheckBoxName

Text of the check box

This command is used to uncheck the element using the provided text.

Mobile Checkbox

UnSelectMobiCheckBox

CheckBoxName

Text of the check box

This command is used to uncheck the check box using the provided text.

Mobile CheckBox

VerifyDefaultDropDownSelectedOption

DropDownName

Default selected option

This command is used to verify the default drop down options is present selected.

Common

VerifyMobiAlertExist

AlertName


Verify the mobile alert is shown in the screen.

Mobile AlertMessage

VerifyMobiButtonEnabled

ButtonName


This command is used to verify the button element is present displayed 

Mobile Button

VerifyMobiButtonText

ButtonName

Text of the button

This command is used to verify the button text is equals to the text provided in parameter 2

Mobile Button

VerifyMobiEditBoxDisabled

EditBoxName


This command is used to verify the edit box element is present in disabled state 

Mobile EditBox

VerifyMobiEditBoxEnabled

EditBoxName


This command is used to verify the edit box element is present in enabled state 

Mobile EditBox

VerifyMobiEditBoxExist

EditBoxName


This command is used to verify the edit box exist 

Mobile EditBox

VerifyMobiEditBoxNotExist

EditBoxName


This command is used to verify the edit box does not exist 

Mobile EditBox

VerifyMobiElementDisplayed

ElementName


This command is used to verify the element is present displayed 

Common

VerifyMobiImageCount

Image Attribute

Count of the image

This command is used to verify the count of the image present on the screen

Mobile Image

VerifyMobiImageDisabled

ImageName


This command is used to verify the image is present in disabled state 

Mobile Image

VerifyMobiImageEnabled

ImageName


This command is used to verify the image is present in enabled state 

Mobile Image

VerifyMobiImageExist

ImageName


This command is used to verify the image     exist

Mobile Image

VerifyMobiImageNotExist

ImageName


This command is used to verify the image does not exist

Mobile Image

VerifyMobiImageNotVisible

ImageName


This command is used to verify the image is not visible in the screen

Mobile Image

VerifyMobiImageVisible

ImageName


This command is used to verify the image is visible in the screen

Mobile Image

VerifyMobiLinkCount

LinkName

Count of the ink

This command is used to get the count of the links present and verify it is equal to the count provided in parameter 2.

Mobile Link

VerifyMobiLinkDisabled

LinkName


This command is used to verify the link is present disabled 

Mobile Link

VerifyMobiLinkExist

LinkName


This command is used to verify the link exist. 

Mobile Link

VerifyMobiLinkNotExist

LinkName


This command is used to verify the link does not exist

Mobile Link

VerifyMobiLinkNotVisible

LinkName


This command is used to verify the link is not visible on the screen.

Mobile Link

VerifyMobiLinkVisible

LinkName


This command is used to verify the link is visible on the screen 

Mobile Link

VerifyMobiRadioButtonDisabled

RadioButtonName


This command is used to verify the radio button is disabled 

Mobile RadioButton

VerifyMobiRadioButtonEnabled

RadioButtonName


This command is used to verify the radio button is present enabled state 

Mobile RadioButton

VerifyMobiRadioButtonExist

RadioButtonName


This command is used to verify the radio button exist 

Mobile RadioButton

VerifyMobiRadioButtonInvisible

RadioButtonName


This command is used to verify the radio button is Invisible on the screen 

Mobile RadioButton

VerifyMobiRadioButtonNotExist

RadioButtonName


This command is used to verify the radio button does not exist. 

Mobile RadioButton

VerifyMobiRadioButtonNotSelected

RadioButtonName


This command is used to verify the radio button is not selected.

Mobile RadioButton

VerifyMobiRadioButtonSelected

RadioButtonName


This command is used to verify the radio button is selected 

Mobile RadioButton

VerifyMobiRadioButtonVisible

RadioButtonName


This command is used to verify the radio button is visible 

Mobile RadioButton

VerifyMobiTableExist

TableName


This command is used to verify the table exist.

Common

VerifyMobiText

TextBoxName

Text to be verified

This command is used to get the text of the element and verify the text provided in parameter 2 is equal.

Commam

VerifyMobiTextAreaDisabled

TextBoxName


This command is used to verify the text area element is present disabled 

Mobile TextArea

VerifyMobiTextAreaEnabled

TextBoxName


This command is used to verify the text area element is present enabled 

Mobile TextArea

VerifyMobiTextAreaExist

TextBoxName


This command is used to verify the text area element exists. 

Mobile TextArea

VerifyMobiTextAreaNotExist

TextBoxName


This command is used to verify the text area element does not exist.

Mobile TextArea

VerifyMobiTextAreaText

TextBoxName

Text to be verified

This command is used the verify the text are contains the provided text in parameter 2.

Mobile TextArea

VerifyMobiTextContains

TextBoxName

Text to be verified

This command is used to verify the element contains the text provided in parameter 2.

Mobile TextArea

VerifyMobiTextLength

TextBoxName

Length of the text

This command is used to verify the length of the text.

Mobile TextArea

VerifyMobiTextNotContains

TextBoxName

Text to be verified

This command is used to verify the text element does not contain  the text provided in parameter 2.

Mobile TextArea

VerifyMobiWindowExist

WindowName


This command is used to verify the window is present.

Mobile Window