These action keywords help us in verification of various elements.
Suppose you wish to verify if an element is visible and enabled or not.
Structure :
launchApp <parameter>
verifyElementVisible <parameter>
verifyElementEnabled <parameter>
<further steps to execute>
All keywords under this list soft fail in negative scenarios.
Action | Parameters | Example Usage |
---|---|---|
verifyAlertText
To verify the text (mentioned in Parameter 1) id displayed on alert/popup. | Param 1 : Expected alert text to verify | Example :
Verifies text Are you sure you want to log out? is displayed on the alert. |
verifyAllOptionsInList
To verify all the options available in drop-down/multi-select object (mentioned in objectName). | Param 1 : Comma separated list of expected items | Example :
Verifies if Option1 & Option2 are displayed as option list items in object bqSelectbox. |
verifyAllItemsInSpinner
To verify all the items available in spinner object (mentioned in objectName). | Param 1 : Expected spinner items separated by comma | Example :
Verifies if Option1 & Option2 are displayed as option list in object bqSpinner. |
verifyAllTabsExist
To verify the comma separated tabs (mentioned in Parameter 1) exist in TabStrip (mentioned in Object Name). | Param 1 : Expected tab names separated by comma | Example :
Verifies Allocation, Resource tabs exist in Tab Strip AssetTabStrip. |
verifyBluetoothEnabled
To verify if Bluetooth is enabled on device. | Example :
Verifies if Bluetooth is enabled on device or not. | |
verifyBluetoothDisabled
To verify if Bluetooth is disabled on device. | Example :
Verifies if Bluetooth is disabled on device or not. | |
verifyConnectedDeviceCount
To verify the count of total Bluetooth devices connected. | Param 1 : Expected count | Example :
Verifies that the count of the total Bluetooth devices connected is 5. |
verifyChecked
To verify if checkbox (mentioned in objectName) is checked. | Param 1 (Optional) : Timeout (in seconds) | Example :
Verifies if checkbox bqCheckbox is checked or not. |
verifyDecimal
To verify the value (mentioned in Parameter) is decimal. If test object (mentioned in bqObject) is provided, the value of object is verified. | Param 1 : Value to verify | Example :
Verifies that the mentioned value 12.5 is a decimal value.
Verifies that the mentioned value 12.5 of bqObject is a decimal value. |
verifyElementEnabled
To verify if the object (mentioned in objectName) is enabled. | Param 1 (Optional) : Timeout (in seconds) | Example :
Verifies if object bqObject is enabled or not. |
verifyElementDisabled
To verify if the object (mentioned in objectName) is disabled. | Param 1 (Timeout) : Timeout (in seconds) | Example :
Verifies if object bqObject is disabled or not. |
verifyElementVisible
To verify if object (mentioned in objectName) is visible on the screen. | Param 1 (Optional) : Timeout | Example :
Verifies object bqObject is displayed on the screen. |
verifyElementNotVisible
To verify if object (mentioned in objectName) is not visible on the screen. | Param 1 (Optional) : Timeout | Example :
Verifies object bqObject is not displayed on the screen. |
verifyElementValue
To verify the element (mentioned in ObjectName) has value (mentioned in Parameter 1). | Param 1 : Element value to be verified | Example :
Verifies if element bqTextbox has value bqurious. |
verifyEqual
To verify that the specified values in Parameter 1 and Parameter 2 are equal. | Param 1 : Value1 to compare | Example :
Verifies the left value Bqurious & right value Bqurious are equal. |
verifyEmpty
To verify that the element value (mentioned in object) or value (mentioned in Parameter 1) is empty. | Param 1 : Value to be verified | Example :
Verifies that object’s value is empty. |
verifyElementAttributeValueContains
| Param 1 : Name of the attribute | Example :
Verifies bqObject has attribute bqClass with value bqBold. |
verifyElementCssContains
To verify that the element (mentioned in Object Name) has property (mentioned in Parameter 1) with value (mentioned in Parameter 2). | Param 1 : The css property | Example :
Verifies bqObject has property height with value 170. |
verifyFolderExists
To verify if folder (mentioned in Parameter 1) exists in file system at location (mentioned in Parameter 2). | Param 1 : Name of the folder | Example :
Verifies if bqFolder exists in local file system at location d:/bqLocation. |
verifyFileExists
To verify if file (mentioned in Parameter 1) exists in file system at location (mentioned in Parameter 2). | Param 1 : Name of the file | Example :
Verifies if bqfile.txt exists in local file system at location d:/bqLocation. |
verifyItemCountInRadioGroup
To verify the count (mentioned in Parameter 1) of radio buttons under a radio group object (mentioned in objectName) displayed on the screen. | Param 1 : Expected count of the radio buttons | Example :
Verifies that the count of radio buttons, displayed under radio group object bqRadioGroup, is 4. |
verifyInteger
To verify the value (mentioned in Parameter) is an integer. If test object (mentioned in bqObject) is provided, the value of object is verified. Precedence is on the object value. | Param 1 : Value to verify | Example :
Verifies that the mentioned value 12 is an integer.
Verifies that the mentioned value 12 of bqObject is an integer. |
verifyNotChecked
To verify if checkbox is not checked. | Param 1 (Optional) : Timeout (in seconds) | Example :
Verifies if checkbox bqCheckbox is un-checked or not. |
verifyNotSelectedItemInSpinner
To verify that the specified item (mentioned in Parameter 1) is not selected in spinner object (mentioned in objectName). | Param 1 : Expected spinner item | Example :
Verifies Option1 is not selected in object bqSpinner |
verifyNotEmpty
To verify that the element value (mentioned in object) or value (mentioned in Parameter 1) is not empty. | Param 1 : Value to be verified | Example :
Verifies that object’s value is not empty. |
verifyOptionCountInList
To verify the total count of the available options in drop-down/multi-select object (mentioned in objectName). | Param 1 : Expected count of the list items | Example :
Verifies that the option count in list is 2, in object bqSelectbox. |
verifyRadioSelected
To verify if radio-button is selected. | Param 1 (Optional) : Timeout (in seconds) | Example :
Verifies if radio button bqRadiobutton is checked or not. |
verifyRadioNotSelected
To verify if radio-button is not selected. | Param 1 (Optional) : Timeout (in seconds) | Example :
Verifies if radio button bqRadiobutton is un-checked or not. |
verifyRequest
To verify the data present in request params. | Param 1 : URL to verify | Example :
Verifies if {"Host":"www.bqurious.com","User":"userName"} is present in request Header in URL bqurious. |
verifyRadioGroupOptions
To verify the options (mentioned in Parameter 1) displayed under radio group object (mentioned in objectName) on screen. | Param 1 : Expected Radio Group options mentioned by comma separation | Example :
Verifies Option1, Option2 & Option3 are displayed as radio buttons under radio group bqRadioGroup. |
verifySpinnerItemsExist
To verify all the options (mentioned in Parameter 1) available in spinner object (mentioned in objectName). | Param 1 : Comma separated values to verify | Example :
Verifies if Option1 and Option2 are displayed as option list in object bqSpinner. |
verifySpinnerItemsDoNotExist
To verify the options (mentioned in Parameter 1) are not available in spinner object (mentioned in objectName). | Param 1 : Comma separated values to verify | Example :
Verifies if Option1 and Option2 are not displayed as option list in object bqSpinner. |
verifySelectedItemInSpinner
To verify that the specified item (mentioned in Parameter 1) is selected in spinner object (mentioned in objectName). | Param 1 : Expected spinner item | Example :
Verifies Option1 is selected in object bqSpinner |
verifyTextCount
To verify if text (mentioned in Parameter 1) is displayed n number of times. | Param 1 : Text to verify | Example :
Verifies if text Automate is displayed 5 times on the screen |
verifyTabExists
To verify if tab (mentioned in ObjectName) with tab name (mentioned in Parameter 1) exists. | Param 1 : Name of the tab | Example :
Verifies that tab AssetTabStrip with tab name Allocation exists. |
verifyTabDoesNotExist
To verify if tab name or index (mentioned in Parameter 1) does not exist in TabStrip (mentioned in Object Name). | Param 1 : Name / Index of tab | Example :
Verifies that tab AssetTabStrip with tab name Allocation does not exist. |
verifyTabNotSelected
To verify that tab name (mentioned in Parameter 1) is not selected in TabStrip (mentioned in Object Name). | Param 1 : Name of the tab | Example :
Verifies Allocation tab is not selected in Tab Strip AssetTabStrip |
verifyTabSelected
To verify that tab name (mentioned in Parameter 1) is selected in TabStrip (mentioned in Object Name). | Param 1 : Name of the tab | Example :
Verifies Allocation tab is selected in Tab Strip AssetTabStrip |
verifyToggleButtonState
To verify if the toggle button object (mentioned in objectName) state is true or false (state mentioned in Parameter 1). | Param 1 : Expected state of toggle button | Example :
Verifies that the bqToggleButton state is true or not. The test step will only pass if state is equal to state mentioned in Parameter 1. |
verifyTabsCount
To verify the total number of tabs in tabStrip (mentioned in Object Name) is same as the value mentioned in Parameter 1. | Param 1 : Total number of tabs | Example :
Verifies AssetTabStrip contains 5 tabs in total. |
verifyTextExistsOnDevice
To verify the specified text (mentioned in Parameter 1) exists on page. If object (mentioned in ObjectName) is provided, the text will be searched in the object only. | Param 1 : Text to verify | Example :
Verifies text bqurious exists on page.
Verifies text bqurious exists in the mentioned object bqObject. |
verifyTextDoesNotExistOnDevice
To verify the specified text (mentioned in Parameter 1) does not exist on page. If object (mentioned in ObjectName) is provided, the text will be searched in the object only. | Param 1 : Text to verify | Example :
Verifies text bqurious does not exist on page.
Verifies text bqurious does not exist in the mentioned object bqObject. |
verifyValueInExcelCell
To verify if the column (mentioned in Parameter 2) value from row (row index mentioned in Parameter 3) is equal to specified value (mentioned in Parameter 1). | Param 1 : Value to verify | Example :
Verifies that the value at column Product Name, row 7 is bqProduct. |
visualDiff
To verify the actual screen with the existing screen. | Example :
Verifies the screen that has element bqElement01 is similar to the screen already captured. |
Add Comment