Store
The store keywords store the values in a variable & the stored variable can be used further in the test script.
Suppose you wish to copy a string value in a variable for further use.
Structure :
launchApp <parameter>
<steps to execute>
copyStringValueTo <parameter>
<steps to execute>
Â
All keywords under this list hard fail in negative scenarios.
Â
Action | Parameters | Example Usage |
---|---|---|
copyAllValuesFromList
To store all the options displayed in dropdown/multi-select object (mentioned in objectName). | Param 1 : Variable name to copy the value | Example :
Copies all the options available in object bqSelectbox to variable bqVariable. |
copyCheckBoxStatus
To store the current status of the checkbox(checked or unchecked) into a variable for future use. | Param 1 : Variable name to store value | Example :
Stores the status of checkbox bqCheckbox into variable bqVariable. It copies value true (for checked) & false (for unchecked) in variable bqVariable. |
copyCurrentURL
To copy the current URL of the Page in a variable. | Param 1 : Variable name to copy the value | Example :
Copies URL of the current page into variable bqVariable |
copyDecimalValueTo
To store static value to a variable as Decimal for future use. | Param 1 : String to store the Decimal Number from | Example :
Stores 8.0 from string Bqurious is 8 years old company, using left boundary Bqurious is an and right boundary years old company in variable bqVariable as decimal. |
copyElementValueAsString
To store the value of the object (mentioned in ObjectName) as String in a variable bqVariable, for future use. If left boundary (mentioned in Parameter 2) and right boundary (mentioned in Parameter 3) are not mentioned, the entire string will be captured. | Param 1 : Variable name to store the value | Example :
Stores object’s value as string, in variable bqVariable. Suppose the objects value is Your code is HELLO1. In order to store the value HELLO1 as String, use the left boundary as Your code is & right boundary as . |
copyElementValueAsInteger
To store the value of the object (mentioned in ObjectName) as Integer in a variable bqVariable, for future use. | Param 1 : Variable name to store the value | Example :
Stores object’s value as Integer, in variable bqVariable. Suppose the objects value is Your code is 98765. In order to store the value 98765 as Integer, use the left boundary as Your code is & right boundary as . |
copyElementValueAsDecimal
To store the value of the object (mentioned in ObjectName) as Decimal in a variable bqVariable, for future use. | Param 1 : Variable name to store the value | Example :
Stores object’s value as Integer, in variable bqVariable. Suppose the objects value is Your code is 98765. In order to store the value 98765 as Decimal, use the left boundary as Your code is & right boundary as . |
copyElementAttributeValue
To copy the dynamic attribute (mentioned in Parameter 1) in a variable with left boundary (mentioned in Parameter 3) and right boundary (mentioned in Parameter 4) of element (mentioned in Object Name). | Param 1 : Attribute | Example :
Stores the dynamic value (Character starts from 1 to 5th Character) of attribute ID of bqObject in bqVariable. |
copyExcelRowCount
To copy the total number of data rows inside the excel file into variable (variable mentioned in parameter 1). | Param 1 : Variable name to copy the value | Example :
Copies the total number of rows in excel file into variable totalRows |
copyElementFormattedText
To copy formatted text from the element into variable (mentioned in parameter 1). | Param 1 : Variable name to copy the value | Example :
Stores the formatted text of the element into variable source |
copyIntegerValueTo
To store static value to a variable as Integer for future use. | Param 1 : String to store the Integer Number from | Example :
Stores 8 from string Bqurious is 8 years old company, using left boundary Bqurious is an and right boundary years old company in variable bqVariable as integer. |
copyRadioButtonStatus
To store the current status of the radio-button (selected or unselected) into a variable for future use. | Param 1 : Variable name to store value | Example :
Stores the status of radio button bqRadiobutton into variable bqVariable. |
copyStringValueTo
To store static value to a variable as string for future use. | Param 1 : String value to be copy | Example :
Stores bqurious from string Welcome to bqurious application, using left boundary Welcome to and right boundary application in variable bqVariable as string. |
copySelectedValuesFromList
To store the selected value of dropdown/multi-select object (mentioned in objectName). | Param 1 : Variable name to copy the value | Example :
Stores the selected value in object bqSelectbox to variable bqVariable |
copySubString
To store the sub string from specified string(mentioned in Parameter 1) starts from index (mentioned in Parameter 2) and ending index (mentioned in Parameter 3) and store into variable (mentioned in Parameter 4). | Param 1 : String to store sub string from | Example :
Stores substring starting from 8 to 16 from string Hello, Bqurious people. and store into variable bqVariable. Variable bqVariable stores substring value Bqurious. |
copySelectedItemFromSpinner
To copy the selected item of spinner object (mentioned in objectName). | Param 1 : Variable name to copy the value | Example :
Stores the selected item in spinner object bqSpinner to variable bqVariable. |
copyTitle
To store the title of the screen for future use. | Param 1 : Variable name to copy the value | Example :
Stores the title of the screen to variable bqVariable. |
copyValueFromExcelCell
To copy the column (mentioned in Parameter 2) value from row (row index mentioned in Parameter 3). | Param 1 : Variable name to copy the value | Example :
Copies the column Product Name value from row 7 into variable bqVariable. |
findAndStoreElement
To store the element (mentioned in Object Name) in variable (mentioned in Parameter 1). | Param 1 : Variable name to copy the value | Example :
Stores element object bqObject in variable bqVariable. |
findAndStoreValue
To find and store key (mentioned in parameter 2) in source (mentioned in parameter 1) mentioned in format (mentioned in parameter 3) in variable (Mentioned in parameter 4). | Param 1 : Source to find | Example :
Stores the value of token searched in source API Response in JSON format in variable tokenValue. |
visualTextDiff
To show visual differences between formatted text in LHS and RHS. | Param 1 : Text LHS | Example :
Shows visual differences between text mentioned in LHS and RHS. |
Â