A new version of Qualitia Automation Studio for Web and Mobile 7.2.x is now available. We highly recommend you upgrade. Find more details here.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

XML.SetNodeValue

This action reads the specified XML file and updates the inner value of the specified node.

Input Parameters:

Parameter Name

Parameter Description

Mandatory

Data Type

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.

YesString
value

Enter the value which you want to add in the specified node.

YesString

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:

Parameter Name

Parameter Description

Mandatory

Data Type

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.

YesString

strKey

Enter the key name under which you want to store the node value (inner text from the node).

YesString

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:

Parameter Name

Parameter Description

Mandatory

Data Type

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.

YesString
strKey

Enter the key name under which you want to store the attribute value.

YesString

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:

Parameter Name

Parameter Description

Mandatory

Data Type

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.

YesString
value

Enter the value which you want to set against the specified attribute.

YesString

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:

Parameter Name

Parameter Description

Mandatory

Data Type

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.

YesString

methodName

Enter method you want to execute on the specified URL.

Yes

String

UserNameEnter the username if the authentication type selected is Basic.NoString
PasswordEnter the password if the authentication type selected is Basic.NoString
requestXmlPathEnter the absolute path to the file which has REST request related information in the JSON format.NoString
resultXmlPathEnter the absolute path to the file in which you want to store the REST response.NoString

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:

Parameter Name

Parameter Description

Mandatory

Data Type

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.

YesString

methodName

Enter method you want to execute on the specified URL.

Yes

String

UserNameEnter the username if the authentication type selected is Basic.NoString
PasswordEnter the password if the authentication type selected is Basic.NoString
requestXmlPathEnter the absolute path to the file which has REST request related information in the JSON format.NoString
resultXmlPath

Enter the absolute path to the XML file where the results will be stored.

YesString

Example:

SOAP.ExecuteServiceRequest      “http://www.dnonline.com/calculator.asmx”      “Basic”      “POST”      “Qualitia”     “C:\Users\localadmin\Desktop\SOAPRequest.xml”      “C:\Users\localadmin\Desktop\SOAPResponse.xml”

  • No labels