Logo
Akamai APIs API Documentation

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.

 

Body PARAM

Key Datatype Required Description 
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status





Curl
curl -X POST 'https://undefined/test-management/v3/functional/test-suites/with-child-objects?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"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 \"undefined\""},"testRequest":{"requestHeaders":[{"headerAction":"ADD","headerName":"Accept","headerValue":"v1"}],"requestMethod":"GET","testRequestUrl":"https://undefined/?abc=1234555"}},{"clientProfile":{"client":"CHROME","ipVersion":"IPV4"},"condition":{"conditionExpression":"Response code is one of \"undefined\""},"testRequest":{"requestMethod":"GET","testRequestUrl":"https://undefined/index"}},{"clientProfile":{"client":"CHROME","ipVersion":"IPV4"},"condition":{"conditionExpression":"Response code is one of \"undefined\""},"testRequest":{"requestMethod":"GET","testRequestUrl":"https://undefined/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"}]}'

ENDPOINTS