XML.SetNodeValue
This action reads the specified XML file and updates the inner value of the specified node.
Input Parameters:
XmlFilePath | Enter the absolute path to the XML file in which you want to update the value. | Yes | String |
Xpath | Enter the path to the node (XPath) whose value you want to update. | Yes | String |
value | Enter the value which you want to add in the specified node. | Yes | String |
Example:
XML.SetNodeValue “C:\Users\Qualitia\Cust_List.xml” “//DataSet[@ID='394502re33']/Step/Param[@ParamSeq='4']” “Qualitia Automation Studio”
XML.StoreNodeValue
This action reads the specified XML file and stores the inner value of the specified node under the specified key. The key value can be retrieved using the key name.
Input Parameters:
XmlFilePath | Enter the absolute path to the XML file from which you want to get and store the value. | Yes | String |
Xpath | Enter the path to the node (XPath) from which you want to read and store the inner text. | Yes | String |
strKey | Enter the key name under which you want to store the node value (inner text from the node). | Yes | String |
Example:
XML.StoreNodeValue “C:\Users\Qualitia\Cust_List.xml” “//DataSet[@ID='106cee8f60']/Step/Param[@ParamSeq='4']” “Key”
JSON.StoreJsonString
This action reads the specified JSON file, navigates to the specified JSON path, and stores the value of the specified attribute under the specified key. The key value can be retrieved using the key name.
Input Parameters:
JsonFilePath | Enter the absolute path to the JSON file from which you want to store the value. | Yes | String |
Jsonpath | Enter the path to the node (J Path) from which you want to read and store the value. | Yes | String |
strKey | Enter the key name under which you want to store the attribute value. | Yes | String |
Example:
JSON.StoreJsonString “C:\Users\Qualitia\Cust_List.json” “$.Customers.Country[0].India” “Key”
JSON.UpdateJsonString
This action reads the specified JSON file, navigates to the specified JSON path, and sets the specified value to the specified attribute.
Input Parameters:
jsonFilePath | Enter the absolute path to the JSON file in which you want to set the value. | Yes | String |
Jsonpath | Enter the path to the node (J Path) to which you want to set the value. | Yes | String |
value | Enter the value which you want to set against the specified attribute. | Yes | String |
Example:
JSON.UpdateJsonString “C:\Users\Qualitia\Cust_List.json” “$.Customers.Country[0].India” “Qualitia”
REST.ExecuteServiceRequest
This action executes the specified REST request. Qualitia gives you provision to store the response at the specified file path location in the JSON format, if required.
Input Parameters:
URL | Enter the service URL where you want to execute the request. | Yes | String |
AuthenticationType | Enter the authentication type you want to use when executing the REST request. Qualitia supports two authentication types: Basic and NoAuth. | Yes | String |
methodName | Enter method you want to execute on the specified URL. | Yes | String |
UserName | Enter the username if the authentication type selected is Basic. | No | String |
Password | Enter the password if the authentication type selected is Basic. | No | String |
requestXmlPath | Enter the absolute path to the file which has REST request related information in the JSON format. | No | String |
resultXmlPath | Enter the absolute path to the file in which you want to store the REST response. | No | String |
Example:
REST.ExecuteServiceRequest “192.122.22.34:8098/rest/ 1.0/api/qProjectMapping/project/OAT” “Basic” “POST” “john.doe@gmail.com” “john.doe@123”
“C:\Users\Qualitia\Request-Cust_List.json” “C:\Users\Qualitia\Response-Cust_List.json”
SOAP.ExecuteServiceRequest
This action executes the specified SOAP request in the specified XML file. You can also store response in the XML file, if required.
Prerequisites:
In order to execute this action, you should know how to develop request XML for SOAP operations.
Input Parameters:
URL | Enter the service URL where you want to execute the request. | Yes | String |
AuthenticationType | Enter the authentication type you want to use when executing the REST request. Qualitia supports two authentication types: Basic and NoAuth. | Yes | String |
methodName | Enter method you want to execute on the specified URL. | Yes | String |
UserName | Enter the username if the authentication type selected is Basic. | No | String |
Password | Enter the password if the authentication type selected is Basic. | No | String |
requestXmlPath | Enter the absolute path to the file which has REST request related information in the JSON format. | No | String |
resultXmlPath | Enter the absolute path to the XML file where the results will be stored. | Yes | String |
Example:
SOAP.ExecuteServiceRequest “http://www.dnonline.com/calculator.asmx” “Basic” “POST” “Qualitia” “C:\Users\localadmin\Desktop\SOAPRequest.xml” “C:\Users\localadmin\Desktop\SOAPResponse.xml”