...
ComparetwoInt “123“ “ 234”
DragAndDropToObject
This action drags the specified object and drops it in the position of another specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
dragLocator | Enter the locator value of an element to be dragged. | Yes | String |
dragLocatorType | Enter the locator type of the element to be dragged. | Yes | String |
dropToLocator | Enter the locator of an element whose location (i.e., whose centre-most pixel) will be the point where dragLocator is dropped. | Yes | String |
dropToLocatorType | Enter the locator type of the element where the element will be dragged. | Yes | String |
Example:
DragAndDropToObject "//div/img[@alt='abx']" "xpath" "abc" "id"
OpenURL
This action opens the specified URL in the browser selected in the associated execution profile.
...
Example:
AcceptDialogAndStoreMessage "AlertMessage"
...
ValidateSyntaxInFile
This action validates the data given in the specified JSON or XML file.
...
Parameter Name | Parameter Description | Mandatory | Data Types |
---|---|---|---|
FilePath | Enter the absolute path to the JSON/XML file on which you want to validate the data. | Yes | String |
Example:
ValidateStringSyntaxinFile ValidateSyntaxInFile "C:\Users\Qualitia\Cust_Details.json"
End of the execution, if the data from the specified file is valid, action will pass, else action will fail.
UpdateValueFromJson
This action reads a JSON file and updates the JSON key value as per the specified parameters and data type.
Input Parameters:
...
Parameter Name
...
Parameter Description
...
Mandatory
...
Data Type
...
FilePath
...
Enter the absolute file path to the JSON file where you want to add the node.
...
Yes
...
String
...
JSONPath
...
Enter the JSON path where you want to add the new node.
Use $ if you want to add the node at root level.
...
Yes
...
String
...
JSONValue
...
Enter the value to be added for the JSONValue key.
...
Yes
...
String
...
JSONValueType
...
Specify the data type of the value being added.
Value type can be Boolean or Numeric.
Keep the value type blank if the data type is JSONObject, JSONArray, or String.
...
No
...
String
Example:
Updating single value:
.UpdateValueInJson “C:\Users\Qualitia\Cust_Details.json” “$.address.postalCode” “6300194” “Numeric“
This action will update the value of the attribute postalCode of type Numeric to the value given in the parameter (6300194).
Updating value from the array:
.UpdateValueInJson “C:\Users\Qualitia\Cust_Details.json” “$[0].address.postalCode” “6300194” “ Numeric“
This action will update the value of the attribute postalCode of address at 0th index, type Numeric to the value given in the parameter (6300194).
Updating value of type String:
“C:\Users\Qualitia\Cust_Details.json” “$.address” “StateCode” "["CA" , "California"]" ""
...
WriteToBuildProperty
This action writes a user defined property along with its value to qer.properties file. This customized information can be used in email notifications sent by Jenkins provided all the required email specific settings are done there in Jenkins.
...