public void a09_View_General_Course_Details_26365() { CommonSection.Logout(); LoginPage.LoginAs("").WithPassword("").Login(); #region Create a general course CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC26365"); AdminContentDetailsPage.CourseInformation.ClickEditButton(); CourseInformationPage.CourseProvider.Select("Meridian"); CourseInformationPage.EnterDuration("5"); CourseInformationPage.clickSave(); ContentDetailsPage.PromotionalVideo.Click_Edit(); PromotionalVideoPage.AddNewURL("//www.youtube.com/embed/Fc1P-AEaEp8"); PromotionalVideoPage.Click_SaveButton(); DocumentPage.ClickButton_CheckIn(); _test.Log(Status.Info, "A new Genaral Course with access approver Created"); #endregion CommonSection.SearchCatalog(GeneralCourseTitle + "_TC26365"); _test.Log(Status.Info, "Searched created Genaral Course"); SearchResultsPage.ClickCourseTitle(GeneralCourseTitle + "_TC26365"); _test.Log(Status.Info, "Click on Genaral Course title"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(GeneralCourseTitle + "_TC26365")); _test.Log(Status.Pass, "Verify Content title is display on Banner"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay()); _test.Log(Status.Pass, "Verify Content type is display on Banner"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isDescriptionDisplay()); Assert.IsTrue(ContentDetailsPage.OverviewTab.isCourseProviderDisplay()); Assert.IsTrue(ContentDetailsPage.OverviewTab.isDurationDisplay()); // Assert.IsTrue(ContentDetailsPage.VerifyPromotionalVideo()); //Verify the Promotional Video is displayed _test.Log(Status.Pass, "Verified Promotional Video display in content details page"); }
public void tc_35372_Learner_Plays_Promotional_Videos_From_Document() { // CommonSection.Logout(); // LoginPage.LoginAs("").WithPassword("").Login(); //Login as regular user (Learner) CommonSection.CreteNewDocuemnt(DocumentTitle + "TC35372"); _test.Log(Status.Info, "Create A new Document"); Assert.IsTrue(ContentDetailsPage.Accordians.isPromotionalVideoPresent()); _test.Log(Status.Info, "Verify Promotional Video accordian display on RHS side"); ContentDetailsPage.Accordians.PromotionalVideo.Click_Edit(); _test.Log(Status.Info, "Click Promotional Video Edit button"); Assert.IsTrue(PromotionalVideoPage.VerifyCompenets("ULR", "Preview", "Save")); _test.Log(Status.Info, "Verify Add URL, preview section and save button are displaying in Promotional Video Page"); PromotionalVideoPage.AddNewURL(PromoURL); ////www.youtube.com/embed/Fc1P-AEaEp8 _test.Log(Status.Info, "Add a URl"); Assert.IsTrue(PromotionalVideoPage.isVideoPreviewDisplay()); _test.Log(Status.Info, "Verify video is added and preview display"); PromotionalVideoPage.Click_SaveButton(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(Driver.comparePartialString("The changes were saved.", PromotionalVideoPage.getSuccessfulmessage())); _test.Log(Status.Info, "Verify Successful message"); PromotionalVideoPage.Click_BackButton(); _test.Log(Status.Info, "Click on Course title bread crumb"); Assert.IsTrue(ContentDetailsPage.Accordians.PromotionalVideo.isVedioPreviewDisplay()); _test.Log(Status.Info, "Verify Promotional Video preview on content details page"); CommonSection.SearchCatalog('"' + DocumentTitle + "TC35372" + '"'); // Search for Bundle that has Promotional Video _test.Log(Status.Info, "Searched" + DocumentTitle + "TC35372" + "from Catalog"); SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC35372"); // Click on Bundle Title _test.Log(Status.Info, "Clicked searched course title"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isPromotionalVideodisplay()); //Verify the Promotional Video is displayed _test.Log(Status.Pass, "Verified Promotional Video display in content details page overview tab"); }
public void tc_59840_AICC_Overview_Tab_Learner_finds_What_is_content_About() { Scorm12 CreateScorm = new Scorm12(driver); CommonSection.CreateLink.AICC(); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.au", By.Id("ctl00_MainContent_UC1_rau_aufile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.crs", By.Id("ctl00_MainContent_UC1_rau_crsfile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.cst", By.Id("ctl00_MainContent_UC1_rau_cstfile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.des", By.Id("ctl00_MainContent_UC1_rau_desfile0")); CreateScorm.buttoncreateclick(driver, true); _test.Log(Status.Info, "AICC files are uploaded"); CreateAICCPage.Title(AICCCourseTitle + "TC59840"); EditSummaryPage.ClickSavebutton(); _test.Log(Status.Info, "Create a new AICC Course"); Assert.IsTrue(ContentDetailsPage.IsContentCreated()); _test.Log(Status.Pass, "Verify New Document is Created"); AdminContentDetailsPage.CourseInformation.ClickEditButton(); CourseInformationPage.CourseProvider.Select("Meridian"); CourseInformationPage.EnterDuration("5"); CourseInformationPage.clickSave(); AdminContentDetailsPage.AddCost(); ContentDetailsPage.ClickEditContent_New19_2(); ContentDetailsPage.CreditTypeAccordian.ClickManage(); NewCreditTypePage.AddDefaultCreditValue("5"); ContentDetailsPage.PromotionalVideo.Click_Edit(); PromotionalVideoPage.AddNewURL("//www.youtube.com/embed/Fc1P-AEaEp8"); PromotionalVideoPage.Click_SaveButton(); DocumentPage.ClickButton_CheckIn(); _test.Log(Status.Info, "Aicc course checked in"); CommonSection.SearchCatalog(AICCCourseTitle + "TC59840"); SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC59840"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(AICCCourseTitle + "TC59840")); Assert.IsTrue(ContentDetailsPage.OverviewTab.isDescriptionDisplay()); //AC1 Assert.IsTrue(ContentDetailsPage.OverviewTab.isCourseProviderDisplay()); //AC3 Assert.IsTrue(ContentDetailsPage.OverviewTab.isDurationDisplay()); //AC2 Assert.IsTrue(ContentDetailsPage.OverviewTab.CreditPortlet.isCreditScoreDisplay() >= 0); Assert.IsTrue(ContentDetailsPage.OverviewTab.isPromotionalVideodisplay()); //Verify the Promotional Video is displayed _test.Log(Status.Pass, "Verified Promotional Video display in content details page overview tab"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay()); }
[Test, Order(12)]//"Dolly's General Course w/ promotional video_12172018" public void a12_Learner_Plays_Promotional_Videos_From_General_Course_35375() { CommonSection.CreateLink.GeneralCourse(); _test.Log(Status.Info, "Goto Content Creation Page"); GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC35375", generalcoursetitle + "TC35375"); _test.Log(Status.Info, "A new Genaral Course Created"); Assert.IsTrue(ContentDetailsPage.Accordians.isPromotionalVideoPresent()); _test.Log(Status.Info, "Verify Promotional Video accordian display on RHS side"); ContentDetailsPage.Accordians.PromotionalVideo.Click_Edit(); _test.Log(Status.Info, "Click Promotional Video Edit button"); Assert.IsTrue(PromotionalVideoPage.VerifyCompenets("ULR", "Preview", "Save")); _test.Log(Status.Info, "Verify Add URL, preview section and save button are displaying in Promotional Video Page"); PromotionalVideoPage.AddNewURL(PromoURL); ////www.youtube.com/embed/Fc1P-AEaEp8 _test.Log(Status.Info, "Add a URl"); Assert.IsTrue(PromotionalVideoPage.isVideoPreviewDisplay()); _test.Log(Status.Info, "Verify video is added and preview display"); PromotionalVideoPage.Click_SaveButton(); _test.Log(Status.Info, "Click Save button"); PromotionalVideoPage.Click_BackButton(); _test.Log(Status.Info, "Click on Course title bread crumb"); Assert.IsTrue(ContentDetailsPage.Accordians.PromotionalVideo.isVedioPreviewDisplay()); _test.Log(Status.Info, "Verify Promotional Video preview on content details page"); ContentDetailsPage.ClickCheckInbutton(); CommonSection.Logout(); LoginPage.LoginAs("srlearner103").WithPassword("").Login(); //Login as regular user (Learner) CommonSection.SearchCatalog('"' + generalcoursetitle + "TC35375" + '"'); // Search for Bundle that has Promotional Video _test.Log(Status.Info, "Searched" + generalcoursetitle + "TC35375" + "from Catalog"); SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC35375"); // Click on Bundle Title _test.Log(Status.Info, "Clicked searched course title"); //Assert.IsTrue(ContentDetailsPage.VerifyPromotionalVideo()); //Verify the Promotional Video is displayed //_test.Log(Status.Pass, "Verified Promotional Video display in content details page"); //ContentDetailsPage.PromotionalVideo.ClickPlayButton(); //Click on Play button on Promotional Video //_test.Log(Status.Info, "Clicked Play button of Promotional video"); //Assert.IsTrue(ContentDetailsPage.PromotionalVideo.VerifyPlaysInline()); //Verify the promotional Video plays Inline on the Page //_test.Log(Status.Pass, "Verified Promotional Video is playing in Inline mode"); //Assert.IsTrue(ContentDetailsPage.PromotionalVideo.isFullScreenIconisdisabled()); //Verify the promotional Video plays on full screen //_test.Log(Status.Pass, "Verifyed the promotional Video plays on inline onle"); }
public void tc_55330_Learner_plays_a_Promotional_Video_from_Bundle() { CommonSection.CreateLink.Bundle(); CreatebundlePage.CreateBundle("Progress", bunbdleTitle + "TC55330", "Bundle Price"); Assert.IsTrue(ContentDetailsPage.Accordians.isPromotionalVideoPresent()); _test.Log(Status.Info, "Verify Promotional Video accordian display on RHS side"); ContentDetailsPage.Accordians.PromotionalVideo.Click_Edit(); _test.Log(Status.Info, "Click Promotional Video Edit button"); Assert.IsTrue(PromotionalVideoPage.VerifyCompenets("ULR", "Preview", "Save")); _test.Log(Status.Info, "Verify Add URL, preview section and save button are displaying in Promotional Video Page"); PromotionalVideoPage.AddNewURL(PromoURL); ////www.youtube.com/embed/Fc1P-AEaEp8 _test.Log(Status.Info, "Add a URl"); Assert.IsTrue(PromotionalVideoPage.isVideoPreviewDisplay()); _test.Log(Status.Info, "Verify video is added and preview display"); PromotionalVideoPage.Click_SaveButton(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(Driver.comparePartialString("The changes were saved.", PromotionalVideoPage.getSuccessfulmessage())); _test.Log(Status.Info, "Verify Successful message"); PromotionalVideoPage.Click_BackButton(); DocumentPage.ClickButton_CheckIn(); CommonSection.Logout(); LoginPage.LoginAs("ak_learner").WithPassword("").Login(); CommonSection.SearchCatalog(bunbdleTitle + "TC55330"); // Search for Bundle that has Promotional Video _test.Log(Status.Info, "Searched" + bunbdleTitle + "TC55330" + "from Catalog"); SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC55330"); // Click on Bundle Title _test.Log(Status.Info, "Clicked searched course title"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isPromotionalVideodisplay()); // Assert.IsTrue(ContentDetailsPage.VerifyPromotionalVideo()); //Verify the Promotional Video is displayed _test.Log(Status.Pass, "Verified Promotional Video display in content details page"); //ContentDetailsPage.PromotionalVideo.ClickPlayButton(); //Click on Play button on Promotional Video //_test.Log(Status.Info, "Clicked Play button of Promotional video"); //Assert.IsTrue(ContentDetailsPage.PromotionalVideo.VerifyPlaysInline()); //Verify the promotional Video plays Inline on the Page //_test.Log(Status.Pass, "Verified Promotional Video is playing in Inline mode"); //Assert.IsTrue(ContentDetailsPage.PromotionalVideo.isFullScreenIconisdisabled()); }
[Test, Order(16)]//"Dolly's Scorm 1.2 Course w/ Image and Promo Video_12182018" public void a20_Learner_Plays_Promotional_Videos_From_Scorm_Course_35376() { CommonSection.Logout(); LoginPage.LoginAs("").WithPassword("").Login(); //Login as regular user (Learner) CommonSection.CreteNewScorm(scormtitle + "TC35358"); _test.Log(Status.Info, "Create A new SCROM Course"); Assert.IsTrue(ContentDetailsPage.Accordians.isPromotionalVideoPresent()); _test.Log(Status.Info, "Verify Promotional Video accordian display on RHS side"); ContentDetailsPage.Accordians.PromotionalVideo.Click_Edit(); _test.Log(Status.Info, "Click Promotional Video Edit button"); PromotionalVideoPage.AddNewURL(PromoURL); ////www.youtube.com/embed/Fc1P-AEaEp8 _test.Log(Status.Info, "Add a URl"); Assert.IsTrue(PromotionalVideoPage.isVideoPreviewDisplay()); _test.Log(Status.Info, "Verify video is added and preview display"); PromotionalVideoPage.Click_SaveButton(); _test.Log(Status.Info, "Click Save button"); DocumentPage.ClickButton_CheckIn(); CommonSection.Logout(); LoginPage.LoginAs("ak_learner").WithPassword("").Login(); //Login as regular user (Learner) CommonSection.SearchCatalog('"' + scormtitle + "TC35358" + '"'); // Search for Bundle that has Promotional Video _test.Log(Status.Info, "Searched" + scormtitle + "TC35358" + "from Catalog"); SearchResultsPage.ClickCourseTitle(scormtitle + "TC35358"); // Click on Bundle Title _test.Log(Status.Info, "Clicked searched course title"); //Assert.IsTrue(ContentDetailsPage.VerifyPromotionalVideo()); //Verify the Promotional Video is displayed //_test.Log(Status.Pass, "Verified Promotional Video display in content details page"); //ContentDetailsPage.PromotionalVideo.ClickPlayButton(); //Click on Play button on Promotional Video //_test.Log(Status.Info, "Clicked Play button of Promotional video"); //Assert.IsTrue(ContentDetailsPage.PromotionalVideo.VerifyPlaysInline()); //Verify the promotional Video plays Inline on the Page //_test.Log(Status.Pass, "Verified Promotional Video is playing in Inline mode"); //Assert.IsTrue(ContentDetailsPage.PromotionalVideo.isFullScreenIconisdisabled()); //Click on Full Screen Icon }
public void P20_1_A01_User_Can_See_Overview_Tab_of_CurriculumDetailPage_26367() { #region Create a Curriculum and Add Promotional Video CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC26367"); _test.Log(Status.Info, "Create A new Curriculum"); ContentDetailsPage.Accordians.PromotionalVideo.Click_Edit(); _test.Log(Status.Info, "Click Promotional Video Edit button"); PromotionalVideoPage.AddNewURL(PromoURL); ////www.youtube.com/embed/Fc1P-AEaEp8 _test.Log(Status.Info, "Add a URl"); PromotionalVideoPage.Click_SaveButton(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(Driver.comparePartialString("The changes were saved.", PromotionalVideoPage.getSuccessfulmessage())); _test.Log(Status.Info, "Verify Successful message"); PromotionalVideoPage.Click_BackButton(); _test.Log(Status.Info, "Click on Course title bread crumb"); #endregion #region Add Cost GeneralCoursePage.setCost("2"); #endregion #region Add Prerequisite ContentDetailsPage.Accordians.ClickEdit_Prerequisites(); _test.Log(Status.Info, "Click on Prerequisities Accordian Edit button"); Assert.IsTrue(PrerequisitesPage.isSearchFiledsdisplay()); _test.Log(Status.Pass, "Verify Search fields are display in Prerequisites page"); PrerequisitesPage.ClickAddPrerequisites(); _test.Log(Status.Info, "Click on ADD Prerequisities Button"); Assert.IsTrue(AddPrerequisitesPage.IsSearchfieldsDisplayed()); _test.Log(Status.Info, "Verify Search for, Search Type, Type, User Search, Add button, Back button display"); AddPrerequisitesPage.SearchFor(""); _test.Log(Status.Info, "Click Search Button, Select One record and click add button"); Assert.IsTrue(PrerequisitesPage.isPrerequisitesadded()); _test.Log(Status.Pass, "Verify Prerequisites are added to Curriculumn"); AddPrerequisitesPage.ClickBackButton(); Assert.IsTrue(ContentDetailsPage.Accordians.VerifyanyPrerequisitesPresent()); _test.Log(Status.Info, "Verify any Prerequisities content display in Accordian"); #endregion #region Add Equivalancies ContentDetailsPage.Accordians.ClickEdit_Equivalencies(); _test.Log(Status.Info, "Click on Prerequisities Accordian Edit button"); Assert.IsTrue(EquivalenciesPage.isSearchFiledsdisplay()); _test.Log(Status.Pass, "Verify Search fields are display in Equivalencies page"); EquivalenciesPage.ClickAddEquivalencies(); _test.Log(Status.Info, "Click on ADD Equivalencies Button"); Assert.IsTrue(AddEquivalenciesPage.IsSearchfieldsDisplayed()); _test.Log(Status.Info, "Verify Search for, Search Type, Type, User Search, Add button, Back button display"); AddEquivalenciesPage.SearchFor("").ClickAddbutton(); _test.Log(Status.Info, "Click Search Button, Select One record and click add button"); Assert.IsTrue(EquivalenciesPage.isEquivalenciesadded()); _test.Log(Status.Pass, "Verify Equivalencies are added to Curriculumn"); #endregion GeneralCoursePage.ClickCheckIn(); CommonSection.SearchCatalog(curriculamtitle + "_TC26367"); _test.Log(Status.Info, "Enter curriculum title in global search box"); SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC26367"); _test.Log(Status.Info, "Click on search result from catalog"); Assert.IsTrue(ContentDetailsPage.VerifyCurriculumDetailPage(curriculamtitle + "_TC26367")); _test.Log(Status.Info, "Assertion Pass as per Curriculum Detail Page New UI"); TC26963 = true; TC27167 = true; }