Program: 69465
Project: 69465
Buggy source:
/** 
 * Create an assessment course element, add two users to the course and assesses them with the bulk assessment tool. The 2 users log in and check their results.
 * @param loginPage
 * @param kanuBrowser
 * @param reiBrowser
 * @throws IOException
 * @throws URISyntaxException
 */
@Test @RunAsClient public void bulkAssessment(@InitialPage LoginPage loginPage,@Drone @User WebDriver ryomouBrowser,@Drone @Participant WebDriver kanuBrowser) throws IOException, URISyntaxException {
  screenshotTestRule.setBrowsers(browser,ryomouBrowser,kanuBrowser);
  UserVO author=new UserRestClient(deploymentUrl).createAuthor();
  UserVO ryomou=new UserRestClient(deploymentUrl).createRandomUser("String_Node_Str");
  UserVO kanu=new UserRestClient(deploymentUrl).createRandomUser("String_Node_Str");
  loginPage.loginAs(author.getLogin(),author.getPassword());
  String courseTitle="String_Node_Str" + UUID.randomUUID();
  navBar.openAuthoringEnvironment().createCourse(courseTitle).clickToolbarBack();
  String assessmentNodeTitle="String_Node_Str";
  CourseEditorPageFragment courseEditor=CoursePageFragment.getCourse(browser).edit().createNode("String_Node_Str").nodeTitle(assessmentNodeTitle);
  AssessmentCEConfigurationPage assessmentConfig=new AssessmentCEConfigurationPage(browser);
  assessmentConfig.selectConfiguration().setScoreAuto(0.1f,10.0f,5.0f);
  courseEditor.selectRoot().selectTabScore().enableRootScoreByNodes().autoPublish().accessConfiguration().setUserAccess(UserAccess.registred);
  CoursePageFragment courseRuntime=courseEditor.clickToolbarBack();
  MembersPage members=courseRuntime.members();
  members.importMembers().setMembers(ryomou,kanu).next().next().next().finish();
  BulkAssessmentData[] data=new BulkAssessmentData[]{new BulkAssessmentData(ryomou,8.0f,null,"String_Node_Str"),new BulkAssessmentData(kanu,4.0f,null,"String_Node_Str")};
  members.clickToolbarBack().assessmentTool().bulk().data(data).next().next().next().finish();
  LoginPage ryomouLoginPage=LoginPage.getLoginPage(ryomouBrowser,deploymentUrl);
  ryomouLoginPage.loginAs(ryomou).resume();
  NavigationPage ryomouNavBar=new NavigationPage(ryomouBrowser);
  ryomouNavBar.openMyCourses().select(courseTitle);
  CoursePageFragment ryomouCourse=new CoursePageFragment(ryomouBrowser);
  ryomouCourse.clickTree().selectWithTitle(assessmentNodeTitle);
  LoginPage kanuLoginPage=LoginPage.getLoginPage(kanuBrowser,deploymentUrl);
  kanuLoginPage.loginAs(kanu).resume();
  NavigationPage kanuNavBar=new NavigationPage(kanuBrowser);
  kanuNavBar.openMyCourses().select(courseTitle);
  CoursePageFragment kanuCourse=new CoursePageFragment(kanuBrowser);
  kanuCourse.clickTree().selectWithTitle(assessmentNodeTitle);
  WebElement passedEl=ryomouBrowser.findElement(By.cssSelector("String_Node_Str"));
  Assert.assertTrue(passedEl.isDisplayed());
  WebElement failedEl=kanuBrowser.findElement(By.cssSelector("String_Node_Str"));
  Assert.assertTrue(failedEl.isDisplayed());
}

Fixed version (ground truth):
/** 
 * Create an assessment course element, add two users to the course and assesses them with the bulk assessment tool. The 2 users log in and check their results.
 * @param loginPage
 * @param kanuBrowser
 * @param reiBrowser
 * @throws IOException
 * @throws URISyntaxException
 */
@Test @RunAsClient public void bulkAssessment(@InitialPage LoginPage loginPage,@Drone @User WebDriver ryomouBrowser,@Drone @Participant WebDriver kanuBrowser) throws IOException, URISyntaxException {
  UserVO author=new UserRestClient(deploymentUrl).createAuthor();
  UserVO ryomou=new UserRestClient(deploymentUrl).createRandomUser("String_Node_Str");
  UserVO kanu=new UserRestClient(deploymentUrl).createRandomUser("String_Node_Str");
  loginPage.loginAs(author.getLogin(),author.getPassword());
  String courseTitle="String_Node_Str" + UUID.randomUUID();
  navBar.openAuthoringEnvironment().createCourse(courseTitle).clickToolbarBack();
  String assessmentNodeTitle="String_Node_Str";
  CourseEditorPageFragment courseEditor=CoursePageFragment.getCourse(browser).edit().createNode("String_Node_Str").nodeTitle(assessmentNodeTitle);
  AssessmentCEConfigurationPage assessmentConfig=new AssessmentCEConfigurationPage(browser);
  assessmentConfig.selectConfiguration().setScoreAuto(0.1f,10.0f,5.0f);
  courseEditor.selectRoot().selectTabScore().enableRootScoreByNodes().autoPublish().accessConfiguration().setUserAccess(UserAccess.registred);
  CoursePageFragment courseRuntime=courseEditor.clickToolbarBack();
  MembersPage members=courseRuntime.members();
  members.importMembers().setMembers(ryomou,kanu).next().next().next().finish();
  BulkAssessmentData[] data=new BulkAssessmentData[]{new BulkAssessmentData(ryomou,8.0f,null,"String_Node_Str"),new BulkAssessmentData(kanu,4.0f,null,"String_Node_Str")};
  members.clickToolbarBack().assessmentTool().bulk().data(data).next().next().next().finish();
  LoginPage ryomouLoginPage=LoginPage.getLoginPage(ryomouBrowser,deploymentUrl);
  ryomouLoginPage.loginAs(ryomou).resume();
  NavigationPage ryomouNavBar=new NavigationPage(ryomouBrowser);
  ryomouNavBar.openMyCourses().select(courseTitle);
  CoursePageFragment ryomouCourse=new CoursePageFragment(ryomouBrowser);
  ryomouCourse.clickTree().selectWithTitle(assessmentNodeTitle);
  LoginPage kanuLoginPage=LoginPage.getLoginPage(kanuBrowser,deploymentUrl);
  kanuLoginPage.loginAs(kanu).resume();
  NavigationPage kanuNavBar=new NavigationPage(kanuBrowser);
  kanuNavBar.openMyCourses().select(courseTitle);
  CoursePageFragment kanuCourse=new CoursePageFragment(kanuBrowser);
  kanuCourse.clickTree().selectWithTitle(assessmentNodeTitle);
  WebElement passedEl=ryomouBrowser.findElement(By.cssSelector("String_Node_Str"));
  Assert.assertTrue(passedEl.isDisplayed());
  WebElement failedEl=kanuBrowser.findElement(By.cssSelector("String_Node_Str"));
  Assert.assertTrue(failedEl.isDisplayed());
}