Package teammates.testing.object

Examples of teammates.testing.object.Student


    // try 0: do nothing
    bi.waitAndClick(bi.resultEditButton);
    bi.waitForElementText(bi.editEvaluationResultsStatusMessage, "Please fill in all the relevant fields.");

    // try 1: fill in estimated contribution only
    Student s = scn.students.get(FIRST_STUDENT);
    for (int i = 0; i < s.team.students.size(); i++) {
      bi.setSubmissionPoint(i, "80");
    }
    bi.waitAndClick(bi.resultEditButton);
    bi.waitForElementText(bi.statusMessage, bi.MESSAGE_EVALUATION_RESULTS_EDITED);
View Full Code Here


    bi.clickEvaluationViewResults(scn.course.courseId, scn.evaluation.name);

    // click 'Edit' 1st student:
    bi.clickReviewerSummaryEdit(FIRST_STUDENT);

    Student s = scn.students.get(FIRST_STUDENT);
    for (int i = 0; i < s.team.students.size(); i++) {
      bi.setSubmissionPoint(i, "30");
      bi.setSubmissionJustification(i, String.format("Edit:: \\Justification\\ from %s's email (%s) to %s.", s.name, s.email, s.team.students.get(i).email));
      bi.setSubmissionComments(i, String.format("Edit:: \\\\Comments\\\\ from %s's email (%s) to %s.", s.name, s.email, s.team.students.get(i).email));
    }
View Full Code Here

    bi.logout();
  }
 
  @Test
  public void testStudentViewTeamsWithoutNullTeamFormingSession() throws Exception {
    Student student = scn2.students.get(0);
    bi.studentLogin(student.email, student.password);
    bi.clickTeamFormingSessionViewTeams(scn2.course.courseId);
    bi.justWait();
   
    String header = "TEAM DETAIL FOR "+student.courseID;
View Full Code Here

  @Test
  public void testCoordAddEvaluation() {
    List<Student> students = new ArrayList<Student>();
   
    Student newStudent = new Student();
    newStudent.teamName = "   ";
    newStudent.name = "Alice";
    newStudent.email = "alice.tmms@gmail.com";
    students.add(newStudent);
   
    newStudent = new Student();
    newStudent.teamName = "";
    newStudent.name = "Benny";
    newStudent.email = "benny.tmms@gmail.com";
    students.add(newStudent);
   
    newStudent = new Student();
    newStudent.teamName = "Team1";
    newStudent.name = "Charlie";
    newStudent.email = "charlie.tmms@gmail.com";
    students.add(newStudent);
   
View Full Code Here

  }
 
//  @Test
  public void testStudentViewResultPoints() throws Exception {
    for(int i = 0; i < sc.students.size(); i++) {
      Student s = sc.students.get(i);
      studentLogin(s.email, s.password);
      studentViewResultPoints(0, i);//first evaluation
      studentViewResultPoints(1, i);//second evaluation
      logout();
    }
View Full Code Here

    return -1;
  }
 
  private List<Student> getStudentTeammates(List<Student> students, int index) {
    List<Student> list = new ArrayList<Student>();
    Student student = students.get(index);
    for (Student s : students){
      if(s.teamName.equalsIgnoreCase(student.teamName)){
        list.add(s);
      }
    }
View Full Code Here

    clickEvaluationViewResults(0);

    // click 'Edit' 1st student:
    clickReviewerSummaryEdit(0);
   
    Student s = sc.students.get(0);
   
    for (int i = 0; i < s.team.students.size(); i++) {
      setSubmissionPoint(i, "100");
    }
    
View Full Code Here

    // click submit:
    while(!getElementText(editEvaluationResultsStatusMessage).equals("Please fill in all the relevant fields."))
      waitAndClick(resultEditButton);
    //waitForElementText(editEvaluationResultsStatusMessage, "Please fill in all the relevant fields.");

    Student s = sc.students.get(0);
    // try 1: fill in estimated contribution only
    for (int i = 0; i < s.team.students.size(); i++) {
      setSubmissionPoint(i, "80");
    }
    waitAndClick(resultEditButton);
View Full Code Here

    // ..Edit a submitted evaluation record:
    System.out.println("testEditResultsByReviewer: Edit Reviewer Feedback");
    // click 'Edit' 1st student:
    clickReviewerSummaryEdit(0);

    Student s = sc.students.get(0);
    for (int i = 0; i < s.team.students.size(); i++) {
      // selenium.select("points" + i, "value=30");
      setSubmissionPoint(i, "30");
      setSubmissionJustification(i, String.format(
          "Edit:: Justification from %s's email (%s) to %s.", s.name, s.email,
View Full Code Here

  }

  public String getStudentsString(List<Student> list) {
    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < list.size(); i++) {
      Student s = list.get(i);
      sb.append(String.format("%s|%s|%s|", s.teamName, s.name, s.email));
      if (i != list.size() - 1) {
        sb.append("\n");
      }
    }
View Full Code Here

TOP

Related Classes of teammates.testing.object.Student

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.