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

Action

Parameters

Example Usage

copyAllValuesFromList

Web, Mobile


To store all the options displayed in dropdown/multi-select object (mentioned in objectName).

Param 1 : Variable name to copy the value

Example :

copyAllValuesFromList : <Object : bqSelectbox> <In Variable : bqVariable>

Copies all the options available in object bqSelectbox to variable bqVariable.

copyCheckBoxStatus

Web, Mobile


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 :

copyCheckBoxStatus : <Object : bqCheckbox> <In Variable : bqVariable>

Stores the status of checkbox bqCheckbox into variable bqVariable.

It copies value true (for checked) & false (for unchecked) in variable bqVariable.

copyCurrentURL

Web


To copy the current URL of the Page in a variable.

Param 1 : Variable name to copy the value

Example :

copyCurrentURL : <In Variable : bqVariable>

Copies URL of the current page into variable bqVariable

copyDecimalValueTo

Web, Mobile


To store static value to a variable as Decimal for future use.

Param 1 : String to store the Decimal Number from
Param 2 : Variable name to copy the value
Param 3 : Left Boundary of the value to be copied
Param 4 : Right Boundary of the value to be copied

Example :

copyDecimalValueTo : <Decimal Number to Store : Bqurious is 8 years old company> <In Variable : bqVariable> <Left Boundary : Bqurious is an > <Right Boundary : years old company>

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

Web, Mobile


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
Param 2 : Left Boundary of the value to be copied
Param 3 : Right Boundary of the value to be copied

Example :

copyElementValueAsString : <In Variable : bqVariable> <Left Boundary : Your code is> <Right Boundary : .>

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

Web, Mobile


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
Param 2 : Left Boundary of the value to be copied
Param 3 : Right Boundary of the value to be copied

Example :

copyElementValueAsInteger : <In Variable : bqVariable> <Left Boundary : Your code is> <Right Boundary : .>

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

Web, Mobile


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
Param 2 : Left Boundary of the value to be copied
Param 3 : Right Boundary of the value to be copied

Example :

copyElementValueAsDecimal : <In Variable : bqVariable> <Left Boundary : Your code is> <Right Boundary : .>

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

Web


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
Param 2 : Variable name to copy the value
Param 3 : Left Boundary of the value to be stored
Param 4 : Right Boundary of the value to be stored

Example :

copyElementAttributeValue : <Object : bqObject> <Attribute : ID> <In Variable : bqVariable> <Left Boundary : 1> <Right Boundary : 5>

Stores the dynamic value (Character starts from 1 to 5th Character) of attribute ID of bqObject in bqVariable.

copyExcelRowCount

Web, Mobile


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 :

copyExcelRowCount : <In Variable : totalRows>

Copies the total number of rows in excel file into variable totalRows

copyElementFormattedText

Web, Mobile


To copy formatted text from the element into variable (mentioned in parameter 1).

Param 1 : Variable name to copy the value

Example :

copyElementFormattedText : <In Variable : source>

Stores the formatted text of the element into variable source

copyIntegerValueTo

Web, Mobile


To store static value to a variable as Integer for future use.

Param 1 : String to store the Integer Number from
Param 2 : Variable name to copy the value
Param 3 : Left Boundary of the value to be copied
Param 4 : Right Boundary of the value to be copied

Example :

copyIntegerValueTo : <Number to Store : Bqurious is 8 years old company> <In Variable : bqVariable> <Left Boundary : Bqurious is an > <Right Boundary : years old company>

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

Web, Mobile


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 :

copyRadioButtonStatus : <Object : bqRadiobutton> <In Variable : bqVariable>

Stores the status of radio button bqRadiobutton into variable bqVariable.

copyStringValueTo

Web, Mobile


To store static value to a variable as string for future use.

Param 1 : String value to be copy
Param 2 : Variable name to copy the value
Param 3 : Left Boundary of the value to be copied
Param 4 : Right Boundary of the value to be copied

Example :

copyStringValueTo : <String to Store : Welcome to bqurious application> <In Variable : bqVariable> <Left Boundary : Welcome to> <Right Boundary : application>

Stores bqurious from string Welcome to bqurious application, using left boundary Welcome to and right boundary application in variable bqVariable as string.

copySelectedValuesFromList

Web


To store the selected value of dropdown/multi-select object (mentioned in objectName).

Param 1 : Variable name to copy the value

Example :

copySelectedValuesFromList : <Object : bqSelectbox> <In variable : bqVariable>

Stores the selected value in object bqSelectbox to variable bqVariable

copySubString

Web, Mobile


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
Param 2 : Starting index to copy sub string
Param 3 : Ending index to copy sub string
Param 4 : Variable name to copy the value

Example :

copySubString : <String : Hello, Bqurious people.> <Start Index : 8> <End Index : 16> <In Variable : bqVariable>

Stores substring starting from 8 to 16 from string Hello, Bqurious people. and store into variable bqVariable. Variable bqVariable stores substring value Bqurious.

copySelectedItemFromSpinner

Mobile


To copy the selected item of spinner object (mentioned in objectName).

Param 1 : Variable name to copy the value

Example :

copySelectedItemFromSpinner : <Object : bqSpinner> <In Variable : bqVariable>

Stores the selected item in spinner object bqSpinner to variable bqVariable.

copyTitle

Web


To store the title of the screen for future use. 

Param 1 : Variable name to copy the value

Example :

copyTitle : <In Variable : bqVariable>

Stores the title of the screen to variable bqVariable.

copyValueFromExcelCell

Web, Mobile


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
Param 2 : Name / Index of the Column
Param 3 : Index of the Row

Example :

copyValueFromExcelCell : <In Variable : bqVariable> <Column Name / Index : Product Name> <Row Index : 7>

Copies the column Product Name value from row 7 into variable bqVariable.

findAndStoreElement

Web, Mobile


To store the element (mentioned in Object Name) in variable (mentioned in Parameter 1).

Param 1 : Variable name to copy the value

Example :

findAndStoreElement : <Object : bqObject> <In Variable : bqVariable>

Stores element object bqObject in variable bqVariable.

findAndStoreValue

Web, Mobile


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
Param 2 : Key to find
Param 3 : Source type format
Param 4 : Variable name to copy the value

Example :

findAndStoreValue : <Source : API Response> <Source Type : JSON> <Key to Find : token> <In Variable : tokenValue>

Stores the value of token searched in source API Response in JSON format in variable tokenValue.

visualTextDiff

Web, Mobile


To show visual differences between formatted text in LHS and RHS. 

Param 1 : Text LHS
Param 2 : Text RHS

Example :

visualTextDiff : <Text LHS : lhs> <Text RHS : rhs>

Shows visual differences between text mentioned in LHS and RHS.

Â