Skip to content

Latest commit

 

History

History
1162 lines (854 loc) · 36.1 KB

File metadata and controls

1162 lines (854 loc) · 36.1 KB

TestProjectApi

All URIs are relative to http://localhost:8443

Method HTTP request Description
create6 POST /api/v1/test-projects/{id}/schedulers Creates a new schedule for a Test Plan. Returns the created schedule detail.
createGitRepo POST /api/v1/git/create Creates a Git Test Project. Returns the Git Test Project detail.
createSample POST /api/v1/test-projects/sample Creates a new sample Test Project. Returns the created Test Project.
delete6 DELETE /api/v1/test-projects/{id} Deletes a Test Project. Returns the deleted Test Project.
delete7 DELETE /api/v1/test-projects/{id}/schedulers/{schedulerId} Deletes a schedule. Returns the deleted schedule detail.
download4 GET /api/v1/test-projects/{id}/download Downloads a Test Project package. Returns the latest Test Project package file.
get17 GET /api/v1/test-projects/{id} Returns a Test Project detail.
getScheduler GET /api/v1/test-projects/{id}/schedulers/{schedulerId} Returns a schedule detail.
getTestProjectGit GET /api/v1/git/{testProjectGitId} Returns a Git Test Project detail.
refreshTSC POST /api/v1/test-projects/{id}/refresh-tsc Refresh Test Suite Collection list of Git Test Project
run PUT /api/v1/run-configurations/{id}/execute Executes a Test Plan. Returns the build information.
update10 PUT /api/v1/test-projects/{id} Updates a Test Project detail. Returns the updated Test Project detail.
update9 PUT /api/v1/test-projects/{id}/schedulers/{schedulerId} Updates a schedule detail. Returns the updated schedule detail.
updateGitRepo POST /api/v1/git/update Updates a Git Test Project detail. Returns the updated Git Test Project detail.
updatePackage POST /api/v1/test-projects/{id}/update-package Update a Test Project package. Returns the updated Test Project detail.
upload1 POST /api/v1/test-projects/upload Creates a new Test Project. Returns the created Test Project.

create6

SchedulerResource create6(id, schedulerResource)

Creates a new schedule for a Test Plan. Returns the created schedule detail.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        Long id = 56L; // Long | 
        SchedulerResource schedulerResource = new SchedulerResource(); // SchedulerResource | 
        try {
            SchedulerResource result = apiInstance.create6(id, schedulerResource);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#create6");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id Long
schedulerResource SchedulerResource

Return type

SchedulerResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

createGitRepo

GitRepositoryResource createGitRepo(gitRepositoryResource)

Creates a Git Test Project. Returns the Git Test Project detail.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        GitRepositoryResource gitRepositoryResource = new GitRepositoryResource(); // GitRepositoryResource | 
        try {
            GitRepositoryResource result = apiInstance.createGitRepo(gitRepositoryResource);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#createGitRepo");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
gitRepositoryResource GitRepositoryResource

Return type

GitRepositoryResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

createSample

TestProjectResource createSample(name, type, projectId)

Creates a new sample Test Project. Returns the created Test Project.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        String name = "name_example"; // String | 
        String type = "type_example"; // String | 
        Long projectId = 56L; // Long | 
        try {
            TestProjectResource result = apiInstance.createSample(name, type, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#createSample");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
name String
type String [enum: KS, GIT]
projectId Long

Return type

TestProjectResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

delete6

TestProjectResource delete6(id)

Deletes a Test Project. Returns the deleted Test Project.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        Long id = 56L; // Long | 
        try {
            TestProjectResource result = apiInstance.delete6(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#delete6");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id Long

Return type

TestProjectResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

delete7

SchedulerResource delete7(id, schedulerId)

Deletes a schedule. Returns the deleted schedule detail.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        Long id = 56L; // Long | 
        Long schedulerId = 56L; // Long | 
        try {
            SchedulerResource result = apiInstance.delete7(id, schedulerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#delete7");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id Long
schedulerId Long

Return type

SchedulerResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

download4

download4(id)

Downloads a Test Project package. Returns the latest Test Project package file.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        Long id = 56L; // Long | 
        try {
            apiInstance.download4(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#download4");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id Long

Return type

null (empty response body)

Authorization

basicScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 OK -

get17

TestProjectResource get17(id)

Returns a Test Project detail.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        Long id = 56L; // Long | 
        try {
            TestProjectResource result = apiInstance.get17(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#get17");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id Long

Return type

TestProjectResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

getScheduler

SchedulerResource getScheduler(id, schedulerId)

Returns a schedule detail.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        Long id = 56L; // Long | 
        Long schedulerId = 56L; // Long | 
        try {
            SchedulerResource result = apiInstance.getScheduler(id, schedulerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#getScheduler");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id Long
schedulerId Long

Return type

SchedulerResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

getTestProjectGit

GitRepositoryResource getTestProjectGit(testProjectGitId)

Returns a Git Test Project detail.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        Long testProjectGitId = 56L; // Long | 
        try {
            GitRepositoryResource result = apiInstance.getTestProjectGit(testProjectGitId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#getTestProjectGit");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
testProjectGitId Long

Return type

GitRepositoryResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

refreshTSC

refreshTSC(id)

Refresh Test Suite Collection list of Git Test Project

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        Long id = 56L; // Long | 
        try {
            apiInstance.refreshTSC(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#refreshTSC");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id Long

Return type

null (empty response body)

Authorization

basicScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 No Content -

run

List<BuildInfo> run(id)

Executes a Test Plan. Returns the build information.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        Long id = 56L; // Long | 
        try {
            List<BuildInfo> result = apiInstance.run(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#run");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id Long

Return type

List<BuildInfo>

Authorization

basicScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

update10

TestProjectResource update10(id, testProjectResource)

Updates a Test Project detail. Returns the updated Test Project detail.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        Long id = 56L; // Long | 
        TestProjectResource testProjectResource = new TestProjectResource(); // TestProjectResource | 
        try {
            TestProjectResource result = apiInstance.update10(id, testProjectResource);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#update10");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id Long
testProjectResource TestProjectResource

Return type

TestProjectResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

update9

SchedulerResource update9(id, schedulerId, schedulerResource)

Updates a schedule detail. Returns the updated schedule detail.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        Long id = 56L; // Long | 
        Long schedulerId = 56L; // Long | 
        SchedulerResource schedulerResource = new SchedulerResource(); // SchedulerResource | 
        try {
            SchedulerResource result = apiInstance.update9(id, schedulerId, schedulerResource);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#update9");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id Long
schedulerId Long
schedulerResource SchedulerResource

Return type

SchedulerResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

updateGitRepo

GitRepositoryResource updateGitRepo(gitRepositoryResource)

Updates a Git Test Project detail. Returns the updated Git Test Project detail.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        GitRepositoryResource gitRepositoryResource = new GitRepositoryResource(); // GitRepositoryResource | 
        try {
            GitRepositoryResource result = apiInstance.updateGitRepo(gitRepositoryResource);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#updateGitRepo");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
gitRepositoryResource GitRepositoryResource

Return type

GitRepositoryResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

updatePackage

TestProjectResource updatePackage(id, batch, folderPath, fileName, uploadedPath)

Update a Test Project package. Returns the updated Test Project detail.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        Long id = 56L; // Long | 
        String batch = "batch_example"; // String | 
        String folderPath = "folderPath_example"; // String | 
        String fileName = "fileName_example"; // String | 
        String uploadedPath = "uploadedPath_example"; // String | 
        try {
            TestProjectResource result = apiInstance.updatePackage(id, batch, folderPath, fileName, uploadedPath);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#updatePackage");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id Long
batch String
folderPath String
fileName String
uploadedPath String

Return type

TestProjectResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

upload1

TestProjectResource upload1(name, projectId, batch, folderPath, fileName, uploadedPath, description)

Creates a new Test Project. Returns the created Test Project.

Example

// Import classes:
import com.katalon.testops.api.ApiClient;
import com.katalon.testops.api.ApiException;
import com.katalon.testops.api.Configuration;
import com.katalon.testops.api.auth.*;
import com.katalon.testops.api.models.*;
import com.katalon.testops.api.api.TestProjectApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost:8443");
        
        // Configure HTTP basic authorization: basicScheme
        HttpBasicAuth basicScheme = (HttpBasicAuth) defaultClient.getAuthentication("basicScheme");
        basicScheme.setUsername("YOUR USERNAME");
        basicScheme.setPassword("YOUR PASSWORD");

        TestProjectApi apiInstance = new TestProjectApi(defaultClient);
        String name = "name_example"; // String | 
        String projectId = "projectId_example"; // String | 
        String batch = "batch_example"; // String | 
        String folderPath = "folderPath_example"; // String | 
        String fileName = "fileName_example"; // String | 
        String uploadedPath = "uploadedPath_example"; // String | 
        String description = "description_example"; // String | 
        try {
            TestProjectResource result = apiInstance.upload1(name, projectId, batch, folderPath, fileName, uploadedPath, description);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TestProjectApi#upload1");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
name String
projectId String
batch String
folderPath String
fileName String
uploadedPath String
description String [optional]

Return type

TestProjectResource

Authorization

basicScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -