set, property, api, request, response, send, soap, rest, get, post, put, delete

Method SetProperty

API

Sets new value to the object property

Watch this video to learn how to use this method

Have a problem with playback?
SetProperty sets the new value to the API method propery. The input parameters are property name and property value. There is no output for this method. The properties we set up manually can be parametrized from the datatable for multi-iteration test suites. As example let's output value of property Service type first. It should be SOAP Then manually set this property value to REST And repeat GetProperty step to output property value once again. Let's run the script - we can see the property is SOAP at the beginning But on the second time it is REST - exactly like we set it in the SetProperty step.

Usage

Function SetProperty(
    String Name,
    String Value
)

Method

SetProperty

Name

API Method

Name

Value

Parameters

Name

Type: String

The name of the property (i.e. "Name")

Value

Type: String

The new value to set (must be a string)

Returns

No return value

Example

VBScript

Server("API Server").Method("Method").SetProperty "Name", "API Method"

JavaScript

Server("API Server").Method("Method").SetProperty("Name", "API Method");

Method

SetProperty

Name

API Method

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227