public void P20_1_tc_57035_Bundle_Access_Key() { #region Create a general course CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57035"); DocumentPage.ClickButton_CheckIn(); #endregion CommonSection.CreateLink.Bundle(); _test.Log(Status.Info, "Click create>Subscriptions"); CreatebundlePage.CreateBundle("Content Bundle", bunbdleTitle + "TC57035", "Bundle Price"); _test.Log(Status.Info, "Create a new Content Bundle"); AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57035"); AdminContentDetailsPage.AddCost(); ContentDetailsPage.ClickEditContent_New19_2(); ContentDetailsPage.Accordians.ClickEdit_AccessKey(); AccessKeysPage.EnableAccessKey("Yes").Save(); DocumentPage.ClickButton_CheckIn(); //Driver.CreateNewAccount(); // _test.Log(Status.Info, "Create new user account"); LoginPage.LoginAs("srlearner105").WithPassword("").Login(); CommonSection.SearchCatalog(bunbdleTitle + "TC57035"); SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57035"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay()); ContentDetailsPage.OverviewTab.click_AddtoCart(); CommonSection.Completepurchage(bunbdleTitle + "TC57035"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isStartbuttonDisplay()); ContentDetailsPage.ContentBanner.Click_Startbutton(); Assert.IsTrue(ContentDetailsPage.isContentTabSelected()); Assert.IsTrue(ContentDetailsPage.isHistoryTabDisplay_GeneralCourse()); ContentDetailsPage.Click_HistoryTab_Curriculum(); Assert.IsTrue(ContentDetailsPage.HistoryTab.VerifyEnrolledinSectionwithAccessKey()); TC57459_2 = true; }
public void P20_1_tc_57032_Bundles_Continue_In_progress_Item() { #region Create a general course CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57032"); DocumentPage.ClickButton_CheckIn(); CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57032_1"); DocumentPage.ClickButton_CheckIn(); #endregion CommonSection.CreateLink.Bundle(); _test.Log(Status.Info, "Click create>Bundle"); CreatebundlePage.CreateBundle("Progress Bundle", bunbdleTitle + "TC57032", "Bundle Price"); _test.Log(Status.Info, "Create a new Content Bundle"); AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57032"); AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57032_1"); ContentDetailsPage.ClickCheckInbutton(); CommonSection.SearchCatalog('"' + bunbdleTitle + "TC57027" + '"'); _test.Log(Status.Info, "Search created scrom from Catalog"); SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57027"); _test.Log(Status.Info, "Click searched scrom course title"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isStartbuttonDisplay()); ContentDetailsPage.ContentBanner.Click_Startbutton(); Assert.IsTrue(ContentDetailsPage.ContentTab.RequiredContent.isContentStartdisplay(GeneralCourseTitle + "_TC57032")); ContentDetailsPage.ContentTab.RequiredContent.ClickContentEnroll(GeneralCourseTitle + "_TC57032"); ContentDetailsPage.ContentTab.RequiredContent.CompleteBundleContent(); Assert.IsTrue(ContentDetailsPage.ContentTab.RequiredContent.isContentRetakeisplay(GeneralCourseTitle + "_TC57032")); Assert.IsTrue(ContentDetailsPage.ContentBanner.ContentProgress() == "50%"); TC57859 = true; }
public void P20_1_tc_57027_Bundles_Request_Access() { CommonSection.Logout(); LoginPage.LoginAs("").WithPassword("").Login(); #region Create a general course CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57027"); DocumentPage.ClickButton_CheckIn(); #endregion CommonSection.CreateLink.Bundle(); _test.Log(Status.Info, "Click create>Subscriptions"); CreatebundlePage.CreateBundle("Content Bundle", bunbdleTitle + "TC57027", "Bundle Price"); _test.Log(Status.Info, "Create a new Content Bundle"); AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57027"); ContentDetailsPage.ClickCheckInbutton(); Assert.IsTrue(ContentDetailsPage.isAccessApprovalAcordianDisplay()); _test.Log(Status.Pass, "Verify Access Approval Acordian Display"); ContentDetailsPage.Accordians.ClickEdit_AccessApproval(); Assert.IsTrue(AccessApprovalPage.verifyFields()); _test.Log(Status.Pass, "Verify Approval required, Search for options are available on page"); AccessApprovalPage.AssignApproverPath(); _test.Log(Status.Info, "Asign Approver path to content"); StringAssert.AreEqualIgnoringCase("The approval path is now associated with the content.", ContentDetailsPage.VerifyFeedbackMessage()); _test.Log(Status.Pass, "Verify feedback message"); ContentDetailsPage.Click_Check_in(); _test.Log(Status.Info, "Click check in button"); CommonSection.SearchCatalog('"' + bunbdleTitle + "TC57027" + '"'); _test.Log(Status.Info, "Search created scrom from Catalog"); SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57027"); _test.Log(Status.Info, "Click searched scrom course title"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay()); _test.Log(Status.Pass, "Verify is Request Access button display in content details page"); ContentDetailsPage.AccessApprovalModal.SubmitRequestAccess("ForTest"); _test.Log(Status.Info, "Submit Request Access"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isCancleRequestbuttonDisplay()); _test.Log(Status.Pass, "Verify is Cancle Request Access button display"); ContentDetailsPage.AccessApprovalModal.SubmitCancelRequestAccess("ForTest"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay()); TC57028 = true; }
public void P20_1_tc_57033_Bundle_Access_period() { #region Create a general course CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57035"); DocumentPage.ClickButton_CheckIn(); #endregion CommonSection.CreateLink.Bundle(); _test.Log(Status.Info, "Click create>bundle"); CreatebundlePage.CreateBundle("Progress Bundle", bunbdleTitle + "TC57035", "Bundle Price"); _test.Log(Status.Info, "Create a new Content Bundle"); AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57035"); ContentDetailsPage.Edit_AddAccessPeriod("10"); DocumentPage.ClickButton_CheckIn(); CommonSection.SearchCatalog(bunbdleTitle + "TC57035"); SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57035"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isStartbuttonDisplay()); Assert.IsTrue(ContentDetailsPage.ContentBanner.isAccessperiodflag()); ContentDetailsPage.ContentBanner.Click_Startbutton(); Assert.IsTrue(ContentDetailsPage.ContentBanner.isAccessperiodflag()); Assert.IsTrue(ContentDetailsPage.ContentBanner.isAccessperiodflagMessage("Your access to this content item ends")); }
public void P20_1_tc_57756_Bundle_User_access_Bundle_Item_with_prerequisite() { #region Create a general course CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57756_Pre"); DocumentPage.ClickButton_CheckIn(); #endregion #region Create a general course CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57756_Content"); DocumentPage.ClickButton_CheckIn(); #endregion CommonSection.CreateLink.Bundle(); CreatebundlePage.CreateBundle("Progress", bunbdleTitle + "TC57756", "Bundle Price"); AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57756_Content"); AdminContentDetailsPage.AddPrequisites(GeneralCourseTitle + "_TC57756_Pre"); DocumentPage.ClickButton_CheckIn(); CommonSection.SearchCatalog(bunbdleTitle + "TC57756"); SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57756"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay()); TC57009_1 = true; }
public void tc_55429_As_a_learner_I_want_to_see_what_surveys_are_required_and_when_they_are_available_Bundle_Content() { #region Create a general course CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC55429"); DocumentPage.ClickButton_CheckIn(); #endregion CommonSection.CreateLink.Bundle(); _test.Log(Status.Info, "Click create>Subscriptions"); CreatebundlePage.CreateBundle("Content Bundle", bunbdleTitle + "TC55429", "Bundle Price"); _test.Log(Status.Info, "Create a new Content Bundle"); Assert.IsTrue(ContentDetailsPage.isSurveyAccordiandisplayed()); _test.Log(Status.Info, "Verify Survey accordian display on RHS side"); ContentDetailsPage.Accordians.ClickManage_Survey(); _test.Log(Status.Info, "Click Survey Manage button"); Assert.IsTrue(SurveysPage.IsSurveyPageCompenetsarepresent("btn_AssignSurverbtn", "resultgrid")); _test.Log(Status.Info, "Verify Survey page has Assign Surveys button and result grid has no record"); SurveysPage.ClickAssignSurveysnew(); _test.Log(Status.Info, "Click on Assign Surveys Button"); Assert.IsTrue(SurveysPage.AddSurveyModal.IsSearchfieldsDisplayed()); _test.Log(Status.Pass, "Verify Search, Result grid, Add button on Add survey Modal"); SurveysPage.AddSurveyModal.AddSurveystoContent("Before Course Start"); _test.Log(Status.Info, "Search Survey and add one survey to content"); string AddedsurveyTitle = SurveysPage.AddedSurveysTtile(); Assert.IsTrue(SurveysPage.resultgrid.isrequiredisdisabled()); _test.Log(Status.Info, "Verify surveys are not required for Content Bundle"); SurveysPage.Click_backbutton(); AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC55429"); //ContentDetailsPage.ClickCheckInbutton(); ContentDetailsPage.Accordians.ClickEdit_Image(); Assert.IsTrue(ImagePage.verifyrequiredatributesdisplay()); _test.Log(Status.Pass, "Verify File path, Browse Button, Save button are display"); ImagePage.UploadnewImageFile(); _test.Log(Status.Info, "Upload any Image file to content"); DocumentPage.ClickButton_CheckIn(); CommonSection.SearchCatalog(bunbdleTitle + "TC55429"); SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC55429"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentImagedisplay()); //57025 Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(bunbdleTitle + "TC55429")); //57025 Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay()); //57025 Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysareNotavailable); TC57009 = true; ContentDetailsPage.ContentBanner.Click_Startbutton(); ContentDetailsPage.Click_OverviewTab(); Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable(AddedsurveyTitle)); Assert.IsFalse(ContentDetailsPage.ContentBanner.isContentProgressbarDisplay()); //57025 TC57025 = true; ContentDetailsPage.Click_ContentTab(); ContentDetailsPage.ContentTab.RequiredContent.ClickContentEnroll(generalcoursetitle + "TC55429"); ContentDetailsPage.ContentTab.RequiredContent.ClickContentStart(generalcoursetitle + "TC55429"); ContentDetailsPage.ContentTab.RequiredContent.CompleteBundleContent(); ContentDetailsPage.Click_OverviewTab(); ContentDetailsPage.SurveyPortlet.ClickonattachedSurvey("Before Course Start"); _test.Log(Status.Info, "Click Attached Survey"); ContentDetailsPage.SurveyPortlet.CompleteSurvey("Before Course Start"); _test.Log(Status.Info, "Complete Survey"); // Assert.IsTrue(ContentDetailsPage.ContentBanner.isViewCertificationButtonDisplay()); // ContentDetailsPage.ContentBanner.clickViewCertificateButton(); // Assert.IsTrue(ContentDetailsPage.isCertificateDisplayed()); //_test.Log(Status.Pass, "Verify certificate Page is displayed"); //Driver.focusParentWindow(); TC55384 = true; TC57459_1 = true; }