Used to execute Batch Test Suites and get results. This API only initiates the test process. Use Batch Test Execution Status API to view the results of the batch test.
To use this API, the app needs the Bot Builder Scope of Batch Tests Execution.
POST https://{{host}}/api/public/stream/{{BotID}}/testsuite/{testSuiteName}/run
Query Parameters
Parameter | Description |
---|---|
host | Environment URL, for example, https://bots.kore.ai |
BotID | Bot ID or Stream ID. You can access it from the General Settings page of the bot. |
testSuiteName | Name of the test suite as created in the Bot’s platform |
Body Parameters
Parameter | Description |
---|---|
version |
The version of the bot against which the execution is required
|
Authorization
Invoke the API with JWT in the header with the following syntax:
auth: {{JWT}}
Response content type
application/json
Sample Request
curl --location --request POST \ 'https://{host}/api/public/stream/{streamId}/testsuite/{testSuiteName}/run' \ --header 'auth: {jwt-token}' \ --header 'bot-language: {language-code}' \ --header 'Content-Type: application/json' \ --data-raw '{ "version":"inDevelopment" }'
Sample Response
{ "status": "accepted", "requestId": "tr-acfxxbff-xxxf-xaxx-bbbx-exxxabaxxcxx" }