public void P20_1_tc_57850_Curriculum__User_access_Content_Details_page_of_SCORM_from_Curriculum() { CommonSection.CreateLink.SCORM(); Uploadscromecourse.uploadfile(); CretaeSCROM2004Page.Tile(scormtitle + "TC57850"); CretaeSCROM2004Page.clickSaveButton(); _test.Log(Status.Info, "A new SCROM Course Created"); ContentDetailsPage.Click_Check_in(); CommonSection.CreteNewCurriculumn(curriculamtitle + "TC57850"); _test.Log(Status.Info, "Create Curriculum"); ContentDetailsPage.ClickCurriculumContentEditButton(); _test.Log(Status.Info, "Click Edit Content for Curriculum"); ContentDetailsPage.ClickAddCurriculumBlock(); _test.Log(Status.Info, "Click Curriculum content Block"); CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1"); _test.Log(Status.Info, "Add Curriculum Block"); CurriculumContentPage.AddTrainingActivities_UnOrdered(scormtitle + "TC57850"); _test.Log(Status.Info, "Add training Activities"); AdminContentDetailsPage.ClickCheckInbutton(); _test.Log(Status.Info, "Click Check In button"); AdminContentDetailsPage.DropDownToggle.ViewAsLearner(); _test.Log(Status.Info, "Click view as learner"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isInstructionalMessage("Enroll in the Curriculum to get started")); TC56142 = true; ContentDetailsPage.EnrollinCurriculum(); Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumBlock.iscontentdisplay(scormtitle + "TC57850")); ContentDetailsPage.ContentTab.CurriculumBlock.ClickContenttitle(scormtitle + "TC57850"); Assert.IsTrue(Driver.Instance.Url.Contains("contentdetails")); ContentDetailsPage.ClickBreadCrumb(curriculamtitle + "TC57850"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC57850")); }
public void a03_As_an_admin_managing_equivalencies_I_want_to_find_content_to_add_as_a_new_equivalency_for_SCROM_52240() { CommonSection.CreateLink.SCORM(); Uploadscromecourse.uploadfile(); CretaeSCROM2004Page.Tile(scormtitle + "TC52240"); CretaeSCROM2004Page.clickSaveButton(); _test.Log(Status.Info, "A new SCROM Course Created"); ContentDetailsPage.Click_EditEquivalencies(); _test.Log(Status.Info, "Click Edit button for Equivalencies portlet"); Assert.IsTrue(EquivalenciesPage.isExestingEquvalencyContentdisplay("No")); _test.Log(Status.Pass, "Verify is any existing content display"); EquivalenciesPage.ClickAddEquivalencyButton(); _test.Log(Status.Info, "Click Add Equivalency Button"); Assert.IsTrue(EquivalenciesPage.isAddEquvalenciesModalDisplay()); _test.Log(Status.Pass, "Verify is Add Equvalencies Modal display"); Assert.IsTrue(EquivalenciesPage.AddEquvalenciesModal.VerifymodalComponets("Search", "ResultGrid", "InactiveCheckbox", "Cancel", "Add")); _test.Log(Status.Pass, "Verify componets on Modal"); EquivalenciesPage.AddEquvalenciesModal.ClickSearch(); _test.Log(Status.Info, "Performed a blank search"); string EquivalencyName = EquivalenciesPage.AddEquvalenciesModal.FistrecordTitle(); EquivalenciesPage.AddEquvalenciesModal.SelectandAddFirstrecord(); _test.Log(Status.Info, "Select the first record and click add button"); Assert.IsTrue(EquivalenciesPage.isEquivalenciesadded()); _test.Log(Status.Pass, "Verify selected content added as Equivalencies"); Assert.IsTrue(EquivalenciesPage.Resultgrid.isRelationship("2-way")); _test.Log(Status.Pass, "Verify added Equivalencies get 2-way relationship"); DocumentPage.ClickButton_CheckIn(); }
public void tc_57592_As_an_admin_I_want_to_attach_an_Evaluation_for_SCORM_course() { CommonSection.CreateLink.SCORM(); Uploadscromecourse.uploadfile(); CretaeSCROM2004Page.Tile(SCORMTitle + "TC57592"); CretaeSCROM2004Page.clickSaveButton(); _test.Log(Status.Info, "A new SCROM Course Created"); Assert.IsTrue(ContentDetailsPage.isSurveyAccordiandisplayed()); _test.Log(Status.Info, "Verify Survey and Evaluations accordian display on RHS side"); ContentDetailsPage.Accordians.ClickManage_Survey(); _test.Log(Status.Info, "Click Survey Manage button"); Assert.IsTrue(SurveysPage.IsSurveyPageCompenetsarepresent("Add btn", "resultgrid")); _test.Log(Status.Info, "Verify Survey page has Add Surveys button and result grid has no record"); SurveysPage.ClickAssignSurveysnew(); _test.Log(Status.Info, "Click on Assign Surveys Button"); Assert.IsTrue(SurveysPage.isAddSurveyandEvaluationsModalDisplay()); Assert.IsTrue(SurveysPage.AddSurveyModal.IsSearchfieldsDisplayed()); _test.Log(Status.Pass, "Verify Search, Result grid, Add button on Add survey Modal"); SurveysPage.AddSurveyModal.ClickAllTypedropdown(); Assert.IsTrue(SurveysPage.AddSurveyModal.AllTypedropdown.isEvaluationdisplay()); _test.Log(Status.Pass, "Verify Evaluation display in alltype dropdown"); SurveysPage.AddSurveyModal.AllTypedropdown.ClickEvaluations(); SurveysPage.AddSurveyModal.clickSearchicon(); Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isEvaluationsDisplay()); _test.Log(Status.Pass, "Verify Evaluations are display in Result grid"); Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isRequiredChangeble()); _test.Log(Status.Pass, "Verifyis Require is changeable"); Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isAvailableChangeble()); _test.Log(Status.Pass, "Verify Available is changeable"); ContentDetailsPage.DeleteContent(); }