Search in sources :

Example 16 with AppUrl

use of teammates.common.util.AppUrl in project teammates by TEAMMATES.

the class AutomatedSessionRemindersTest method testFeedbackSessionPublishedReminders.

@Test
public void testFeedbackSessionPublishedReminders() {
    AppUrl publishedRemindersUrl = createUrl(Const.ActionURIs.AUTOMATED_FEEDBACK_PUBLISHED_REMINDERS);
    loginAdminToPage(publishedRemindersUrl, GenericAppPage.class);
}
Also used : AppUrl(teammates.common.util.AppUrl) Test(org.testng.annotations.Test)

Example 17 with AppUrl

use of teammates.common.util.AppUrl in project teammates by TEAMMATES.

the class AutomatedSessionRemindersTest method testFeedbackSessionClosedReminders.

@Test
public void testFeedbackSessionClosedReminders() {
    AppUrl closedRemindersUrl = createUrl(Const.ActionURIs.AUTOMATED_FEEDBACK_CLOSED_REMINDERS);
    loginAdminToPage(closedRemindersUrl, GenericAppPage.class);
}
Also used : AppUrl(teammates.common.util.AppUrl) Test(org.testng.annotations.Test)

Example 18 with AppUrl

use of teammates.common.util.AppUrl in project teammates by TEAMMATES.

the class AutomatedSessionRemindersTest method testFeedbackSessionOpeningReminders.

@Test
public void testFeedbackSessionOpeningReminders() {
    AppUrl openingRemindersUrl = createUrl(Const.ActionURIs.AUTOMATED_FEEDBACK_OPENING_REMINDERS);
    loginAdminToPage(openingRemindersUrl, GenericAppPage.class);
}
Also used : AppUrl(teammates.common.util.AppUrl) Test(org.testng.annotations.Test)

Example 19 with AppUrl

use of teammates.common.util.AppUrl in project teammates by TEAMMATES.

the class InstructorCourseDetailsPageUiTest method testLinks.

private void testLinks() {
    StudentAttributes student1 = testData.students.get("CCDetailsUiT.alice.tmms@CCDetailsUiT.CS2104");
    StudentAttributes student2 = testData.students.get("charlie.tmms@CCDetailsUiT.CS2104");
    ______TS("link: view");
    InstructorCourseStudentDetailsViewPage studentDetailsPage = detailsPage.clickViewStudent(student1.name);
    studentDetailsPage.verifyIsCorrectPage(student1.email);
    studentDetailsPage.closeCurrentWindowAndSwitchToParentWindow();
    ______TS("link: edit");
    InstructorCourseStudentDetailsEditPage studentEditPage = detailsPage.clickEditStudent(student2.name);
    studentEditPage.verifyIsCorrectPage(student2.email);
    studentEditPage.closeCurrentWindowAndSwitchToParentWindow();
    ______TS("link: all records");
    InstructorStudentRecordsPage studentAllRecordsPage = detailsPage.clickAllRecordsLink(student2.name);
    studentAllRecordsPage.verifyIsCorrectPage(student2.name);
    studentAllRecordsPage.closeCurrentWindowAndSwitchToParentWindow();
    studentAllRecordsPage = detailsPage.clickAllRecordsLink(student1.name);
    studentAllRecordsPage.verifyIsCorrectPage(student1.name.replaceAll("<", "&lt;").replaceAll(">", "&gt;"));
    studentAllRecordsPage.closeCurrentWindowAndSwitchToParentWindow();
    ______TS("link: download student list");
    AppUrl studentListDownloadUrl = createUrl(Const.ActionURIs.INSTRUCTOR_COURSE_STUDENT_LIST_DOWNLOAD).withUserId("CCDetailsUiT.instr").withCourseId("CCDetailsUiT.CS2104");
    detailsPage.verifyDownloadLink(studentListDownloadUrl);
}
Also used : InstructorCourseStudentDetailsViewPage(teammates.test.pageobjects.InstructorCourseStudentDetailsViewPage) InstructorCourseStudentDetailsEditPage(teammates.test.pageobjects.InstructorCourseStudentDetailsEditPage) AppUrl(teammates.common.util.AppUrl) StudentAttributes(teammates.common.datatransfer.attributes.StudentAttributes) InstructorStudentRecordsPage(teammates.test.pageobjects.InstructorStudentRecordsPage)

Example 20 with AppUrl

use of teammates.common.util.AppUrl in project teammates by TEAMMATES.

the class InstructorCourseEnrollPageUiTest method testContent.

private void testContent() throws Exception {
    ______TS("typical enroll page");
    AppUrl enrollUrl = createUrl(Const.ActionURIs.INSTRUCTOR_COURSE_ENROLL_PAGE).withUserId(testData.instructors.get("CCEnrollUiT.teammates.test").googleId).withCourseId(testData.courses.get("CCEnrollUiT.CS2104").getId());
    enrollPage = loginAdminToPage(enrollUrl, InstructorCourseEnrollPage.class);
    // This is the full HTML verification for Instructor Course Enroll Page, the rest can all be verifyMainHtml
    enrollPage.verifyHtml("/instructorCourseEnrollPage.html");
}
Also used : InstructorCourseEnrollPage(teammates.test.pageobjects.InstructorCourseEnrollPage) AppUrl(teammates.common.util.AppUrl)

Aggregations

AppUrl (teammates.common.util.AppUrl)52 Test (org.testng.annotations.Test)7 InstructorCourseEnrollPage (teammates.test.pageobjects.InstructorCourseEnrollPage)6 InstructorStudentListPage (teammates.test.pageobjects.InstructorStudentListPage)6 StudentHomePage (teammates.test.pageobjects.StudentHomePage)6 InstructorAttributes (teammates.common.datatransfer.attributes.InstructorAttributes)4 StudentAttributes (teammates.common.datatransfer.attributes.StudentAttributes)3 InstructorCourseDetailsPage (teammates.test.pageobjects.InstructorCourseDetailsPage)3 InstructorCourseStudentDetailsEditPage (teammates.test.pageobjects.InstructorCourseStudentDetailsEditPage)3 InstructorHomePage (teammates.test.pageobjects.InstructorHomePage)3 Stopwatch (teammates.client.scripts.util.Stopwatch)2 AdminHomePage (teammates.test.pageobjects.AdminHomePage)2 InstructorCourseStudentDetailsViewPage (teammates.test.pageobjects.InstructorCourseStudentDetailsViewPage)2 InstructorCoursesPage (teammates.test.pageobjects.InstructorCoursesPage)2 InstructorFeedbackResultsPage (teammates.test.pageobjects.InstructorFeedbackResultsPage)2 InstructorFeedbackSessionsPage (teammates.test.pageobjects.InstructorFeedbackSessionsPage)2 InstructorStudentRecordsPage (teammates.test.pageobjects.InstructorStudentRecordsPage)2 StudentCourseDetailsPage (teammates.test.pageobjects.StudentCourseDetailsPage)2 BlobInfo (com.google.appengine.api.blobstore.BlobInfo)1 BlobKey (com.google.appengine.api.blobstore.BlobKey)1