Skip to content

Testing with Bqurious > Actions

Assertions

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>

IMPORTANT

All keywords under this list soft fail in negative scenarios.

ActionParametersExample Usage
verifyAlertText Web, Mobile


---

To verify the text (mentioned in Parameter 1) id displayed on alert/popup.
Param 1 : Expected alert text to verify Param 2 (Optional) : TimeoutExample :
verifyAlertExists : <Expected Text : Are you sure you want to log out?> <Timeout : 30>
Verifies text Are you sure you want to log out? is displayed on the alert.
verifyAllOptionsInList Web, Mobile


---

To verify all the options available in drop-down/multi-select object (mentioned in objectName).
Param 1 : Comma separated list of expected items Param 2 (Optional) : TimeoutExample :
verifyAllOptionsInList : <Object : bqSelectbox> <Expected Comma Separated List Items : Option1, Option2> <Timeout : 30>
Verifies if Option1 & Option2 are displayed as option list items in object bqSelectbox.
verifyAllItemsInSpinner Mobile


---

To verify all the items available in spinner object (mentioned in objectName).
Param 1 : Expected spinner items separated by comma Param 2 (Optional) : TimeoutExample :
verifyAllItemsInSpinner : <Object : bqSpinner> <Expected Comma Separated Spinner Items : Option1, Option2> <Timeout : 30>
Verifies if Option1 & Option2 are displayed as option list in object bqSpinner.
verifyAllTabsExist Mobile


---

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 Param 2 (Optional) : TimeoutExample :
verifyAllTabsExist : <Object : AssetTabStrip> <Expected Comma Separated Tab name : Allocation, Resource> <Timeout : 30>
Verifies Allocation, Resource tabs exist in Tab Strip AssetTabStrip.
verifyBluetoothEnabled Mobile


---

To verify if Bluetooth is enabled on device.
Example :
verifyBluetoothEnabled
Verifies if Bluetooth is enabled on device or not.
verifyBluetoothDisabled Mobile


---

To verify if Bluetooth is disabled on device.
Example :
verifyBluetoothDisabled
Verifies if Bluetooth is disabled on device or not.
verifyConnectedDeviceCount Mobile


---

To verify the count of total Bluetooth devices connected.
Param 1 : Expected countExample :
verifyConnectedDeviceCount : <Count : 5>
Verifies that the count of the total Bluetooth devices connected is 5.
verifyChecked Web, Mobile


---

To verify if checkbox (mentioned in objectName) is checked.
Param 1 (Optional) : Timeout (in seconds)Example :
verifyChecked : <Object : bqCheckbox> <Timeout : 30>
Verifies if checkbox bqCheckbox is checked or not.
verifyDecimal Web, Mobile


---

To verify the value (mentioned in Parameter) is decimal.

> [!NOTE] If test object (mentioned in bqObject) is provided, the value of object is verified.
Param 1 : Value to verifyExample :
verifyDecimal : <Value : 12.5>
Verifies that the mentioned value 12.5 is a decimal value.
verifyDecimal : <Object : bqObject> <Value : 12.5>
Verifies that the mentioned value 12.5 of bqObject is a decimal value.
verifyElementEnabled Web, Mobile


---

To verify if the object (mentioned in objectName) is enabled.
Param 1 (Optional) : Timeout (in seconds)Example :
verifyEnabled : <Object : bqObject> <Timeout : 30>
Verifies if object bqObject is enabled or not.
verifyElementDisabled Web, Mobile


---

To verify if the object (mentioned in objectName) is disabled.
Param 1 (Timeout) : Timeout (in seconds)Example :
verifyDisabled : <Object : bqObject> <Timeout : 30>
Verifies if object bqObject is disabled or not.
verifyElementVisible Web, Mobile


---

To verify if object (mentioned in objectName) is visible on the screen.
Param 1 (Optional) : TimeoutExample :
verifyElementVisible : <Object : bqObject> <Timeout : 30>
Verifies object bqObject is displayed on the screen.
verifyElementNotVisible Web, Mobile


---

To verify if object (mentioned in objectName) is not visible on the screen.
Param 1 (Optional) : TimeoutExample :
verifyElementNotVisible : <Object : bqObject> <Timeout : 30>
Verifies object bqObject is not displayed on the screen.
verifyElementValue Web, Mobile


---

To verify the element (mentioned in ObjectName) has value (mentioned in Parameter 1).
Param 1 : Element value to be verified Param 2 (Optional) : TimeoutExample :
verifyElementValue : <Object : bqTextbox> <Value : bqurious> <Timeout : 30>
Verifies if element bqTextbox has value bqurious.
verifyEqual Web, Mobile


---

To verify that the specified values in Parameter 1 and Parameter 2 are equal.
Param 1 : Value1 to compare Param 2 : Value2 to compareExample :
verifyEqual : <Left Value to Compare : Bqurious> <Right Value to Compare : Bqurious>
Verifies the left value Bqurious & right value Bqurious are equal.
verifyEmpty Web, Mobile


---

To verify that the element value (mentioned in object) or value (mentioned in Parameter 1) is empty.
Param 1 : Value to be verifiedExample :
verifyEmpty : <Object : bqObject> <Value : >
Verifies that object’s value is empty.
verifyElementAttributeValueContainsWeb

---

To verify element (mentioned in Object Name) has attribute (mentioned in Parameter 1) with value (mentioned in Parameter 2).
Param 1 : Name of the attribute Param 2 : Value to the attributeExample :
verifyElementAttributeValueContains : <Object : bqObject> <Attribute Name : bqClass> <Attribute Value : bqBold>
Verifies bqObject has attribute bqClass with value bqBold.
verifyElementCssContains Web


---

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 Param 2 : Value of the css propertyExample :
verifyElemntCssContains : <Object : bqObject> <Css property : height> <Property Value : 170>
Verifies bqObject has property height with value 170.
verifyFolderExists Web, Mobile


---

To verify if folder (mentioned in Parameter 1) exists in file system at location (mentioned in Parameter 2).
Param 1 : Name of the folder Param 2 : Location of the folderExample :
verifyFolderExists : <Folder Name : bqFolder> <Location : d:/bqLocation>
Verifies if bqFolder exists in local file system at location d:/bqLocation.
verifyFileExists Web, Mobile


---

To verify if file (mentioned in Parameter 1) exists in file system at location (mentioned in Parameter 2).
Param 1 : Name of the file Param 2 : Location of the fileExample :
verifyFileExists : <File Name : bqfile.txt> <Location : d:/bqLocation>
Verifies if bqfile.txt exists in local file system at location d:/bqLocation.
verifyItemCountInRadioGroup Web, Mobile


---

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 Param 2 (Optional) : TimeoutExample :
verifyItemCountInRadioGroup : <Object : bqRadioGroup> <Expected Radio Buttons Count : 4> <Timeout : 30>
Verifies that the count of radio buttons, displayed under radio group object bqRadioGroup, is 4.
verifyInteger Web, Mobile


---

To verify the value (mentioned in Parameter) is an integer.

> [!NOTE] If test object (mentioned in bqObject) is provided, the value of object is verified. Precedence is on the object value.
Param 1 : Value to verifyExample :
verifyInteger : <Value : 12>
Verifies that the mentioned value 12 is an integer.
verifyDecimal : <Object : bqObject> <Value : 12>
Verifies that the mentioned value 12 of bqObject is an integer.
verifyNotChecked Web, Mobile


---

To verify if checkbox is not checked.
Param 1 (Optional) : Timeout (in seconds)Example :
verifyNotChecked : <Object : bqCheckbox> <Timeout : 30>
Verifies if checkbox bqCheckbox is un-checked or not.
verifyNotSelectedItemInSpinner Mobile


---

To verify that the specified item (mentioned in Parameter 1) is not selected in spinner object (mentioned in objectName).
Param 1 : Expected spinner item Param 2 (Optional) : TimeoutExample :
verifyNotSelectedItemInSpinner : <Object : bqSpinner> <Expected Spinner Item : Option1> <Timeout : 30>
Verifies Option1 is not selected in object bqSpinner
verifyNotEmpty Web, Mobile


---

To verify that the element value (mentioned in object) or value (mentioned in Parameter 1) is not empty.
Param 1 : Value to be verifiedExample :
verifyNotEmpty : <Object : bqObject> <Value : >
Verifies that object’s value is not empty.
verifyOptionCountInList Web, Mobile


---

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 Param 2 (Optional) : TimeoutExample :
verifyOptionCountInList : <Object : bqSelectbox> <Expected List Item Count : 2> <Timeout : 30>
Verifies that the option count in list is 2, in object bqSelectbox.
verifyRadioSelected Web, Mobile


---

To verify if radio-button is selected.
Param 1 (Optional) : Timeout (in seconds)Example :
verifyRadioSelected : <Object : bqRadiobutton> <Timeout : 30>
Verifies if radio button bqRadiobutton is checked or not.
verifyRadioNotSelected Web, Mobile


---

To verify if radio-button is not selected.
Param 1 (Optional) : Timeout (in seconds)Example :
verifyRadioNotSelected : <Object : bqRadiobutton> <Timeout : 30>
Verifies if radio button bqRadiobutton is un-checked or not.
verifyRequest Web, Mobile


---

To verify the data present in request params.
Param 1 : URL to verify Param 2 : Type of the request param Param 3 : Params to be verifiedExample :
verifyRequest : <Request URL : bqurious> <Request Param Type : Header> <Params To Verify : &#123;"Host":"www.bqurious.com","User":"userName" }>
Verifies if {"Host":"www.bqurious.com","User":"userName"} is present in request Header in URL bqurious.
verifyRadioGroupOptions Web, Mobile


---

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 Param 2 (Optional) : TimeoutExample :
verifyRadioGroupOptions : <Object : bqRadioGroup> <Expected Comma Separated Radio Group Options : Option1, Option2, Option3> <Timeout : 30>
Verifies Option1, Option2 & Option3 are displayed as radio buttons under radio group bqRadioGroup.
verifySpinnerItemsExist Mobile


---

To verify all the options (mentioned in Parameter 1) available in spinner object (mentioned in objectName).
Param 1 : Comma separated values to verify Param 2 (Optional) : TimeoutExample :
verifySpinnerItemsExist : <Object : bqSpinner> <Comma Separated Spinner Items : Option1, Option2> <Timeout : 30>
Verifies if Option1 and Option2 are displayed as option list in object bqSpinner.
verifySpinnerItemsDoNotExist Mobile


---

To verify the options (mentioned in Parameter 1) are not available in spinner object (mentioned in objectName).
Param 1 : Comma separated values to verify Param 2 (Optional) : TimeoutExample :
verifySpinnerItemsDoNotExist : <Object : bqSpinner> <Comma Separated Spinner Items : Option1, Option2> <Timeout : 30>
Verifies if Option1 and Option2 are not displayed as option list in object bqSpinner.
verifySelectedItemInSpinner Mobile


---

To verify that the specified item (mentioned in Parameter 1) is selected in spinner object (mentioned in objectName).
Param 1 : Expected spinner item Param 2 (Optional) : TimeoutExample :
verifySelectedItemInSpinner : <Object : bqSpinner> <Expected Spinner Item : Option1> <Timeout : 30>
Verifies Option1 is selected in object bqSpinner
verifyTextCount Web, Mobile


---

To verify if text (mentioned in Parameter 1) is displayed n number of times.
Param 1 : Text to verify Param 2 : Text count to verifyExample :
verifyTextCount : <Expected Text : Automate> <Expected Count : 5>
Verifies if text Automate is displayed 5 times on the screen
verifyTabExists Mobile


---

To verify if tab (mentioned in ObjectName) with tab name (mentioned in Parameter 1) exists.
Param 1 : Name of the tab Param 2 (Optional) : TimeoutExample :
verifyTabExists : <Object : AssetTabStrip> <Tab Name : Allocation> <Timeeout : 30>
Verifies that tab AssetTabStrip with tab name Allocation exists.
verifyTabDoesNotExist Mobile


---

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 Param 2 (Optional) : TimeoutExample :
verifyTabDoesNotExist : <Object : AssetTabStrip> <Tab Name/Index : Allocation> <Timeeout : 30>
Verifies that tab AssetTabStrip with tab name Allocation does not exist.
verifyTabNotSelected Mobile


---

To verify that tab name (mentioned in Parameter 1) is not selected in TabStrip (mentioned in Object Name).
Param 1 : Name of the tab Param 2 (Optional) : TimeoutExample :
verifyTabNotSelected : <Object : AssetTabstrip> <Tab Name : Allocation> <Timeout : 30>
Verifies Allocation tab is not selected in Tab Strip AssetTabStrip
verifyTabSelected Mobile


---

To verify that tab name (mentioned in Parameter 1) is selected in TabStrip (mentioned in Object Name).
Param 1 : Name of the tab Param 2 (Optional) : TimeoutExample :
verifyTabSelected : <Object : AssetTabstrip> <Tab Name : Allocation> <Timeout : 30>
Verifies Allocation tab is selected in Tab Strip AssetTabStrip
verifyToggleButtonState Mobile


---

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 Param 2 (Optional) : TimeoutExample :
verifyToggleButtonState : <Object : bqToggleButton> <Expected Toggle State : TRUE> <Timeout : 30>
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 Mobile


---

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 Param 2 (Optional) : TimeoutExample :
verifyTabsCount : <Object : AssetTabStrip> <Total Tabs : 5> <Timeout : 30>
Verifies AssetTabStrip contains 5 tabs in total.
verifyTextExistsOnDevice Mobile


---

To verify the specified text (mentioned in Parameter 1) exists on page.

> [!NOTE] If object (mentioned in ObjectName) is provided, the text will be searched in the object only.
Param 1 : Text to verify Param 2 (Optional) : TimeoutExample :
verifyTextExistsOnDevice : <Text to Verify : bqurious> <Timeout : 30>
Verifies text bqurious exists on page.
verifyTextExistsOnDevice : <Object : bqObject> <Text to Verify : bqurious> <Timeout : 30>
Verifies text bqurious exists in the mentioned object bqObject.
verifyTextDoesNotExistOnDevice Mobile


---

To verify the specified text (mentioned in Parameter 1) does not exist on page.

> [!NOTE] If object (mentioned in ObjectName) is provided, the text will be searched in the object only.
Param 1 : Text to verify Param 2 (Optional) : TimeoutExample :
verifyTextDoesNotExistOnDevice : <Text to Verify : bqurious> <Timeout : 30>
Verifies text bqurious does not exist on page.
verifyTextDoesNotExistOnDevice : <Object : bqObject> <Text to Verify : bqurious> <Timeout : 30>
Verifies text bqurious does not exist in the mentioned object bqObject.
verifyValueInExcelCell Web, Mobile


---

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 Param 2 : Column name / Index of the value to be verified Param 3 : Row index of the value to be verifiedExample :
verifyValueInExcelCell : <Value : bqProduct> <Column Name / Index : Product Name> <Row Index : 7>
Verifies that the value at column Product Name, row 7 is bqProduct.
visualDiff Web, Mobile


---

To verify the actual screen with the existing screen.
Example :
visualDiff : <Object : bqElement01>
Verifies the screen that has element bqElement01 is similar to the screen already captured.