Document toolboxDocument toolbox

Header

(8.3.X) Web Services Actions (Beta)


Important Notice

Actions listed on this page are not available for regular usage. These actions are shared with a limited audience for testing and feedback. In case you find these actions suitable for your use cases, you may contact Qualitia Support for integrating these actions.

REST.ExecuteAPIServiceAndDownloadWithRawData

This action executes the specified REST request and downloads the file with the raw data.  

You can store the information related to HTTP Status, HTTP RESPONSE TIME, and Header into the variable and use these values to develop test case flow after executing this action.   

Input Parameters:

Parameter Name

Parameter Description

Mandatory

Data Type

URL

Enter the complete REST URL.

Yes

String

RequestMethodEnter the method you want to execute on the API url mentioned above.YesString
RequestDataFile

Enter the absolute path to the file which has REST request related information in the JSON format. In this file, you can enter the details which you want to Get, Push and so forth.

NoString
ResultJsonFileEnter the absolute path to the file in which you want to store the REST result.NoString
UserCredentials

Enter the username and password to authenticate while executing the the REST request. Qualitia supports Basic authentication type only. Use the semicolon (;) sign to separate username and password.

NoString
DownloadLocationEnter the folder location where you want to download the requested data in raw format.NoString
RequestHeadersEnter the request headers you want to pass when executing the REST request. Multiple headers should be separated by semicolon (;).NoString
waitTimeEnter how much time you want to wait (in seconds) for executing the request. NoString
Sslverification

You can use this parameter to enable or disable the SSL certificate verification while executing this service.

  • Use True to use SSL certificate. (Default)
  • Use False to ignore SSL certificate.
NoString

Example:

REST.ExecuteAPIServiceAndDownloadWithRawData           “https://<HOST_NAME>:<PORT_NUMBER>/<REST_URL>”      "POST”            “C:\Users\Qualitia\Request-Cust_List.json”        “C:\Users\Qualitia\Response-Cust_List.json”         "john.doe@gmail.com;john.doe@123”     "C:\Users\Qualitia"       "60"      "True"

REST.ExecuteAPIServiceWithRawData

This action executes the specified REST request with the help of raw data. This raw data either can be given manually or taken from the variable.

You can also store the information related to HTTP Status, HTTP REQUEST TIME, and Header into the variable and use these values to develop test case flow after executing this action.   

Input Parameters:

Parameter Name

Parameter Description

Mandatory

Data Type

URL

Enter the complete REST URL.

Yes

String

RequestMethodEnter the method you want to execute on the API url mentioned above.YesString
RequestDataFile

Enter the absolute path to the file which has REST request related information in the JSON format. In this file, you can enter the details which you want to Get, Push and so forth.

NoString
ResultJsonFileEnter the absolute path to the file in which you want to store the REST result.NoString
UserCredentials

Enter the username and password to authenticate while executing the the REST request. Qualitia supports Basic authentication type only. Use the semicolon (;) sign to separate username and password.

NoString
RequestHeadersEnter the request headers you want to pass when executing the REST request. Multiple headers should be separated by semicolon (;).NoString
waitTimeEnter how much time you want to wait (in seconds) for executing the request. NoString
Sslverification

You can use this parameter to enable or disable the SSL certificate verification while executing this service.

  • Use True to use SSL certificate. (Default)
  • Use False to ignore SSL certificate.
NoString

Example:

REST.ExecuteAPIServiceWithRawData           “https://<HOST_NAME>:<PORT_NUMBER>/<REST_URL>”      "POST”            “C:\Users\Qualitia\Request-Cust_List.json”        “C:\Users\Qualitia\Response-Cust_List.json”         "john.doe@gmail.com;john.doe@123”    "60"      "True"

REST.ExecuteAPIServiceWithFormData

This action executes the specified REST request with the help of form-data. The form-data can contain one or multiple sets of key-value pairs which will eventually help in executing the specified request method.  

You can also store the information related to HTTP Status, HTTP REQUEST TIME, and Header into the variable and use these values to develop test case flow after executing this action.   

Input Parameters:

Parameter Name

Parameter Description

Mandatory

Data Type

URL

Enter the complete REST URL.

Yes

String

RequestMethodEnter the method you want to execute on the API url mentioned above.YesString
RequestDataFile

Enter the key value pairs of the form data to be used while executing the service. Multiple pairs should be separated by comma.

If you want to use file to provide form data, add all the form data in some file and provide absolute path to that file as a parameter.

NoString
ResultJsonFileEnter the absolute path to the file in which you want to store the REST result.NoString
UserCredentials

Enter the username and password to authenticate while executing the the REST request. Qualitia supports Basic authentication type only. Use the semicolon (;) sign to separate username and password.

NoString
RequestHeadersEnter the request headers you want to pass when executing the REST request. Multiple headers should be separated by semicolon (;).NoString
waitTimeEnter how much time you want to wait (in seconds) for executing the request. NoString
Sslverification

You can use this parameter to enable or disable the SSL certificate verification while executing this service.

  • Use True to use SSL certificate. (Default)
  • Use False to ignore SSL certificate.
NoString

Example:

REST.ExecuteAPIServiceWithFormData           “https://<HOST_NAME>:<PORT_NUMBER>/<REST_URL>”      "POST”            “"File"="C:\Users\Qualitia\Request-Cust_List.json"”        “C:\Users\Qualitia\Response-Cust_List.json”         "john.doe@gmail.com;john.doe@123”    "60"      "True"

File.StoreTextByLineNumber

This action stores the data from the specified line number from the flat file under the key. The key value then can be retrieved using the key name.

Input Parameters:

Parameter NameParameter DescriptionMandatoryData Type
FilePathEnter the absolute path to the file from which you want to get the data.YesString
lineNumberEnter the line number from which you want to get and store the data.YesInteger
keyEnter the key under which you want to store the data.  YesString

Example:

File.StoreTextByLineNumber                “C:\Users\Qualitia\Request-Cust_List.txt”              "8"                     "Cust_Name-1"

Footer