Program: 69466
Project: 69466
Buggy source:
/** 
 * An author create a course, set up the root node to make efficiency statement, add a test, publish it and add a participant. It set the certificate.<br> The participant logs in, make the test and look at its wonderful certificate and the details of its performance.
 * @param authorLoginPage
 * @param reiBrowser
 * @throws IOException
 * @throws URISyntaxException
 */
@Test @RunAsClient public void certificatesGeneratedByTest(@InitialPage LoginPage authorLoginPage,@Drone @User WebDriver reiBrowser) throws IOException, URISyntaxException {
  screenshotTestRule.setBrowsers(browser,reiBrowser);
  UserVO author=new UserRestClient(deploymentUrl).createAuthor();
  UserVO rei=new UserRestClient(deploymentUrl).createRandomUser("String_Node_Str");
  URL testUrl=ArquillianDeployments.class.getResource("String_Node_Str");
  String testTitle="String_Node_Str" + UUID.randomUUID();
  new RepositoryRestClient(deploymentUrl,author).deployResource(new File(testUrl.toURI()),"String_Node_Str",testTitle);
  authorLoginPage.loginAs(author.getLogin(),author.getPassword());
  String courseTitle="String_Node_Str" + UUID.randomUUID();
  navBar.openAuthoringEnvironment().createCourse(courseTitle).clickToolbarBack();
  String testNodeTitle="String_Node_Str";
  CoursePageFragment courseRuntime=CoursePageFragment.getCourse(browser);
  courseRuntime.edit().createNode("String_Node_Str").nodeTitle(testNodeTitle).selectTabLearnContent().chooseTest(testTitle).selectRoot().selectTabScore().enableRootScoreByNodes().autoPublish().accessConfiguration().setUserAccess(UserAccess.registred).clickToolbarBack();
  MembersPage members=courseRuntime.members();
  members.addMember().searchMember(rei,true).next().next().next().finish();
  courseRuntime=members.clickToolbarBack().efficiencyStatementConfiguration().enableCertificates(true).enableRecertification().save().clickToolbarBack();
  LoginPage reiLoginPage=LoginPage.getLoginPage(reiBrowser,deploymentUrl);
  reiLoginPage.loginAs(rei.getLogin(),rei.getPassword()).resume();
  NavigationPage reiNavBar=new NavigationPage(reiBrowser);
  reiNavBar.openMyCourses().select(courseTitle);
  CoursePageFragment reiTestCourse=new CoursePageFragment(reiBrowser);
  reiTestCourse.clickTree().selectWithTitle(testNodeTitle);
  QTI12Page.getQTI12Page(reiBrowser).passE4(rei);
  UserToolsPage reiUserTools=new UserToolsPage(reiBrowser);
  reiUserTools.openUserToolsMenu().openMyEfficiencyStatement().assertOnEfficiencyStatmentPage().assertOnCertificateAndStatements(courseTitle).selectStatement(courseTitle).selectStatementSegment().assertOnCourseDetails(testNodeTitle,true);
}

Fixed version (ground truth):
/** 
 * An author create a course, set up the root node to make efficiency statement, add a test, publish it and add a participant. It set the certificate.<br> The participant logs in, make the test and look at its wonderful certificate and the details of its performance.
 * @param authorLoginPage
 * @param reiBrowser
 * @throws IOException
 * @throws URISyntaxException
 */
@Test @RunAsClient public void certificatesGeneratedByTest(@InitialPage LoginPage authorLoginPage,@Drone @User WebDriver reiBrowser) throws IOException, URISyntaxException {
  UserVO author=new UserRestClient(deploymentUrl).createAuthor();
  UserVO rei=new UserRestClient(deploymentUrl).createRandomUser("String_Node_Str");
  URL testUrl=ArquillianDeployments.class.getResource("String_Node_Str");
  String testTitle="String_Node_Str" + UUID.randomUUID();
  new RepositoryRestClient(deploymentUrl,author).deployResource(new File(testUrl.toURI()),"String_Node_Str",testTitle);
  authorLoginPage.loginAs(author.getLogin(),author.getPassword());
  String courseTitle="String_Node_Str" + UUID.randomUUID();
  navBar.openAuthoringEnvironment().createCourse(courseTitle).clickToolbarBack();
  String testNodeTitle="String_Node_Str";
  CoursePageFragment courseRuntime=CoursePageFragment.getCourse(browser);
  courseRuntime.edit().createNode("String_Node_Str").nodeTitle(testNodeTitle).selectTabLearnContent().chooseTest(testTitle).selectRoot().selectTabScore().enableRootScoreByNodes().autoPublish().accessConfiguration().setUserAccess(UserAccess.registred).clickToolbarBack();
  MembersPage members=courseRuntime.members();
  members.addMember().searchMember(rei,true).next().next().next().finish();
  courseRuntime=members.clickToolbarBack().efficiencyStatementConfiguration().enableCertificates(true).enableRecertification().save().clickToolbarBack();
  LoginPage reiLoginPage=LoginPage.getLoginPage(reiBrowser,deploymentUrl);
  reiLoginPage.loginAs(rei.getLogin(),rei.getPassword()).resume();
  NavigationPage reiNavBar=new NavigationPage(reiBrowser);
  reiNavBar.openMyCourses().select(courseTitle);
  CoursePageFragment reiTestCourse=new CoursePageFragment(reiBrowser);
  reiTestCourse.clickTree().selectWithTitle(testNodeTitle);
  QTI12Page.getQTI12Page(reiBrowser).passE4(rei);
  UserToolsPage reiUserTools=new UserToolsPage(reiBrowser);
  reiUserTools.openUserToolsMenu().openMyEfficiencyStatement().assertOnEfficiencyStatmentPage().assertOnCertificateAndStatements(courseTitle).selectStatement(courseTitle).selectStatementSegment().assertOnCourseDetails(testNodeTitle,true);
}