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 web commands 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 LaunchURL command does not have any objects associated with it. However, the SetTextInTextBox sets a value in specific Edit box control.

 

The following example explains the usage of commands.

  • A typical login screen on a web page 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 SetTextInTextBox

  • 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 ClickButton

  • 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 Web Commands 

  • Specific Web Commands  

  • ChatBot Commands

 

Test Command Name

Parameter 1

Parameter 2

Description about the command

Type of Command

LaunchURL

URL

 

This command opens the specified URL in the browser selected under Configuration Settings.

Common

NavigateForward

--No Parameter Required--

 

This command navigates the browser to the next page

Common

NavigateBack

--No Parameter Required--

 

This command navigates the browser to the previous page.

Common

StorePageURL

KeyName to Store

 

This command stores the URL of the web page under the specified key. The stored value can be retrieved using the key name. 

Common

StorePageTitle

KeyName to Store

 

This command stores the web page title under the specified key. The stored value can be retrieved using the key name. 

Common

StoreVariable

KeyName to Store

Data Value to Store

This command stores a particular string value under the specified key. This value can be used when developing test cases.  

Common

SecureStoreVariable

KeyName to Store

Data Value to Store

This command stores the specified value securely by encrypting it under the specified key. The key value can be retrieved using the key name.

Common

DragAndDropToObject

dragLocator

dropToLocator

This command drags the specified object and drops it in the position of another specified object. 

Common

Sleep

 

 

This command adds the delay during execution for the given period of time (in milli seconds).
 This command can be used when a particular command takes some time for execution. For instance, after performing an OpenUrl command, some amount of wait can be given till the URL is opened completely.

Common

SelectPage

windowName

 

This command helps AutoPrudent users to shift the focus from one window/page to another as per the test case requirements. 

Common

ClosePopUpBrowser

windowName

 

This command closes the popup that appears on the web page. 

Common

PressKeys

KeyBoard keys (Keys should be encapsulated with ~)

 

This command sends one or more keystrokes to the active window (as if typed on the keyboard).

Common

StoreDateTimeByZone

expectedTimeZone

dateTimeFormat

This command helps to convert the date and time provided by the user into the expected time zone.

Common

CompareStringCaseSensitive

firstString

mainString

This command compares two strings. The comparison should be  case-sensitive Even a key can be passed as one of the parameters for comparison where the CompareString function will retrieve the value from the key and that value will be compared with expected.

Common

CompareStringNonCaseSensitive

firstString

mainString

This command compares two strings. The comparison should be non case-sensitive. Even a key can be passed as one of the parameters for comparison where the CompareString function will retrieve the value from the key and that value will be compared with expected.

Common

VerifyStringContainsValueCaseSensitive

 

 

This command verifies that the substring is present within the main string. Comparison Should be case sensitive.

Common

VerifyStringContainsValueNonCaseSensitive

 

 

This command verifies that the substring is present within the main string. Comparison Should be non case sensitive.

Common

MaximizeBrowser

--No Parameter Required--

 

This command maximises the browser.

Common

SelectFrame

locator

 

This command selects a frame within the current window.

Common

AcceptDialog

--No Parameter Required--

 

This command clicks the OK button on the alert/prompt/confirmation pop up.

Common

DismissDialog

--No Parameter Required--

 

This command cancels the alert/prompt/confirmation pop up.

Common

AttachFile

fileInputlocator

FilePath

This command sets a file path in the file object type in html. This command is applicable only for desktop web application.

Common

VerifyLinkOnPage

Link

 

This command verifies if there is any hyperlink exists on the page.

Common

RefreshPage

--No Parameter Required--

 

This command simulates the refresh operation on the currently selected page.

Common

DeleteCookiesOnCurrentDomain

--No Parameter Required--

 

This command deletes all the cookies that are visible to the current domain. 

Common

MinimizeWindow

--No Parameter Required--

 

This command minimizes the window.

Common

SetPageLoadTimeout

timeoutinSeconds

 

This command sets the page load timeout when executing test cases. The time set here overrides the Page Timeout set under Configuration Settings >

Common

SetWindowSize

width 

height

This command sets the window size based on the parameters provided (height and width).

Common

SetFullScreen

--No Parameter Required--

 

This command sets the browser in the full screen mode. 

Common

ClickAndHold

--No Parameter Required--

 

This command clicks (without releasing) at the current mouse location.

Common

DoubleClick

--No Parameter Required--

 

This command performs a double click command at the current mouse location.

Common

RightClick

 

 

This command performs a right-click command at the current mouse location.

Common

SelectFrameByIndexWhenAvailable

frameIndex 

 

This command waits for the specified frame to appear on the page and selects when it is available. You may specify the timeout and polling interval, if required.

Common

WaitForTitleContains

title

 

This command waits for the web page title to contain expected partial parameterized value. This comparison is case-sensitive. You may specify the timeout and polling interval, if required.

Common

ClickButton

Button Name

 

This command clicks the specified object.

Web Buttons

MouseOver

--No Parameter Required--

 

This command simulates a mouse hovering over the specified object.

Web Buttons

MouseDown

The X coordinate of the Click

The Y coordinate of the Click

This command simulates left-click at the specified location on the screen.

Web Buttons

MouseUp

The X coordinate of the Click

The Y coordinate of the Click

This command simulates the event that occurs when the user releases the mouse button.

Web Buttons

VerifyButtonEnabled

Button Name

 

This command verifies the enability of the specified Button

Web Buttons

VerifyButtonExistence

Button Name

 

This command verifies the existence of the specified Button

Web Buttons

VerifyButtonVisibility

Button Name

 

This command verifies the visibility of the specified Button

Web Buttons

ClickAt

The X coordinate of the Click

The Y coordinate of the Click

This command clicks at the specified point on the object.

Web Buttons

StoreExistence

Key Name

 

This command stores existence of the object under the specified key. The key value can be retrieved using the key name. 

Web Buttons

StoreText

keyText

 

This command stores the text existing inside the specified object under the specified keys. The key values can be retrieved using the key names. 

Web Buttons

SetValueAttribute

value

 

This command sets the data specified in the 'value' attribute of the object.

Web Buttons

ScrollIntoView

Button Name

 

This command scrolls to view the specified object. 

Web Buttons

SetFocus

Button Name

 

This command sets the focus on the specified object.

Web Buttons

CheckACheckBox

Checkbox Name

 

This command selects the specified check box.

Web CheckBox

CheckIfTrue

Checkbox Name

 

This command selects the specified check box, only if the parameter passed is true.

Web CheckBox

ClickCheckBox

Checkbox Name

 

This command clicks the specified object.

Web CheckBox

IsSelectedCheckBox

Checkbox Name

 

Checkbox Name

Web CheckBox

CheckBoxSelectByValue

Checkbox Name

 

This command selects the specified check box based on its value.

Web CheckBox

SetFocusOnCheckBox

 

 

This command sets the focus on the specified object.

Web CheckBox

SetValueAttributeCheckBox

Checkbox Name

Value

This command sets the data specified in the 'value' attribute of the object.

Web CheckBox

ClearTextInTextBox

TextBoxName

 

This command clears the text present in the specified text box.

Web TextBox

ClickTextBox

TextBoxName

 

This command clicks the specified object.

Web TextBox

SecureSet

TextBoxName

TextValue

This command enters the expected value into the specified edit box. The value set in the parameter is encrypted once the focus is moved for security purposes.

Web TextBox

SendKeySequence

TextBoxName

arrayofKeys

This command sends one or multiple keys specified in the parameters to the specified object. You may use the syntaxes mentioned below to send normal or modifier keys. Multiple keys should be separated by caret.

Web TextBox

SetValueinTextBox

TextBoxName

TextValue

This command enters the specified value into the edit box.

Web TextBox

SetFocusonTextBox

TextBoxName

 

This command sets the focus on the specified object.

Web TextBox

VerifyTextBoxEnabled

TextBoxName

 

TextBoxName

Web TextBox

VerifyTextBoxExistence

TextBoxName

 

This command verifies the existence of the specified object. 

Web TextBox

VerifyTextBoxVisibility

TextBoxName

 

This command verifies the visibility of the specified object.

Web TextBox

SetFocusonLink

LinkName

 

This command sets the focus on the specified object.

Web Link

VerifyLinkEnabled

TextBoxName

 

This command verifies the if the link is enabled

Web Link

VerifyLinkExistence

LinkName

 

This command verifies the existence of the specified object. 

Web Link

VerifyLinkVisibility

LinkName

 

This command verifies the visibility of the specified object.

Web Link

ClickLink

LinkName

 

This command clicks on a Link

Web Link

VerifyWebListEnabled

WebListName

 

This command verifies the if the WebList is enabled

WebList

VerifyWebListExistence

WebListName

 

This command verifies the existence of the specified object. 

WebList

VerifyWebListVisibility

WebListName

 

This command verifies the visibility of the specified object.

WebList

ClickWebList

WebListName

 

This command clicks on a WebList

WebList

SetFocusonWebList

WebListName

 

This command Sets Focus on a WebList

WebList

DeselectAll

WebListName

 

This command deselects all the options from the web list. 

WebList

DeselectItemByText

WebListName

ItemName

This command deselects option specified in the parameter. 

WebList

DeselectItemByValue

WebListName

ItemName

This command deselects option specified in the parameter. 

WebList

DeSelectItems

WebListName

ItemsName by Comma Separated

This command deselects the specified selected items from the specified list box. Multiple items for deselection can be given only for the list box that has multi-selection property.

WebList

DeselectMultipleItemsByIndex

WebListName

indices

This command deselects multiple items specified in the parameter. 

WebList

IsMultiselectList

WebListName

KeyValue

This command verifies that web list element supports selecting multiple options and stores the result under the specified key. 

WebList

SelectItemByTextWebList

WebListName

ItemName

This command selects option specified in the parameter.     

WebList

SelectItemByValueWebList

WebListName

ItemName

This command selects option specified in the parameter.     

WebList

SelectItemsWebList

WebListName

ItemsName by Comma Separated

This command selects particular item or items from a list. Multiple items for selection can be given only for the list box that has multi-selection property.

WebList

SelectMultipleItemsByIndex

WebListName

indices

This command selects multiple items specified in the parameter. 

WebList

VerifyButtons

Button Name with | as delimiter

 

This command verifies the Buttons Displayed in the Bot Utterance 

ChatBot

 

ChooseButton

Button Name

 

This command help to choose the Button Displayed in the Bot Utterance  as User Intent

 ChatBot