Beispiel #1
0
 public void tc_58378_As_an_Admin_Include_evaluation_in_certification_content()
 {
     CommonSection.CreateLink.Certifications();
     _test.Log(Status.Info, "Click create>certification");
     CertificationPage.FillTitle(CertificatrTitle + "TC58378");
     _test.Log(Status.Info, "Fill title");
     CertificationPage.ClickCreateCertification();
     _test.Log(Status.Info, "Click create");
     ContentDetailsPage.ClickEditCertificationContent();
     EditCertificateContentsPage.ClickAddContent();
     AddContentToCertificationPage.ClickSeemoresearchcriteriaLink();
     AddContentToCertificationPage.SearchType.ClickType();
     Assert.IsTrue(AddContentToCertificationPage.SearchType.Type.isEvaluationdisplay());
     _test.Log(Status.Pass, "Verify is Evaluation display in Type list");
     AddContentToCertificationPage.SearchType.Type.SelectType("Evaluation");
     AddContentToCertificationPage.ClickSearchbutton();
     Assert.IsTrue(AddContentToCertificationPage.ResultGrid.isContentTypeDisplay("Evaluation"));
     _test.Log(Status.Pass, "Verify Evaluation recoreds are searched");
     AddContentToCertificationPage.ResultGrid.Selectfirstrecord();
     AddContentToCertificationPage.clickAddButton();
     Assert.IsTrue(AddContentToCertificationPage.getFeedbackMessage());
     _test.Log(Status.Pass, "Verify Content added feedback message on page");
     AddContentToCertificationPage.clickBackButton();
     Assert.IsTrue(EditCertificateContentsPage.addedContent.isEvaluationAdded());
     _test.Log(Status.Pass, "Verify Evaluation added to certification content");
 }