# Executions (*executions*) ## Overview Test suites and tests execution operations ### Available Operations * [abortExecution](#abortexecution) - Aborts execution * [abortTestSuiteExecution](#aborttestsuiteexecution) - Aborts testsuite execution * [abortTestSuiteExecutionByID](#aborttestsuiteexecutionbyid) - Aborts testsuite execution * [downloadArchive](#downloadarchive) - Download artifact archive * [downloadFile](#downloadfile) - Download artifact * [executeTest](#executetest) - Starts new test execution * [executeTestSuite](#executetestsuite) - Starts new test suite execution * [executeTestSuites](#executetestsuites) - Starts new test suite executions * [executeTests](#executetests) - Starts new test executions * [getExecutionArtifacts](#getexecutionartifacts) - Get execution's artifacts by ID * [getExecutionByID](#getexecutionbyid) - Get test execution by ID * [getExecutionLogs](#getexecutionlogs) - Get execution's logs by ID * [getTestExecution](#gettestexecution) - Get test execution * [getTestSuiteExecution](#gettestsuiteexecution) - Get test suite execution * [getTestSuiteExecutionArtifacts](#gettestsuiteexecutionartifacts) - Get test suite execution artifacts * [getTestSuiteExecutionArtifactsByTestsuite](#gettestsuiteexecutionartifactsbytestsuite) - Get test suite execution artifacts * [getTestSuiteExecutionByID](#gettestsuiteexecutionbyid) - Get test suite execution by ID * [listAllTestSuiteExecutions](#listalltestsuiteexecutions) - Get all test suite executions * [listExecutions](#listexecutions) - Get all test executions * [listTestExecutions](#listtestexecutions) - Get all test executions * [listTestSuiteExecutions](#listtestsuiteexecutions) - Get all test suite executions * [uploads](#uploads) - Upload file ## abortExecution Aborts execution with given executionID ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.abortExecution({ executionID: "", id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | `request` | [operations.AbortExecutionRequest](../../sdk/models/operations/abortexecutionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.AbortExecutionResponse](../../sdk/models/operations/abortexecutionresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## abortTestSuiteExecution Aborts testsuite execution with given executionID ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.abortTestSuiteExecution({ executionID: "", id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | `request` | [operations.AbortTestSuiteExecutionRequest](../../sdk/models/operations/aborttestsuiteexecutionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.AbortTestSuiteExecutionResponse](../../sdk/models/operations/aborttestsuiteexecutionresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## abortTestSuiteExecutionByID Aborts testsuite execution with given executionID ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.abortTestSuiteExecutionByID({ executionID: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.AbortTestSuiteExecutionByIDRequest](../../sdk/models/operations/aborttestsuiteexecutionbyidrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.AbortTestSuiteExecutionByIDResponse](../../sdk/models/operations/aborttestsuiteexecutionbyidresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## downloadArchive Download the artifact archive from the given execution ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.downloadArchive({ id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | | `request` | [operations.DownloadArchiveRequest](../../sdk/models/operations/downloadarchiverequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.DownloadArchiveResponse](../../sdk/models/operations/downloadarchiveresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## downloadFile Download the artifact file from the given execution ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.downloadFile({ filename: "maserati_bronze_audi.mp2a", id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | | `request` | [operations.DownloadFileRequest](../../sdk/models/operations/downloadfilerequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.DownloadFileResponse](../../sdk/models/operations/downloadfileresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## executeTest New test execution returns new execution details on successful execution start ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; import { ExecutionRequestArgsMode, RunningContextType, VariableType } from "testkube-sdk/dist/sdk/models/shared"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.executeTest({ executionRequest: { activeDeadlineSeconds: 1, args: [ "--repeats", "5", "--insecure", ], artifactRequest: { dirs: [ "", ], storageClassName: "artifact-volume-local", }, bucketName: "execution-c01d7cf6-ec3f-47f0-9556-a5d6e9009a43", command: [ "curl", ], contentRequest: { repository: { branch: "main", commit: "b928cbb7186944ab9275937ec1ac3d3738ca2e1d", path: "test/perf", workingDir: "/", }, }, envConfigMaps: [ { mount: true, reference: {}, }, ], envSecrets: [ { mount: true, reference: {}, }, ], envs: { "record": "true", "prefix": "some-", }, executionLabels: { "users": "3", "prefix": "some-", }, httpProxy: "user:pass@my.proxy.server:8080", httpsProxy: "user:pass@my.proxy.server:8081", id: "62f395e004109209b50edfc1", image: "kubeshop/testkube-executor-custom:1.10.11-dev-0a9c91", imagePullSecrets: [ {}, ], isNegativeTestChangedOnRun: false, isVariablesFileUploaded: false, name: "testing with 1000 users", namespace: "testkube", negativeTest: false, postRunScript: "sleep 30", preRunScript: "echo -n '$SECRET_ENV' > ./secret_file", runningContext: { type: RunningContextType.Testsuite, }, secretEnvs: { "secret_key_name1": "secret-name", "secret_Key_name2": "secret-name", }, testSuiteName: "test-suite1", uploads: [ "settings/config.txt", ], variables: { "var1": { configMapRef: { key: "", name: "", }, name: "var1", secretRef: { key: "", name: "", }, type: VariableType.Basic, value: "value1", }, "secret1": { configMapRef: { key: "", name: "", }, name: "secret1", secretRef: { key: "", name: "", }, type: VariableType.Secret, value: "secretvalue1", }, }, }, id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | | `request` | [operations.ExecuteTestRequest](../../sdk/models/operations/executetestrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.ExecuteTestResponse](../../sdk/models/operations/executetestresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## executeTestSuite New test suite execution returns new execution details on successful execution start ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; import { RunningContextType, VariableType } from "testkube-sdk/dist/sdk/models/shared"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.executeTestSuite({ testSuiteExecutionRequest: { concurrencyLevel: 10, contentRequest: { repository: { branch: "main", commit: "b928cbb7186944ab9275937ec1ac3d3738ca2e1d", path: "test/perf", workingDir: "/", }, }, executionLabels: { "users": "3", "prefix": "some-", }, httpProxy: "user:pass@my.proxy.server:8080", httpsProxy: "user:pass@my.proxy.server:8081", labels: { "users": "3", "prefix": "some-", }, name: "testing with 1000 users", namespace: "testkube", number: 1, runningContext: { type: RunningContextType.Testtrigger, }, timeout: 1, variables: { "var1": { configMapRef: { key: "", name: "", }, name: "var1", secretRef: { key: "", name: "", }, type: VariableType.Basic, value: "value1", }, "secret1": { configMapRef: { key: "", name: "", }, name: "secret1", secretRef: { key: "", name: "", }, type: VariableType.Secret, value: "secretvalue1", }, }, }, id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | | `request` | [operations.ExecuteTestSuiteRequest](../../sdk/models/operations/executetestsuiterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.ExecuteTestSuiteResponse](../../sdk/models/operations/executetestsuiteresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## executeTestSuites New test suite executions returns new executions details on successful executions start ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; import { RunningContextType, VariableType } from "testkube-sdk/dist/sdk/models/shared"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.executeTestSuites({ testSuiteExecutionRequest: { concurrencyLevel: 10, contentRequest: { repository: { branch: "main", commit: "b928cbb7186944ab9275937ec1ac3d3738ca2e1d", path: "test/perf", workingDir: "/", }, }, executionLabels: { "users": "3", "prefix": "some-", }, httpProxy: "user:pass@my.proxy.server:8080", httpsProxy: "user:pass@my.proxy.server:8081", labels: { "users": "3", "prefix": "some-", }, name: "testing with 1000 users", namespace: "testkube", number: 1, runningContext: { type: RunningContextType.UserUI, }, timeout: 1, variables: { "var1": { configMapRef: { key: "", name: "", }, name: "var1", secretRef: { key: "", name: "", }, type: VariableType.Basic, value: "value1", }, "secret1": { configMapRef: { key: "", name: "", }, name: "secret1", secretRef: { key: "", name: "", }, type: VariableType.Secret, value: "secretvalue1", }, }, }, }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | | `request` | [operations.ExecuteTestSuitesRequest](../../sdk/models/operations/executetestsuitesrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.ExecuteTestSuitesResponse](../../sdk/models/operations/executetestsuitesresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## executeTests New test executions returns new executions details on successful executions start ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; import { ExecutionRequestArgsMode, RunningContextType, VariableType } from "testkube-sdk/dist/sdk/models/shared"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.executeTests({ executionRequest: { activeDeadlineSeconds: 1, args: [ "--repeats", "5", "--insecure", ], artifactRequest: { dirs: [ "", ], storageClassName: "artifact-volume-local", }, bucketName: "execution-c01d7cf6-ec3f-47f0-9556-a5d6e9009a43", command: [ "curl", ], contentRequest: { repository: { branch: "main", commit: "b928cbb7186944ab9275937ec1ac3d3738ca2e1d", path: "test/perf", workingDir: "/", }, }, envConfigMaps: [ { mount: true, reference: {}, }, ], envSecrets: [ { mount: true, reference: {}, }, ], envs: { "record": "true", "prefix": "some-", }, executionLabels: { "users": "3", "prefix": "some-", }, httpProxy: "user:pass@my.proxy.server:8080", httpsProxy: "user:pass@my.proxy.server:8081", id: "62f395e004109209b50edfc1", image: "kubeshop/testkube-executor-custom:1.10.11-dev-0a9c91", imagePullSecrets: [ {}, ], isNegativeTestChangedOnRun: false, isVariablesFileUploaded: false, name: "testing with 1000 users", namespace: "testkube", negativeTest: false, postRunScript: "sleep 30", preRunScript: "echo -n '$SECRET_ENV' > ./secret_file", runningContext: { type: RunningContextType.Scheduler, }, secretEnvs: { "secret_key_name1": "secret-name", "secret_Key_name2": "secret-name", }, testSuiteName: "test-suite1", uploads: [ "settings/config.txt", ], variables: { "var1": { configMapRef: { key: "", name: "", }, name: "var1", secretRef: { key: "", name: "", }, type: VariableType.Basic, value: "value1", }, "secret1": { configMapRef: { key: "", name: "", }, name: "secret1", secretRef: { key: "", name: "", }, type: VariableType.Secret, value: "secretvalue1", }, }, }, }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | | `request` | [operations.ExecuteTestsRequest](../../sdk/models/operations/executetestsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.ExecuteTestsResponse](../../sdk/models/operations/executetestsresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## getExecutionArtifacts Returns artifacts of the given executionID ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.getExecutionArtifacts({ id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetExecutionArtifactsRequest](../../sdk/models/operations/getexecutionartifactsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.GetExecutionArtifactsResponse](../../sdk/models/operations/getexecutionartifactsresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## getExecutionByID Returns execution with given executionID ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.getExecutionByID({ executionID: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | | `request` | [operations.GetExecutionByIDRequest](../../sdk/models/operations/getexecutionbyidrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.GetExecutionByIDResponse](../../sdk/models/operations/getexecutionbyidresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## getExecutionLogs Returns logs of the given executionID ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.getExecutionLogs({ id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | | `request` | [operations.GetExecutionLogsRequest](../../sdk/models/operations/getexecutionlogsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.GetExecutionLogsResponse](../../sdk/models/operations/getexecutionlogsresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## getTestExecution Returns execution with given executionID ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.getTestExecution({ executionID: "", id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | | `request` | [operations.GetTestExecutionRequest](../../sdk/models/operations/gettestexecutionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.GetTestExecutionResponse](../../sdk/models/operations/gettestexecutionresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## getTestSuiteExecution Returns test suite execution with given executionID ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.getTestSuiteExecution({ executionID: "", id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetTestSuiteExecutionRequest](../../sdk/models/operations/gettestsuiteexecutionrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.GetTestSuiteExecutionResponse](../../sdk/models/operations/gettestsuiteexecutionresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## getTestSuiteExecutionArtifacts Returns test suite execution artifacts with given executionID ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.getTestSuiteExecutionArtifacts({ executionID: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | | `request` | [operations.GetTestSuiteExecutionArtifactsRequest](../../sdk/models/operations/gettestsuiteexecutionartifactsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.GetTestSuiteExecutionArtifactsResponse](../../sdk/models/operations/gettestsuiteexecutionartifactsresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## getTestSuiteExecutionArtifactsByTestsuite Returns test suite execution artifacts with given executionID ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.getTestSuiteExecutionArtifactsByTestsuite({ executionID: "", id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | | `request` | [operations.GetTestSuiteExecutionArtifactsByTestsuiteRequest](../../sdk/models/operations/gettestsuiteexecutionartifactsbytestsuiterequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.GetTestSuiteExecutionArtifactsByTestsuiteResponse](../../sdk/models/operations/gettestsuiteexecutionartifactsbytestsuiteresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## getTestSuiteExecutionByID Returns test suite execution with given executionID ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.getTestSuiteExecutionByID({ executionID: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | `request` | [operations.GetTestSuiteExecutionByIDRequest](../../sdk/models/operations/gettestsuiteexecutionbyidrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.GetTestSuiteExecutionByIDResponse](../../sdk/models/operations/gettestsuiteexecutionbyidresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## listAllTestSuiteExecutions Returns array of test suite executions ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; import { TestSuiteExecutionStatus } from "testkube-sdk/dist/sdk/models/shared"; import { RFCDate } from "testkube-sdk/dist/sdk/types"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.listAllTestSuiteExecutions({}); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `request` | [operations.ListAllTestSuiteExecutionsRequest](../../sdk/models/operations/listalltestsuiteexecutionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.ListAllTestSuiteExecutionsResponse](../../sdk/models/operations/listalltestsuiteexecutionsresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## listExecutions Returns array of test executions ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; import { ExecutionStatus } from "testkube-sdk/dist/sdk/models/shared"; import { RFCDate } from "testkube-sdk/dist/sdk/types"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.listExecutions({}); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | `request` | [operations.ListExecutionsRequest](../../sdk/models/operations/listexecutionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.ListExecutionsResponse](../../sdk/models/operations/listexecutionsresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## listTestExecutions Returns array of all available test executions ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; import { ExecutionStatus } from "testkube-sdk/dist/sdk/models/shared"; import { RFCDate } from "testkube-sdk/dist/sdk/types"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.listTestExecutions({ id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | | `request` | [operations.ListTestExecutionsRequest](../../sdk/models/operations/listtestexecutionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.ListTestExecutionsResponse](../../sdk/models/operations/listtestexecutionsresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## listTestSuiteExecutions Returns array of all available test suite executions ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; import { TestSuiteExecutionStatus } from "testkube-sdk/dist/sdk/models/shared"; import { RFCDate } from "testkube-sdk/dist/sdk/types"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.listTestSuiteExecutions({ id: "", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | `request` | [operations.ListTestSuiteExecutionsRequest](../../sdk/models/operations/listtestsuiteexecutionsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.ListTestSuiteExecutionsResponse](../../sdk/models/operations/listtestsuiteexecutionsresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | ## uploads Upload file to be used in executions and tests ### Example Usage ```typescript import { TestkubeSDK } from "testkube-sdk"; import { ParentType } from "testkube-sdk/dist/sdk/models/shared"; async function run() { const sdk = new TestkubeSDK(); const res = await sdk.executions.uploads({ filePath: "folder/file.txt", parentName: "test-1", }); if (res.statusCode == 200) { // handle response } } run(); ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | | `request` | [shared.UploadsBody](../../sdk/models/shared/uploadsbody.md) | :heavy_check_mark: | The request object to use for the request. | | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response **Promise<[operations.UploadsResponse](../../sdk/models/operations/uploadsresponse.md)>** ### Errors | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* |