@Web Service List
Last updated
Last updated
Description: This keyword or action instructs the Avo Assure to set the end-point URL for the web services.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
setEndPointURL
<EndPoint URL>
{optional}
Text
Static Values
Dynamic Variables
Find the snippet of the keyword below:
In the above example after the test case debug, Avo Assure sets the value provided in the input field as EndPoint URL of the Web Services Request.
Description: This keyword or action instructs Avo Assure to set the method for the web service execution. This step is part of the web service request process.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
setMethods
<Method Name>
{optional}
Text
Static Values
Dynamic Variables
Note: “setMethods” sets one of the below methods to the immediately above End point URL. The methods supported are:
GET
POST
HEAD
PUT
DELETE
All method types should be in uppercase.
Find the snippet of the keyword below:
In the above example after the test case debug, Avo Assure sets the value provided in input as the method of the Web Service Request.
Description: This keyword or action instructs Avo Assure to select the operation mentioned for the web service execution. This step is part of the web service request process.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
setOperations
<Operation Name>
{optional}
Text
Static Values
Dynamic Variables
Find the snippet of the keyword below:
In the above example after the test case debug, Avo Assure sets the value provided in the input field as the operation of the Web Service Request.
Description: This keyword or action instructs Avo Assure to set the header for the web service. This step is part of the web service request process.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
setHeader
<<Request_header>> OR <<key value pair 1>> <<key value pair 2>> … <<key value pair n>>
{optional}
Text
Static Values
Dynamic Variables
Find the snippet of the keyword below:
In the above example after the test case debug, Avo Assure sets the value provided in the input field as the Header of the Web Service Request.
Description: This keyword or action instructs Avo Assure to populate the input field with the value of the header present in the template.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
setHeaderTemplate
<Request Header>
{optional}
Text
Static Values
Dynamic Variables
Find the snippet of the keyword below:
In the above example after the test case debug, Avo Assure sets the value of the header from the template stored.
Description: This keyword or action instructs Avo Assure to set the body for the web service. This step is part of the web service request process.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
setWholeBody
<Entire Body Content>
{optional}
Text
Static Values
Dynamic Variables
Note: The prerequisite for using the keyword is that the header needs to be mandatorily set in previous steps.
Find the snippet of the keyword below:
In the above example after the test case debug, Avo Assure sets the value provided in the input field as the body of the Web Service Request.
Description: This keyword or action instructs Avo Assure to execute the request based on the input present in the Request steps.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
executeRequest
NA
NA
NA
Find the snippet of the keyword below:
For the above keyword, after the test case debug, Avo Assure executes the Web Service Request.
Description: This keyword or action instructs Avo Assure to fetch the header of the response after the request is executed and save the result in the output variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
getHeader
<key> (optional)
{Header}
Text
Static Values
Dynamic Variables
Note: In case the input column is left without entering any value then the entire header is saved in the variable present in the output. If a key is provided as an input then the output only stores the value of the input key.
Find the snippet of the keyword below:
In the above example, after the test case debug, Avo Assure fetches the header value from the response and stores the result in the {Header} variable. If the output variable is provided for execution status, “True”/ “False” will be stored in it.
Description: This keyword or action instructs Avo Assure to fetch the body of the response after the request is executed and save the result in the output variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
getBody
<Start_Tag; <End_Tag>
{Body}
Text
Static Values
Dynamic Variables
Note: In case the input column is left without entering any value then the entire body is saved in the variable present in the output. If the start tag and end tag are provided then the output only stores the string between the tags provided as input.
Find the snippet of the keyword below:
In the above example, after the test case debug, Avo Assure fetches the body value from the response and stores the result in {Body} variable. If the output variable is provided for execution status, “True”/ “False” will be stored in it.
Description: This keyword or action instructs Avo Assure to fetch the server certificate and save the file in the specified folder.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
getServerCertificate
<URL>; <file path>
{optional}
Text
Static Values
Dynamic Variables
Find the snippet of the keyword below:
In the above example, after the test case debug, Avo Assure will fetch the server certificate from the specified site and save it in the path provided in the input field. If the output variable is provided for execution status, “True”/ “False” will be stored in it.
Description: This keyword or action instructs Avo Assure to add a valid certificate file present in the folder to the target URL. Currently, JKS, PEM, PFX, and PKCS12 file types are supported.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
addClientCertificate
<client_path>; <clientKey_path>{optional};<clientKey_Pwd> [AES Encrypted] {optional}; <server_path>{optional}
{optional}
Text
Static Values
Dynamic Variables
Find the snippet of the keyword below:
In the above example after the test case debug, Avo Assure will add the client certificate which is provided in the path along with the client key password which is provided in the encrypted format. If the output variable is provided for execution status, “True”/ ”False” will be stored in it.
Description: This keyword or action instructs Avo Assure to set the basic level of authentication of client certificate using Username and Password [AES Encrypted].
Keyword
Input Syntax
Output Syntax
Supported Input Formats
setBasicAuth
Username; Password [AES Encrypted]
{optional}
Text
Static Values
Dynamic Variables
Find the snippet of the keyword below:
In the above example after the test case debug, Avo Assure sets the value provided in the input field as the Basic Authentication of the Web Service Request.
Description: This keyword or action instructs Avo Assure to set the parameters for the web service. This step is part of the web service request process.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
setParam
<Parameter Content>
{optional}
Text
Static Values
Dynamic Variables
Note: The prerequisite for using the keyword is that the header needs to be mandatorily set in previous steps.
Find the snippet of the keyword below:
In the above example after the test case debug, Avo Assure sets the value provided in the input field as the parameter of the Web Service Request.
Description: This keyword or action instructs Avo Assure to sets a proxy for a session for the web service.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
setProxies
<URL>; <Username>; <Password (AES Encrypted)>
{optional}
Text
Static Values
Dynamic Variables
Find the snippet of the keyword below:
In the above example after the test case debug, Avo Assure sets a proxy for “DemoUser” with the Password in “127.0.0.1:8080” Web Service.
Description: To set the oauth2.0 authorization, use the access token URL, Client Id, Client Secret, Scope, and Grant_type as client credentials.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
setOAuth2.0
<URL>;<Client Id>; <Client Secret>; <Scope>; <Grant_type>
Dynamic Variable
Text
Static values
Dynamic Variables
How to use setOAuth2.0 Keyword:
The user has to provide the Access Token URL, Client Id, Client Secret, Scope, and grant type as Client_credentials.
The user has to provide all the inputs in the Input column.
If the user executes the keyword, the token will be generated and stored in the output variable.
Once the token is generated, the user can use the token in the request header and send the request to fetch the response body or response header.
Find the snippet of the keyword below: