分布式调度框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
xiangzihao d67ea805f9
[DSIP-38] Add plugin directory in binary package (#16613)
3 months ago
..
dolphinscheduler-api-test-case [DSIP-38] Add plugin directory in binary package (#16613) 3 months ago
dolphinscheduler-api-test-core [DSIP-75] Support auto add license header by spotless (#16643) 3 months ago
README.md [Improvement][API-Test] Add api tests for project page (#14402) 2 years ago
pom.xml [DSIP-68] Unify the table structure and table fields in backend and frontend ui sections (#16544) 4 months ago

README.md

DolphinScheduler Backend API Test

Page Object Model

DolphinScheduler API test respects the Page Object Model (POM) design pattern. Every page of DolphinScheduler's api is abstracted into a class for better maintainability.

Example

The login page's api is abstracted as LoginPage , with the following fields,

public HttpResponse login(String username, String password) {
    Map<String, Object> params = new HashMap<>();

    params.put("userName", username);
    params.put("userPassword", password);

    RequestClient requestClient = new RequestClient();

    return requestClient.post("/login", null, params);
}

where userName, userPassword are the main elements on UI that we are interested in.

Test Environment Setup

DolphinScheduler API test uses testcontainers to set up the testing environment, with docker compose.

Typically, every test case needs one or more docker-compose.yaml files to set up all needed components, and expose the DolphinScheduler UI port for testing. You can use @DolphinScheduler(composeFiles = "") and pass the docker-compose.yaml files to automatically set up the environment in the test class.


@DolphinScheduler(composeFiles = "docker/tenant/docker-compose.yaml")
class TenantAPITest {
}