예제 #1
0
 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;
 }
예제 #2
0
        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;
        }
예제 #3
0
        public void P20_1_tc_55430_As_a_learner_I_want_to_see_what_surveys_are_required_and_when_they_are_available_Bundle_Progress()
        {
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC55430");
            DocumentPage.ClickButton_CheckIn();
            #endregion
            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Click create>Bundle");
            CreatebundlePage.CreateBundle("Progress Bundle", bunbdleTitle + "TC55430", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            BundlesPage.addContentIntoBundle(GeneralCourseTitle + "_TC55430");
            _test.Log(Status.Info, "Adding Paid General Course into 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");
            string Surveytitle_OnEnroll = SurveysPage.AddSurveyModal.AddSurveystoContentWithAvailabilityas("When learner enrolls");
            _test.Log(Status.Info, "Search Survey and add one survey to content with availability as When learner enrolls");
            SurveysPage.ClickAssignSurveysnew();
            _test.Log(Status.Info, "Click on Assign Surveys Button");
            string Surveytitle_OnContentComplete = SurveysPage.AddSurveyModal.AddSurveystoContentWithAvailabilityas("When content completed");
            _test.Log(Status.Info, "Search Survey and add one survey to content with availability as When content completed");
            //SurveysPage.Click_backbutton();
            ContentDetailsPage.ClickCheckInbutton();

            CommonSection.SearchCatalog(bunbdleTitle + "TC55430");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC55430");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.SurveyPortlet.IsSurveysDisplay(Surveytitle_OnEnroll, Surveytitle_OnContentComplete));
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysareNotavailable);
            ContentDetailsPage.Click_ReviewTab_GeneralCourse();
            Assert.IsFalse(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay());
            _test.Log(Status.Pass, "Verify Write a Review button is not visibile");
            ContentDetailsPage.ContentBanner.Click_Startbutton();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.ContentProgress() == "0%");
            ContentDetailsPage.Click_ReviewTab_GeneralCourse();
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay());
            ContentDetailsPage.GeneralCourse_ReviewsTab.WriteaReview("Title", "For Testing");
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isReviewlistUpdated("Title"));
            TC57571 = true;
            ContentDetailsPage.ContentBanner.ClickViewContentButton();
            ContentDetailsPage.ContentTab.RequiredContent.ClickContentEnroll(GeneralCourseTitle + "_TC55430");
            ContentDetailsPage.ContentTab.RequiredContent.ClickContentStart(GeneralCourseTitle + "_TC55430");
            ContentDetailsPage.ContentTab.RequiredContent.CompleteBundleContent();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.ContentProgress() == "100%");
            _test.Log(Status.Pass, "Verify content progress display 100% completed");
            TC57313   = true;
            TC57025_1 = true;
            TC27105   = true;
            ContentDetailsPage.Click_OverviewTab();
            Assert.IsTrue(ContentDetailsPage.OverviewTab.SurveyPortlet.IsSurveysAvailable(Surveytitle_OnEnroll));
            Assert.IsTrue(ContentDetailsPage.OverviewTab.SurveyPortlet.IsSurveysAvailable(Surveytitle_OnContentComplete));
        }
예제 #4
0
        public void tc_55407_As_a_learner_I_want_to_see_display_format_and_corresponding_Icon_instead_of_Content_Types_in_Content_Details_page_Bundle()
        {
            CommonSection.Logout();
            _test.Log(Status.Info, "Create logout From Siteadmin Account");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "login with siteAdmin Account");
            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Click create>Bundle");
            CreatebundlePage.CreateBundle("Progress Bundle", bunbdleTitle + "TC55407", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click CheckIn Button");

            CommonSection.Administer.Training.ContentConfiguration.DisplayFormats();
            _test.Log(Status.Info, "Navigate to Administer >> Content Configuration >> Displat Formats link");
            Assert.IsTrue(DisplayFormatPage.isContentwithdisplayformatdisplay());
            _test.Log(Status.Pass, "Verify Display Format page is displayed Verify list of Content types are listed along with their respective default display formats");
            DisplayFormatPage.CoursesInDisplayFormat.SelectDisplayFormatBundle("Bundle");
            DisplayFormatPage.CoursesInDisplayFormat.ApplyToAllForBundle();
            Assert.IsTrue(DisplayFormatPage.isApplyToAllModaldisplay());
            _test.Log(Status.Pass, "Verify Apply To All Modal is displayed");
            Assert.IsTrue(DisplayFormatPage.ApplyToAllModal.WarningMessage());
            _test.Log(Status.Pass, "Verify Apply To All Modal displays the Warning Message");
            Assert.IsTrue(DisplayFormatPage.ApplyToAllModal.ContentItemsCount() >= 0);
            _test.Log(Status.Pass, "Verify Apply To All Modal displays the number (Count) of content item  that will be impacted ");
            DisplayFormatPage.ApplyToAllModal.ClickApply();
            _test.Log(Status.Pass, "Click Apply on the Warning Message");
            FormatBundle = DisplayFormatPage.CoursesInDisplayFormat.Bundle();//XPathAgainstCoursetobeSelected

            //---------------------------------------------------------------------------------------------
            CommonSection.Logout();
            _test.Log(Status.Info, "Create logout From Siteadmin Account");
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();



            CommonSection.SearchCatalog(bunbdleTitle + "TC55407");
            _test.Log(Status.Info, "Search a Bundle from Catalog search");
            Assert.IsTrue(SearchResultsPage.ListofSearchResults.Display());
            _test.Log(Status.Pass, "Verify Search results are displayed");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC55407");

            Assert.IsTrue(ContentDetailsPage.ContentTitle.ContentTypeBundle(FormatBundle));

            _test.Log(Status.Pass, "Verify Content Type under the Content Title is replaced by Display Format for Bundle");
        }
예제 #5
0
        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;
        }
예제 #6
0
 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"));
 }
예제 #7
0
        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;
        }
예제 #8
0
        //Creating a Bundle
        public void tc_10455_CreateANewBundle()
        {
            CommonSection.CreateLink.Bundle();

            GeneralCoursePage.SearchTagForNewContent(tagname);
            _test.Log(Status.Info, "Searching Tag.");

            Assert.IsTrue(BundlesPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(BundlesPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            CreatebundlePage.CreateBundle("Content Bundle", bunbdleTitle + "TC10445", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            string savedTagName = ContentDetailsPage.Summary.tagName(tagname);

            StringAssert.AreEqualIgnoringCase(tagname, savedTagName);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            CommonSection.SearchCatalog(bunbdleTitle + "TC10445");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(bunbdleTitle + "TC10445"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC10445");
            ContentDetailsPage.ClickEditContent_New19_2();
            ContentDetailsPage.Summary.ClickEdit();
            BundlesPage.AvailableinCatalog.ClicktoUncheck();
            GeneralCoursePage.ClickSaveButton();
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is No in summary portlet");
            CommonSection.SearchCatalog(bunbdleTitle + "TC10445");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(bunbdleTitle + "TC10445"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");
            CommonSection.Manage.Training();
            TrainingPage.ManageContentPortlet.SearchForContent(bunbdleTitle + "TC10445");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(bunbdleTitle + "TC10445"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
            tc_10574 = true;
        }
예제 #9
0
 public void P20_1_tc_57026_Bundles_Bundle_Actions()
 {
     CommonSection.CreateLink.Bundle();
     _test.Log(Status.Info, "Click create>Bundle");
     CreatebundlePage.CreateBundle("Content Bundle", bunbdleTitle + "TC57026", "Bundle Price");
     _test.Log(Status.Info, "Create a new Content Bundle");
     ContentDetailsPage.ClickCheckInbutton();
     CommonSection.SearchCatalog('"' + bunbdleTitle + "TC57026" + '"');
     _test.Log(Status.Info, "Search created scrom from Catalog");
     SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57026");
     _test.Log(Status.Info, "Click searched scrom course title");
     Assert.IsTrue(ContentDetailsPage.OverviewTab.isSaveButtonDisplay());
     Assert.IsTrue(ContentDetailsPage.OverviewTab.isShareButtonDisplay());
     Assert.IsTrue(ContentDetailsPage.OverviewTab.iseditContentDisplay());
     CommonSection.Logout();
     LoginPage.LoginAs("srlearner101").WithPassword("").Login();
     CommonSection.SearchCatalog('"' + bunbdleTitle + "TC57026" + '"');
     _test.Log(Status.Info, "Search created scrom from Catalog");
     SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57026");
     _test.Log(Status.Info, "Click searched scrom course title");
     Assert.IsTrue(ContentDetailsPage.OverviewTab.isSaveButtonDisplay());
     Assert.IsTrue(ContentDetailsPage.OverviewTab.isShareButtonDisplay());
     Assert.IsFalse(ContentDetailsPage.OverviewTab.iseditContentDisplay());
 }
예제 #10
0
        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());
        }
예제 #11
0
        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;
        }
예제 #12
0
        public void tc_55367_Require_Survey_for_getting_a_certificate_Progress_Bundle()
        {
            #region Survey with Required status Yes
            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout with Site Admin Account");
            LoginPage.LoginAs("").WithPassword("").Login();
            _test.Log(Status.Info, "login with siteadmin Account");
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC55367");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Click create>Bundle");
            CreatebundlePage.CreateBundle("Progress Bundle", bunbdleTitle + "TC55367", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            BundlesPage.addContentIntoBundle(generalcoursetitle + "TC55367");
            _test.Log(Status.Info, "Adding Paid General Course into 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 with availability as When learner enrolls");

            //SurveysPage.Click_backbutton();
            ContentDetailsPage.ClickCheckInbutton();

            _test.Log(Status.Pass, "Click on Check-In");
            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("srlearner105").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            CommonSection.SearchCatalog(bunbdleTitle + "TC55367");
            _test.Log(Status.Info, "Search Created Course");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC55367");
            _test.Log(Status.Info, "Click Course Title");
            ContentDetailsPage.ContentBanner.Click_Startbutton();
            ContentDetailsPage.Click_OverviewTab();
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable("Before Course Start"));
            //  ---------------------------------------------------------

            ContentDetailsPage.Click_ContentTab();
            ContentDetailsPage.ContentTab.RequiredContent.ClickContentEnroll(generalcoursetitle + "TC55367");
            ContentDetailsPage.ContentTab.RequiredContent.ClickContentStart(generalcoursetitle + "TC55367");
            ContentDetailsPage.ContentTab.RequiredContent.CompleteBundleContent();
            Assert.IsFalse(ContentDetailsPage.ContentBanner.isViewCertificationButtonDisplay());
            _test.Log(Status.Pass, "Verify View Certificate Button is displayed");
            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");
            ContentDetailsPage.Click_OverviewTab();
            Assert.True(ContentDetailsPage.ContentBanner.isViewCertificationButtonDisplay());
            _test.Log(Status.Pass, "Verify View Certificate Button is displayed");
            ContentDetailsPage.ContentBanner.clickViewCertificateButton();
            _test.Log(Status.Pass, "Click View Certificate");
            Assert.IsTrue(ContentDetailsPage.isCertificateDisplayed());
            _test.Log(Status.Pass, "Verify certificate Page is displayed");
            Driver.focusParentWindow();
            #endregion

            #region Survey with Required status NO
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            _test.Log(Status.Info, "Login with site admin Account");

            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC55367_1");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Click create>Bundle");
            CreatebundlePage.CreateBundle("Progress Bundle", bunbdleTitle + "TC55367_1", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            BundlesPage.addContentIntoBundle(generalcoursetitle + "TC55367_1");
            _test.Log(Status.Info, "Adding Paid General Course into 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");
            // AddedsurveyTitle = SurveysPage.AddedSurveysTtile();
            _test.Log(Status.Pass, "Verify Survey Added to Content");
            SurveysPage.resultgrid.RequiredforFirstSurvey("No");
            _test.Log(Status.Pass, "Verify Required field is Yes");
            SurveysPage.CheckIn();
            _test.Log(Status.Pass, "Click on Check-In");

            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("srlearner105").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            CommonSection.SearchCatalog(bunbdleTitle + "TC55367_1");
            _test.Log(Status.Info, "Search Created Course");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC55367_1");
            _test.Log(Status.Info, "Click Course Title");
            ContentDetailsPage.ContentBanner.Click_Startbutton();
            ContentDetailsPage.Click_OverviewTab();
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable("Before Course Start"));
            _test.Log(Status.Pass, "Verify Survey is Displayed");
            ContentDetailsPage.Click_ContentTab();
            ContentDetailsPage.ContentTab.RequiredContent.ClickContentEnroll(generalcoursetitle + "_TC55367");
            ContentDetailsPage.ContentTab.RequiredContent.ClickContentStart(generalcoursetitle + "_TC55367");
            ContentDetailsPage.ContentTab.RequiredContent.CompleteBundleContent();
            _test.Log(Status.Info, "Click on Open Item");
            ContentDetailsPage.Click_OverviewTab();
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable("Before Course Start"));
            _test.Log(Status.Info, "Verify Survey is Displayed");

            Assert.IsTrue(ContentDetailsPage.ContentBanner.isViewCertificationButtonDisplay());
            _test.Log(Status.Pass, "Verify View Certificate Button is displayed");
            //ContentDetailsPage.ClickViewCertificate();
            //_test.Log(Status.Pass, "Click View Certificate");
            //Assert.IsTrue(ContentDetailsPage.isCertificateDisplayed());
            //_test.Log(Status.Pass, "Verify certificate Page is displayed");
            //Driver.focusParentWindow();

            #endregion
        }