지정된 일괄 배치 테스트 제품군의 테스트 사례를 내보내고 내보내기가 완료되면 파일을 다운로드할 수 있는 링크를 가져옵니다.

이 API를 사용하려면 일괄 테스트 관리의 봇 빌더 범위 또는 일괄 테스트 관리의 관리자 API 범위가 필요합니다.

POST https://{host}/api/public/bot/{botId}/testsuite/{testSuiteName}/export

쿼리 매개 변수

매개 변수 설명
host 환경 URL(예: https://bots.kore.ai
BotID 봇 ID 또는 스트림 ID. 봇의 일반 설정 페이지에서 이를 액세스할 수 있습니다.
testSuiteName 내보낼 봇의 플랫폼에 생성된 테스트 제품군의 이름 참고: 맞춤형 일괄 테스트 제품군만 내보낼 수 있습니다

권한 부여

다음 구문을 포함한 헤더에 JWT를 포함한 API를 호출합니다. auth: {{JWT}}

콘텐츠 유형 응답

application/json

샘플 요청

curl -X POST \
  https://{host}/api/public/bot/{botId}/testsuite/{testSuiteName}/export \
  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
  -H 'bot-language: {language-code}' \

샘플 응답

{
    "downloadUrl": {{downloadURL}},
    "name": "Batch Test Name",
    "description": "Batch Test Description"
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

特定のバッチテストスイートのテストケースをエクスポートし、エクスポートが完了したらファイルをダウンロードするためのリンクを取得します。

このAPIを使用するには、アプリはバッチテストの管理のボットビルダースコープ、またはバッチテストの管理の管理者APIスコープが必要です。

POST https://{host}/api/public/bot/{botId}/testsuite/{testSuiteName}/export

クエリパラメータ

パラメータ 説明
ホスト 環境URL(例) https://bots.kore.ai
BotID ボットIDまたはストリームID。ボットの [一般設定] ページからアクセスすることができます。
testSuiteName エクスポートされるボットのプラットフォームで作成されたテストスイートの名前 注意:カスタムバッチテストスイートのみエクスポート可能

認証

以下の構文を使用して、JWTをヘッダーに含むAPIを呼び出します。 auth: {{JWT}}

応答のコンテンツタイプ

application/json

サンプルリクエスト

curl -X POST \ https://{host}/api/public/bot/{botId}/testsuite/{testSuiteName}/export \ -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \ -H 'bot-language: {language-code}' \

サンプル応答

{ "downloadUrl": {{downloadURL}}, "name": "Batch Test Name", "description": "Batch Test Description" }

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

To export the test cases of a given Batch Test Suite and get a link to download the file once the export is completed.

To use this API, the app needs the Bot Builder Scope of Batch Tests Management
OR the Admin API Scope of Batch Tests Management.

POST https://{host}/api/public/bot/{botId}/testsuite/{testSuiteName}/export

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 to be exported

Note: Only Custom Batch Test Suites can be exported

Authorization

Invoke the API with JWT in the header with the following syntax:

auth: {{JWT}}

Response content type

application/json

Sample Request

curl -X POST \
  https://{host}/api/public/bot/{botId}/testsuite/{testSuiteName}/export \
  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
  -H 'bot-language: {language-code}' \

Sample Response

{
    "downloadUrl": {{downloadURL}},
    "name": "Batch Test Name",
    "description": "Batch Test Description"
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed