Package teammates.testing.object

Examples of teammates.testing.object.Student


  public static 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


  @Test
  public void testEditFeedbacks() throws Exception {

    // student login
    Student s = sc.students.get(0);
    studentLogin(s.email, s.password);

    // Click Evaluation Tab
    waitAndClick(By.className("t_evaluations"));
View Full Code Here

    bi.studentClickEvaluationViewResults(scn.course.courseId, scn.evaluation.name);
    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)) {
        bi.justWait();
        assertTrue(bi.studentGetFeedbackFromOthers(teammate.email, student.email));
      }
    }
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

 
  @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);//TODO: remove magic number - first evaluation
      studentViewResultPoints(1, i);//TODO: remove magic number - 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

  }

  public static 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

  @Test
  public void testEditFeedbacks() throws Exception {

    // student login
    Student s = sc.students.get(0);
    studentLogin(s.email, s.password);

    waitAndClickAndCheck(By.className("t_evaluations"), By.id("editEvaluation0"));

    // click [Edit] first evaluation (OPEN):
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

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.