Search in sources :

Example 1 with MetadataPaginationActions

use of org.hisp.dhis.actions.metadata.MetadataPaginationActions in project dhis2-core by dhis2.

the class UserPaginationTest method setUp.

@BeforeEach
public void setUp() {
    LoginActions loginActions = new LoginActions();
    userActions = new UserActions();
    paginationActions = new MetadataPaginationActions("/users");
    loginActions.loginAsSuperUser();
    // Creates Users
    for (int i = 0; i < total; i++) {
        userActions.addUser(DataGenerator.randomString() + i, DataGenerator.randomString() + i, (DataGenerator.randomString() + i).toLowerCase(), DataGenerator.randomString() + "Abcd1234!" + i);
    }
}
Also used : MetadataPaginationActions(org.hisp.dhis.actions.metadata.MetadataPaginationActions) UserActions(org.hisp.dhis.actions.UserActions) LoginActions(org.hisp.dhis.actions.LoginActions) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with MetadataPaginationActions

use of org.hisp.dhis.actions.metadata.MetadataPaginationActions in project dhis2-core by dhis2.

the class MetadataPaginationTest method setUp.

@BeforeEach
public void setUp() {
    LoginActions loginActions = new LoginActions();
    OptionActions optionActions = new OptionActions();
    paginationActions = new MetadataPaginationActions("/optionSets");
    loginActions.loginAsSuperUser();
    // Creates 100 Option Sets
    for (int i = 0; i < 100; i++) {
        optionActions.createOptionSet(RandomStringUtils.randomAlphabetic(10), "INTEGER", (String[]) null);
    }
}
Also used : OptionActions(org.hisp.dhis.actions.metadata.OptionActions) MetadataPaginationActions(org.hisp.dhis.actions.metadata.MetadataPaginationActions) LoginActions(org.hisp.dhis.actions.LoginActions) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

LoginActions (org.hisp.dhis.actions.LoginActions)2 MetadataPaginationActions (org.hisp.dhis.actions.metadata.MetadataPaginationActions)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2 UserActions (org.hisp.dhis.actions.UserActions)1 OptionActions (org.hisp.dhis.actions.metadata.OptionActions)1