Logo
Akamai APIs API Documentation

Generate a test suite with child objects

POST https://{{host}}/test-management/v3/functional/test-suites/auto-generate

Generates a default test suite with test cases and variables for a specific property version and a URL. Based on property settings and its behaviors and the URL, Test Center generates a default test suite object with test cases and variables. You can modify the generated test suite and add it to Test Center using the Create a test suite with child objects operation.

 

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 OK

{ "configs": { "propertyManager": { "propertyId": 2321, "propertyName": "config_user8", "propertyVersion": 79 } }, "isLocked": true, "isStateful": false, "testCases": [ { "clientProfile": { "client": "CHROME", "ipVersion": "IPV4" }, "condition": { "conditionExpression": "Log request details - Accept-Language header is logged" }, "testRequest": { "requestMethod": "GET", "testRequestUrl": "{{protocol}}://{{host}}{{path}}" } }, { "clientProfile": { "client": "CHROME", "ipVersion": "IPV4" }, "condition": { "conditionExpression": "Log request details - Host header is logged" }, "testRequest": { "requestMethod": "GET", "testRequestUrl": "{{protocol}}://{{host}}{{path}}" } }, { "clientProfile": { "client": "CHROME", "ipVersion": "IPV4" }, "condition": { "conditionExpression": "Caching option is cache with max-age of \"0\" seconds" }, "testRequest": { "requestMethod": "GET", "testRequestUrl": "{{protocol}}://{{host}}{{path}}" } } ], "testSuiteName": "Default test suite for config_user8 v79", "variables": [ { "variableName": "host", "variableValue": "www.user8.example.com" }, { "variableName": "path", "variableValue": "/image/cart.png" }, { "variableName": "protocol", "variableValue": "https" } ] }



Curl
curl -X POST 'https://undefined/test-management/v3/functional/test-suites/auto-generate?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"configs":{"propertyManager":{"propertyName":"config_user8","propertyVersion":79}},"testRequestUrls":["https://www.user8.example.com/image/cart.png"]}'

ENDPOINTS