use of org.hisp.dhis.actions.tracker.EventActions in project dhis2-core by dhis2.
the class EventImportDataValueValidationTests method beforeAll.
@BeforeAll
public void beforeAll() throws Exception {
programActions = new ProgramActions();
eventActions = new EventActions();
dataElementActions = new DataElementActions();
new LoginActions().loginAsAdmin();
setupData();
}
use of org.hisp.dhis.actions.tracker.EventActions in project dhis2-core by dhis2.
the class EventImportTests method before.
@BeforeAll
public void before() {
eventActions = new EventActions();
systemActions = new SystemActions();
new LoginActions().loginAsSuperUser();
}
use of org.hisp.dhis.actions.tracker.EventActions in project dhis2-core by dhis2.
the class UserAssignmentFilterTests method beforeAll.
@BeforeAll
public void beforeAll() throws Exception {
eventActions = new EventActions();
loginActions = new LoginActions();
metadataActions = new MetadataActions();
userActions = new UserActions();
userUsername = ("EventFiltersUser" + DataGenerator.randomString()).toLowerCase();
loginActions.loginAsSuperUser();
metadataActions.importAndValidateMetadata(new File("src/test/resources/tracker/eventProgram.json"));
userId = userActions.addUser(userUsername, userPassword);
userActions.grantUserAccessToOrgUnit(userId, orgUnit);
userActions.addUserToUserGroup(userId, Constants.USER_GROUP_ID);
userActions.addRoleToUser(userId, Constants.USER_ROLE_ID);
eventsBody = getEventsBody(programId, "l8oDIfJJhtg", userId);
}
use of org.hisp.dhis.actions.tracker.EventActions in project dhis2-core by dhis2.
the class EventExportTests method beforeAll.
@BeforeAll
public void beforeAll() {
userActions = new UserActions();
eventActions = new EventActions();
loginActions = new LoginActions();
programActions = new ProgramActions();
loginActions.loginAsSuperUser();
setupUser();
closedProgramId = programActions.createProgramWithAccessLevel("CLOSED", rootOu, captureOu, searchOu, dataReadOu);
closedProgramProgramStageId = programActions.createProgramStage(closedProgramId, "Event export tests" + DataGenerator.randomString());
setupTrackerEvents();
setupEvents();
String relationshipTypeId = new RelationshipTypeActions().createRelationshipType("PROGRAM_STAGE_INSTANCE", withoutRegistrationProgram, "PROGRAM_STAGE_INSTANCE", withRegistrationProgram, true);
relationshipId = createRelationship(events.get(captureOu), trackerEvents.get(captureOu), relationshipTypeId);
}
use of org.hisp.dhis.actions.tracker.EventActions in project dhis2-core by dhis2.
the class EventImportValidationTests method beforeAll.
@BeforeAll
public void beforeAll() {
eventActions = new EventActions();
programActions = new ProgramActions();
new LoginActions().loginAsAdmin();
setupData();
}
Aggregations