Package teammates.testing.object

Examples of teammates.testing.object.Student


  }

  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


    }
  }

  public void testStudentViewResultPoints() throws Exception {
    for (int i = 0; i < scn.students.size(); i++) {
      Student s = scn.students.get(i);
      bi.studentLogin(s.email, s.password);

      studentViewResultPoints(scn.course.courseId, scn.evaluation.name, i);
      studentViewResultPoints(scn.course.courseId, scn.evaluation2.name, i);
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

    bi.justWait();
   
   
    //comments order is random
    for(int i = 0; i < scn.students.size(); i++) {
      Student teammate = scn.students.get(i);
      if(teammate.teamName.equals(student.teamName) && !teammate.name.equals(student.name)){
        assertTrue(bi.studentGetFeedbackFromOthers(teammate.email, student.email));
      }
    }
   
View Full Code Here

    // 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 to %s.", s.email, s.team.students.get(i).email));
      bi.setSubmissionComments(i, String.format("Edit:: Comments from %s to %s.", s.email, s.team.students.get(i).email));
    }
View Full Code Here

 
  @Test
  public void testStudentViewResultPoints() throws Exception {
    for(int i = 0; i < sc.students.size(); i++) {
      logout();
      Student s = sc.students.get(i);
      studentLogin(s.email, s.password);
      studentViewResultPoints(0, i);//first evaluation
      studentViewResultPoints(1, i);//second evaluation
    }
  }
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

  }
 
//  @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

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.