Add variables to a test suite

POST https://{{host}}/test-management/v3/functional/test-suites/:testSuiteId/variables

Adds new variables to a test suite. You can use variables in a test request's URL or request headers and in condition expression, as a substitute of placeholders. To learn more, see Variables. The operation responds with a partial-success 207 response.

Request Params

KeyDatatypeRequiredDescription
accountSwitchKeystring(Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Request Body

{"0"=>{"variableName"=>"hostname", "variableValue"=>"www.user8.example.com"}, "1"=>{"variableName"=>"contentTypeValue", "variableValue"=>"json"}, "2"=>{"variableGroupValue"=>[{"columnHeader"=>"urls", "columnValues"=>["abc.com", "def.org"]}], "variableName"=>"sampleVarGroup"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring