Create a test suite with child objects
POST https://{{host}}/test-management/v3/functional/test-suites/with-child-objects
Creates a test suite with test cases and variables. You can use the Generate a test suite with child objects operation to create a default test suite for a property version and then import it with this operation. The operation responds with a partial-success 207 response. Once you create the test suite, you can continue adding more objects to it with the Add test cases to a test suite and Add variables to a test suite operations.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
accountSwitchKey | string | (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
{"configs"=>{"propertyManager"=>{"propertyId"=>1234, "propertyVersion"=>4}}, "isLocked"=>false, "isStateful"=>false, "testCases"=>[{"clientProfile"=>{"client"=>"CHROME", "ipVersion"=>"IPV4"}, "condition"=>{"conditionExpression"=>"Response header \"Content-Type\" has a value that ends with \"{{contentTypeValue}}\""}, "testRequest"=>{"requestHeaders"=>[{"headerAction"=>"ADD", "headerName"=>"Accept", "headerValue"=>"v1"}], "requestMethod"=>"GET", "testRequestUrl"=>"https://{{hostname}}/?abc=1234555"}}, {"clientProfile"=>{"client"=>"CHROME", "ipVersion"=>"IPV4"}, "condition"=>{"conditionExpression"=>"Response code is one of \"{{successCodes.responseCodes}}\""}, "testRequest"=>{"requestMethod"=>"GET", "testRequestUrl"=>"https://{{sampleVarGroup.urls}}/index"}}, {"clientProfile"=>{"client"=>"CHROME", "ipVersion"=>"IPV4"}, "condition"=>{"conditionExpression"=>"Response code is one of \"{{successCodes.responseCodes}}\""}, "testRequest"=>{"requestMethod"=>"GET", "testRequestUrl"=>"https://{{mismatchLengthGroup.urls}}/index"}}], "testSuiteDescription"=>"This test suite validates caching of images used in www.user8.example.com", "testSuiteName"=>"www.user8.example.com images test suite", "variables"=>[{"variableName"=>"hostname", "variableValue"=>"www.user8.example.com"}, {"variableName"=>"contentTypeValue", "variableValue"=>"json"}, {"variableGroupValue"=>[{"columnHeader"=>"urls", "columnValues"=>["abc.com", "def.org", "abc.com"]}], "variableName"=>"sampleVarGroup"}, {"variableGroupValue"=>[{"columnHeader"=>"statusCodes", "columnValues"=>["200", "200"]}], "variableName"=>"successCode"}, {"variableGroupValue"=>[{"columnHeader"=>"urls", "columnValues"=>["test.com"]}], "variableName"=>"mismatchLengthGroup"}]}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
Accept | string |