Example #1
0
        public void a02_Test_to_see_related_similar_content_based_on_Tags_when_viewing_a_Content_Item_34827()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34827", generalcoursetitle + "TC34827");
            _test.Log(Status.Info, "Content Created");
            String expectedtagname = GeneralCoursePage.CreateTags(tagname);

            _test.Log(Status.Info, "Tag Created");
            GeneralCoursePage.ClickCheckIn();

            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34827_1", generalcoursetitle + "TC34827_1");
            _test.Log(Status.Info, "Content Created");
            String expectedtagname1 = GeneralCoursePage.CreateTags(tagname);

            _test.Log(Status.Info, "Tag Created");
            GeneralCoursePage.ClickCheckIn();

            CommonSection.SearchCatalog('"' + generalcoursetitle + "TC34827" + '"');
            _test.Log(Status.Info, "Search a content from catalog");
            SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC34827");
            _test.Log(Status.Info, "Click on searched content tilte");
            Assert.IsTrue(ContentDetailsPage.isMorelikethisPortletdisplay());
            _test.Log(Status.Pass, "Verify More like this Portlet is displaying in content details Page");
            Assert.IsTrue(ContentDetailsPage.isrelatedContentDisplay(generalcoursetitle + "TC34827_1"));
            _test.Log(Status.Pass, "Verify similar content displaying in More like this Portlet");
        }
Example #2
0
        public void a08_Test_to_see_related_similar_content_based_on_Course_Provider_when_viewing_a_Content_Item_34839()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34839", generalcoursetitle + "TC34839");
            _test.Log(Status.Info, "Content Created");
            GeneralCoursePage.AddCourseProvider("Meridian");
            string CourseProvider = ContentDetailsPage.CourseProviderAccodian.CourseProvidername();

            GeneralCoursePage.ClickCheckIn();

            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34839_1", generalcoursetitle + "TC34839_1");
            _test.Log(Status.Info, "Content Created");
            GeneralCoursePage.AddCourseProvider("Meridian");
            GeneralCoursePage.ClickCheckIn();

            CommonSection.SearchCatalog('"' + generalcoursetitle + "TC34839" + '"');
            _test.Log(Status.Info, "Search a content from catalog");
            SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC34839");
            _test.Log(Status.Info, "Click on searched content tilte");
            Assert.IsTrue(ContentDetailsPage.isMorelikethisPortletdisplay());
            _test.Log(Status.Pass, "Verify More like this Portlet is displaying in content details Page");
            Assert.IsTrue(ContentDetailsPage.isSameCourseProviderrelatedContentDisplay(CourseProvider));
        }
        public void a01_As_an_admin_managing_equivalencies_I_want_to_find_content_to_add_as_a_new_equivalency_for_GeneralCourse_52238()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC52238", generalcoursetitle + "TC52238");
            _test.Log(Status.Info, "Content 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();
        }
Example #4
0
        public void a06_Test_to_see_related_similar_content_based_on_Categories_when_viewing_a_Content_Item_34836()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34836", generalcoursetitle + "TC34836");
            _test.Log(Status.Info, "Content Created");
            GeneralCoursePage.AddCategories("TC34836");
            string CourseCategory = ContentDetailsPage.CategoriesAccordian.Categoryname();

            GeneralCoursePage.ClickCheckIn();

            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34836_1", generalcoursetitle + "TC34836_1");
            _test.Log(Status.Info, "Content Created");
            GeneralCoursePage.AddCategories("TC34836");
            GeneralCoursePage.ClickCheckIn();

            CommonSection.SearchCatalog('"' + generalcoursetitle + "TC34836" + '"');
            _test.Log(Status.Info, "Search a content from catalog");
            SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC34836");
            _test.Log(Status.Info, "Click on searched content tilte");
            Assert.IsTrue(ContentDetailsPage.isMorelikethisPortletdisplay());
            _test.Log(Status.Pass, "Verify More like this Portlet is displaying in content details Page");
            Assert.IsTrue(ContentDetailsPage.isrelatedContentMatch(CourseCategory));
        }
Example #5
0
        public void a07_Test_to_see_related_similar_content_based_on_Credit_Types_when_viewing_a_Content_Item_34838()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34838", generalcoursetitle + "TC34838");
            _test.Log(Status.Info, "Content Created");
            GeneralCoursePage.AddCreditType("5");
            int creditType = ContentDetailsPage.CreditTypeAccordian.CreditTypeNumber();

            GeneralCoursePage.ClickCheckIn();

            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC34838_1", generalcoursetitle + "TC34838_1");
            _test.Log(Status.Info, "Content Created");
            GeneralCoursePage.AddCreditType("5");
            GeneralCoursePage.ClickCheckIn();

            CommonSection.SearchCatalog('"' + generalcoursetitle + "TC34838" + '"');
            _test.Log(Status.Info, "Search a content from catalog");
            SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC34838");
            _test.Log(Status.Info, "Click on searched content tilte");
            Assert.IsTrue(ContentDetailsPage.isMorelikethisPortletdisplay());
            _test.Log(Status.Pass, "Verify More like this Portlet is displaying in content details Page");
            Assert.IsTrue(ContentDetailsPage.isCreditTyperelatedContentDisplay(creditType));
        }
Example #6
0
        public void a15_Equivalent_Items_to_a_General_Course_27161()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC27161", generalcoursetitle + "TC27161");
            _test.Log(Status.Info, "Content 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();
            CommonSection.SearchCatalog(generalcoursetitle + "TC27161");
            SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC27161");
            Assert.IsTrue(ContentDetailsPage.ReviewsTab.idEquvalenciesPortletDisplay());
            TC56397_1 = true;
        }
        public void a13_As_an_Admin_I_can_see_whether_there_are_equivalencies_set_and_how_many_52245()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC52245", generalcoursetitle + "TC52245");
            _test.Log(Status.Info, "Content Created");
            Assert.IsTrue(ContentDetailsPage.Equivalencies.NoEquivalenciesadded("No equivalencies are currently assigned."));
            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");
            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");
            EquivalenciesPage.ClickBreadcrumb_ContentTitle(generalcoursetitle + "TC52245");
            Assert.IsTrue(ContentDetailsPage.Equivalencies.AssignedEquivalenciesCount() >= 1);
            _test.Log(Status.Pass, "Verify 1 equivalencies content added");
        }
        public void a12_As_an_admin_setting_an_equivalency_I_want_to_choose_to_whom_User_the_equivalency_applies_52261()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC52261", generalcoursetitle + "TC52261");
            _test.Log(Status.Info, "Content 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");
            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");
            EquivalenciesPage.Resultgrid.click_ApplaytoManagelinkof(EquivalencyName);
            EquivalenciesManageGroupsEditPage.isExistingUseddisplay("No");
            EquivalenciesManageGroupsEditPage.Click_Changebutton();
            Assert.IsTrue(EquivalenciesManageGroupsEditPage.isAddUsermodalOpened());
            EquivalenciesManageGroupsEditPage.addUserModal.addUser("User", "user");
            Assert.IsTrue(Driver.comparePartialString("The users/groups were added for the equivalency", Driver.getSuccessMessage()));
            EquivalenciesManageGroupsEditPage.click_Equivalencies_breadcrumb();
            Assert.IsTrue(EquivalenciesPage.Resultgrid.verifyquivalenciesApplayedto("User", EquivalencyName));
        }
 public void A18_BatchEnroll_And_MarkComplete_User_into_NoCost_OnlineCourse_where_Toggle_SetTo_No_34163()
 {
     #region Create General Course without cost
     CommonSection.CreateLink.GeneralCourse();
     _test.Log(Status.Info, "Creating a General Course");
     GeneralCoursePage.CreateGeneralCourse(generalcourse + "TC34163", "Test General Course");
     DocumentPage.ClickButton_CheckIn();
     _test.Log(Status.Info, "General course created");
     #endregion
     CommonSection.Manage.Training();
     _test.Log(Status.Info, "Goto Training Page");
     CommonSection.Manage.TrainingPage.click_BatchEnrollment_OnlineCourse();
     _test.Log(Status.Info, "Click on Batch enroll online course link");
     CommonSection.Manage.TrainingPage.searchFor_OnlineContent(generalcourse + "TC34163");
     _test.Log(Status.Info, "Search for online course");
     CommonSection.Manage.TrainingPage.click_EnrollUserButton();
     _test.Log(Status.Info, "Click enroll user button");
     Assert.IsTrue(Driver.Instance.isPresent(By.XPath("//label[contains(text(),'Mark Enrollees Complete')]")));
     _test.Log(Status.Pass, "Mark Enrollee complete lable is disabled");
     CommonSection.Manage.TrainingPage.searchFor_UsersToBatchEnroll("");
     _test.Log(Status.Info, "Search for user to batch enroll");
     CommonSection.Manage.TrainingPage.select_UsersToBatchEnroll();
     _test.Log(Status.Info, "Select users to batch enroll");
     Assert.IsTrue(CommonSection.Manage.TrainingPage.Click_BatchEnroll_Button_OnlineCourse_WhenToogle_No());
     _test.Log(Status.Pass, "BatchEnroll And MarkComplete User into NoCost Online Course where Toggle Set To No");
 }
        public void a14_As_an_Admin_I_can_remove_a_user_entity_from_an_equivalency_52342()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC52342", generalcoursetitle + "TC52342");
            _test.Log(Status.Info, "Content 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");
            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");
            EquivalenciesPage.Resultgrid.click_ApplaytoManagelinkof(EquivalencyName);
            EquivalenciesManageGroupsEditPage.isExistingUseddisplay("No");
            EquivalenciesManageGroupsEditPage.Click_Changebutton();
            Assert.IsTrue(EquivalenciesManageGroupsEditPage.isAddUsermodalOpened());
            EquivalenciesManageGroupsEditPage.addUserModal.addUser("User", "user");
            Assert.IsTrue(Driver.comparePartialString("The users/groups were added for the equivalency", Driver.getSuccessMessage()));
            EquivalenciesManageGroupsEditPage.Selectuserentity();
            EquivalenciesManageGroupsEditPage.Click_Remove();
            Assert.IsTrue(EquivalenciesManageGroupsEditPage.RemoveUsersModal.Confirmmessage("Are you sure you want to remove the selected users? This cannot be undone."));
            EquivalenciesManageGroupsEditPage.RemoveUsersModal.Click_Remove();
            Assert.IsTrue(Driver.comparePartialString("The users/groups were removed from the equivalency", Driver.getSuccessMessage()));
        }
Example #11
0
        public void tc_26335_Access_Re_certification()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Creating a Paid General Course");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC26335", "Test General Course");
            DocumentPage.ClickButton_CheckIn();
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Creating a Paid General Course");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC26335_Recitify", "Test General Course");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreateLink.Certifications();
            _test.Log(Status.Info, "Click create>certification");
            CertificationPage.FillTitle(CertificatrTitle + "TC26335");
            _test.Log(Status.Info, "Fill title");
            CertificatePage.Doesthiscertificationexpire("Yes");
            CertificationPage.isthisarecurringcertification("Yes");
            CertificationPage.Whenistsertificationperiod("Immediately").until("1").Days();

            CertificationPage.ClickCreateCertification();
            _test.Log(Status.Info, "Click create");
            CertificatePage.addContentIntoCertificate(generalcoursetitle + "TC26335");
            CertificatePage.Click_backbutton();

            CertificatePage.addContenttoRecertification(generalcoursetitle + "TC26335_Recitify");
            CertificatePage.Click_backbutton();
            ContentDetailsPage.ClickCheckInbutton();

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("").Login(); //Login as regular user (Learner)

            CommonSection.SearchCatalog('"' + CertificatrTitle + "TC26335" + '"');
            _test.Log(Status.Info, "Searched" + CertificatrTitle + "TC26335" + "from Catalog");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC26335");
            _test.Log(Status.Info, "Clicked searched course title");
            ContentDetailsPage.ClickAccessItemButton_Certi();
            ContentDetailsPage.ContentItemsPortlet.ClickItemTitle(generalcoursetitle + "TC26335");
            ContentDetailsPage.ClickEnroll_CerficationGeneralCourse();
            AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent_Certification();
            CertificationDetailsPage.ClickBreadCrumb();
            Assert.IsTrue(ContentDetailsPage.certificationProgress() == "100% Completed");  //AC4
            _test.Log(Status.Pass, "Verify progress display after content completed");
            Assert.IsTrue(ContentDetailsPage.IsViewCertificateButtondisplay());

            Assert.IsTrue(ContentDetailsPage.isRe_certifybuttondisplay());
            _test.Log(Status.Pass, "Verify recertify button display");
            ContentDetailsPage.Click_Recertfybutton();
            Assert.IsTrue(ContentDetailsPage.isReCertificationContentportletdisplay());
            Assert.IsTrue(ContentDetailsPage.RecertificationCriteriaPortlet.content(generalcoursetitle + "TC26335_Recitify"));
            _test.Log(Status.Pass, "Verify recertify content is display");
            ContentDetailsPage.RecertificationCriteriaPortlet.clickContentTitle(generalcoursetitle + "TC26335_Recitify");
            ContentDetailsPage.ClickEnroll_CerficationGeneralCourse();
            AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent_Certification();
            CertificationDetailsPage.ClickBreadCrumb();
            Assert.IsTrue(ContentDetailsPage.certificationProgress() == "100% Completed");
            _test.Log(Status.Pass, "Verify progress display after content completed");
            Assert.IsTrue(ContentDetailsPage.IsViewCertificateButtondisplay());
            //Assert.IsTrue(ContentDetailsPage.IsViewCoreCertificateButtondisplay());
        }
 public void A09_Test_AccessKeys_Accordian_For_GeneralCourse_35817()
 {
     CommonSection.Learn.Home();
     CommonSection.CreateLink.GeneralCourse();
     _test.Log(Status.Info, "Creating a Paid General Course");
     GeneralCoursePage.CreateGeneralCourse(generalcourse + "AK", "Test General Course");
     GeneralCoursePage.setCost("5");
     _test.Log(Status.Info, "Cost Has Been Set");
     Assert.IsTrue(ClassroomCoursePage.enableAccessKeys());
     _test.Log(Status.Info, "Access Keys Accordian Has been verfiied for General Course");
 }
Example #13
0
        public void P20_1_a23_Take_Curriculum_Related_Surveys_26347()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Creating a Paid General Course");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "_TC26347", "Test General Course");
            DocumentPage.ClickButton_CheckIn();
            _test.Log(Status.Info, "Paid general course created");
            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC326347");
            _test.Log(Status.Info, "Create A new Curriculum");

            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");

            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");
            SurveysPage.Click_backbutton();

            ContentDetailsPage.ClickCurriculumContentEditButton();
            CurriculumContentPage.ClickAddCurriculumBlock();
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs("_UnOrdered" + "_TC26349");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "_TC26347");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.SearchCatalog(curriculamtitle + "TC326347");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "TC326347");
            //Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysDisplayForCurriculumn(Surveytitle_OnEnroll, Surveytitle_OnContentComplete));
            //Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysareNotavailable);
            ContentDetailsPage.ClickCurriculumnEnroll();
            // Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailableforCurriculumn(Surveytitle_OnEnroll));
            ContentDetailsPage.Click_ContentTab();
            Assert.IsTrue(ContentDetailsPage.MarkComplete_Curriculum_whenSurveyRequired());
            ContentDetailsPage.Click_OverviewTab();
            //Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailableforCurriculumn(Surveytitle_OnContentComplete));

            ContentDetailsPage.SurveyPortlet.ClickonattachedSurvey("Before Course Start");
            _test.Log(Status.Info, "Click Attached Survey");
            ContentDetailsPage.SurveyPortlet.CompleteSurvey();
            _test.Log(Status.Info, "Complete Survey");
            ContentDetailsPage.Click_MarkComplete();
            _test.Log(Status.Pass, "Click at Take Survey button");
            // ContentDetailsPage.SurveyPortlet.CompleteSurvey(); // Why we need it to do?

            Assert.IsTrue(ContentDetailsPage.ClickViewCertificate_Curriculum());
            //Assert.IsTrue(ContentDetailsPage.IsViewCertificateButtondisplay());
            _test.Log(Status.Pass, "Verify View Certificate Button is displayed");
        }
        public void A19_UserManager_BatchEnroll_and_MarkComplete_User_into_NoCost_Online_Course_34164()
        {
            #region Create Learner
            Driver.CreateNewAccount("Learner");
            _test.Log(Status.Info, "Created Learner" + Meridian_Common.NewUserId);
            LoginPage.LoginAs("").WithPassword("").Login();
            _test.Log(Status.Info, "Logged in with admin");
            #endregion

            #region Create General Course without cost
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Creating a General Course");
            GeneralCoursePage.CreateGeneralCourse(generalcourse + "TC34164", "Test General Course");
            DocumentPage.ClickButton_CheckIn();
            _test.Log(Status.Info, "General course created");
            #endregion
            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Training page");
            CommonSection.Manage.TrainingPage.click_BatchEnrollment_OnlineCourse();
            _test.Log(Status.Info, "Goto batch enrollment online course page");
            CommonSection.Manage.TrainingPage.searchFor_OnlineContent(generalcourse + "TC34164");
            _test.Log(Status.Info, "search for online content");
            CommonSection.Manage.TrainingPage.click_EnrollUserButton();
            _test.Log(Status.Info, "Click enroll user button");
            Assert.IsTrue(Driver.Instance.isPresent(By.XPath("//label[contains(text(),'Mark Enrollees Complete')]")));
            _test.Log(Status.Pass, "Mark Enrollees Complete Lable Displaying");
            CommonSection.Manage.TrainingPage.searchFor_UsersToBatchEnroll(Meridian_Common.NewUserId);
            _test.Log(Status.Info, "Search for user");
            CommonSection.Manage.TrainingPage.select_UsersToBatchEnroll();
            _test.Log(Status.Info, "Select user's to batch enroll");
            Assert.IsTrue(CommonSection.Manage.TrainingPage.switchToggle_toYes_MarkEnrolleesComplete());
            _test.Log(Status.Pass, "Switch Toggle to Yes");
            Assert.IsTrue(CommonSection.Manage.TrainingPage.Click_BatchEnroll_Button_OnlineCourse_WhenToogle_Yes());
            _test.Log(Status.Pass, "Click Batch Enroll Button When Toggle is Set to Yes");
            CommonSection.Manage.People();
            _test.Log(Status.Info, "Goto People Page");
            PeoplePage.Search_User(Meridian_Common.NewUserId);
            _test.Log(Status.Info, "Search user");
            PeoplePage.viewTranscript();
            _test.Log(Status.Info, "Open User's Transcript");
            Assert.IsTrue(Driver.Instance.IsElementVisible(By.XPath("//td[contains(.,'" + generalcourse + "TC34164" + "')]")));
            _test.Log(Status.Pass, "Correct Course displayin in user's transcript");
            Assert.IsTrue(Driver.Instance.IsElementVisible(By.XPath("//td[contains(.,'Completed')]")));
            _test.Log(Status.Pass, "Status displayin as Completed in user's transcript");
        }
Example #15
0
        public void a02_Learner_experience_certification_where_admit_set_certificate_be_automatically_granted_upon_content_completion_is_No_57970()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Creating a Paid General Course");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC57970", "Test General Course");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreateLink.Certifications();
            _test.Log(Status.Info, "Click create>certification");
            CertificationPage.FillTitle(CertificatrTitle + "TC57970");
            _test.Log(Status.Info, "Fill title");
            Assert.IsTrue(CertificationPage.isShouldthecertificatebeautomaticallygranteduponcontentcompletion_lavelDisplay()); //AC1
            Assert.IsTrue(CertificationPage.automaticallygrantedcertificationDefaultValue("Yes"));                             //AC3
            CertificationPage.SelectautomaticallygrantedcertificationDefaultValue("No");


            CertificationPage.ClickCreateCertification();
            _test.Log(Status.Info, "Click create");
            CertificatePage.addContentIntoCertificate(generalcoursetitle + "TC57970");
            CertificatePage.Click_backbutton();
            ContentDetailsPage.ClickCheckInbutton();

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("").Login(); //Login as regular user (Learner)

            CommonSection.SearchCatalog('"' + CertificatrTitle + "TC57970" + '"');
            _test.Log(Status.Info, "Searched" + CertificatrTitle + "TC57970" + "from Catalog");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC57970");
            _test.Log(Status.Info, "Clicked searched course title");
            ContentDetailsPage.ClickAccessItemButton_Certi();
            ContentDetailsPage.ContentItemsPortlet.ClickItemTitle(generalcoursetitle + "TC57970");
            ContentDetailsPage.ClickEnroll_CerficationGeneralCourse();
            AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent_Certification();
            CertificationDetailsPage.ClickBreadCrumb();
            Assert.IsTrue(ContentDetailsPage.certificationProgress() == "100% Completed"); //AC4
            Assert.IsFalse(ContentDetailsPage.IsViewCertificateButtondisplay());           //AC5  //AC5
            //ContentDetailsPage.Click_HistoryTab_Curriculum();
            //Assert.IsFalse(ContentDetailsPage.HistoryTab.isViewCertificateButtonDisplay());  //AC6
            CommonSection.Transcript();
            TranscriptPage.ClickCertificationsTab();
            TranscriptPage.CertificationTab.sortbyDate("as");
            Assert.IsTrue(TranscriptPage.CertificationTab.isCertificationStatus(CertificatrTitle + "TC57970") == "Pending"); //AC7
        }
Example #16
0
        public void A07_Learner_See_Recently_Added_Contents_Recommendation_On_Homepage_33469()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC33469", generalcoursetitle);
            _test.Log(Status.Info, "Content Created");
            String expectedtagname = GeneralCoursePage.CreateTags(tagname);

            _test.Log(Status.Info, "Tag Created");
            StringAssert.AreEqualIgnoringCase(tagname, expectedtagname);
            _test.Log(Status.Info, "Assertion Pass as Tag Has been created successfully.");
            DocumentPage.ClickButton_CheckIn();
            RecommendationsPage.selectMostRecent_RecentlyAdded();
            CommonSection.Learn.Home();
            _test.Log(Status.Info, "Navigate to Homepage");
            Assert.IsTrue(Driver.Instance.IsElementVisible(By.XPath("//h4[contains(text(),'" + generalcoursetitle + "TC33469" + "')]")));
            _test.Log(Status.Info, "Assert recently added content display on homepage : Pass");
        }
        public void A11_Access_Key_Expire_When_User_Completed_the_Content_Bundle_34189()
        {
            #region Create General Course and Bundle With Cost and Access keys Enabled
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Creating a Paid General Course");
            GeneralCoursePage.CreateGeneralCourse(generalcourse + "TC34189", "Test General Course");
            GeneralCoursePage.setCost("5");
            DocumentPage.ClickButton_CheckIn();
            _test.Log(Status.Info, "Paid general course created");
            CommonSection.Learn.Home();
            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Creating a Paid Bundle Course with Access Keys");
            objCreate.FillBundlePage(browserstr + "TC34189");
            GeneralCoursePage.setCost("5");
            _test.Log(Status.Info, "Cost Has Been Set");
            BundlesPage.enableAccessKeys();
            _test.Log(Status.Info, "Access Keys Enabled");
            BundlesPage.addContentIntoBundle(generalcourse + "TC34189");
            _test.Log(Status.Info, "Adding Paid General Course into Bundle");
            DocumentPage.ClickButton_CheckIn();

            #endregion
            #region Purchase Access Keys for Bundle
            ShoppingCarts.purchaseAccessKeys("Bundle", Variables.bundleTitle + browserstr + "TC34189");
            ShoppingCarts.completePurchaseProcess();
            _test.Log(Status.Info, "Keys has been purchased from shopping cart");
            CommonSection.Manage.Training();
            CommonSection.Manage.AccessKeys();
            AccessKeysPage.searchForContent(Variables.bundleTitle + browserstr + "TC34189");
            AccessKeysPage.assignKeysToLearner("*****@*****.**");
            _test.Log(Status.Info, "Keys has been assigned to learner");
            driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink);
            #endregion
            LoginPage.LoginAs("ssuser1").WithPassword("password").Login();
            Assert.IsTrue(BundlesPage.searchforBundle(Variables.bundleTitle + browserstr + "TC34189", generalcourse + "TC34189"));
            _test.Log(Status.Info, "General Course Displaying inside Bundle, Assertion Pass");
            Assert.IsTrue(Driver.Instance.IsElementVisible(By.XPath("//input[@value='Enroll']")));
            _test.Log(Status.Info, "Cost of General Course Override, Assertion Pass");
            GeneralCoursePage.completeGeneralCourse();
            BundlesPage.simplysearchforBundle(Variables.bundleTitle + browserstr + "TC34189");
            Assert.IsTrue(Driver.Instance.IsElementVisible(By.XPath("//p[contains(.,'You have already completed this item. You must use another access key to begin a new attempt.')]")));
            driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink);
            LoginPage.LoginAs("").WithPassword("").Login();
        }
 public void A05_Test_AccessKeys_Accordian_For_Bundle_35814()
 {
     #region Create General Course and Bundle With Cost and Access keys Enabled
     CommonSection.CreateLink.GeneralCourse();
     _test.Log(Status.Info, "Creating a Paid General Course");
     GeneralCoursePage.CreateGeneralCourse(generalcourse, "Test General Course");
     GeneralCoursePage.setCost("5");
     DocumentPage.ClickButton_CheckIn();
     _test.Log(Status.Info, "Paid general course created");
     CommonSection.Learn.Home();
     CommonSection.CreateLink.Bundle();
     _test.Log(Status.Info, "Creating a Paid Bundle Course with Access Keys");
     objCreate.FillBundlePage(browserstr);
     GeneralCoursePage.setCost("5");
     _test.Log(Status.Info, "Cost Has Been Set");
     Assert.IsTrue(ClassroomCoursePage.enableAccessKeys());
     _test.Log(Status.Info, "Access Keys Accordian Has been verfiied for Bundle Course");
     #endregion
 }
Example #19
0
        public void A16_Test_Access_Keys_with_Curriculum_34153()
        {
            #region Create General Course and Curriculum With Cost and Access keys Enabled
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Creating a Paid General Course");
            GeneralCoursePage.CreateGeneralCourse(generalcourse + "Curr", "Test General Course");
            GeneralCoursePage.setCost("5");
            DocumentPage.ClickButton_CheckIn();
            _test.Log(Status.Info, "Paid general course created");
            CommonSection.Learn.Home();
            CommonSection.CreateLink.Curriculam();
            _test.Log(Status.Info, "Creating a Paid Curriculum Course with Access Keys");
            objCreate.FillCurriculumPage("AK", browserstr);
            GeneralCoursePage.setCost("5");
            _test.Log(Status.Info, "Cost Has Been Set");
            BundlesPage.enableAccessKeys();
            _test.Log(Status.Info, "Access Keys Enabled");
            CurriculumsPage.CurriculumContent.addContentIntoCurriculam(generalcourse + "Curr");
            _test.Log(Status.Info, "Adding Paid General Course into Curriculum");
            DocumentPage.ClickButton_CheckIn();

            #endregion
            #region Purchase Access Keys for Curriculam
            ShoppingCarts.purchaseAccessKeys("Curriculam", Variables.curriculumTitle + browserstr + "AK");
            ShoppingCarts.completePurchaseProcess();
            _test.Log(Status.Info, "Keys has been purchased from shopping cart");
            CommonSection.Manage.Training();
            CommonSection.Manage.AccessKeys();
            AccessKeysPage.searchForContent(Variables.curriculumTitle + browserstr + "AK");
            AccessKeysPage.assignKeysToLearner("*****@*****.**");
            _test.Log(Status.Info, "Keys has been assigned to learner");
            driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink);
            #endregion
            LoginPage.LoginAs("ssuser1").WithPassword("password").Login();
            Assert.IsTrue(CurriculumsPage.searchforCurriculam(Variables.curriculumTitle + browserstr + "AK", generalcourse + "Curr"));
            _test.Log(Status.Info, "General Course Displaying inside Curriculuam, Assertion Pass");
            Assert.IsTrue(Driver.Instance.IsElementVisible(By.XPath("//input[@value='Enroll']")));
            // TC_10823 = true;
            _test.Log(Status.Info, "Cost of General Course Override, Assertion Pass");
            driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink);
            LoginPage.LoginAs("").WithPassword("").Login();
        }
Example #20
0
 public void a09_Launch_General_Course_26250()
 {
     #region Creating general course
     CommonSection.CreateLink.GeneralCourse();
     _test.Log(Status.Info, "Creating a Paid General Course");
     GeneralCoursePage.CreateGeneralCourse(generalcourse + "TC26250", "Test General Course");
     DocumentPage.ClickButton_CheckIn();
     _test.Log(Status.Info, "General course created");
     #endregion
     CommonSection.Logout();
     _test.Log(Status.Info, "Logout from admin");
     LoginPage.LoginAs("ak_learner").WithPassword("password").Login();
     _test.Log(Status.Info, "Login with Learner");
     CommonSection.SearchCatalog(generalcourse + "TC26250");
     _test.Log(Status.Info, "Searching for general course from catalog");
     CatalogPage.ClickonSearchedCatalog(generalcourse + "TC26250");
     GeneralCoursePage.completeGeneralCourse();
     TC_26224 = true;
     _test.Log(Status.Pass, "Assertion Pass as Learner Launched & Completed the General Course");
 }
Example #21
0
        [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");
        }
Example #22
0
        public void tc_7373_Create_a_new_General_course()
        {
            CommonSection.CreateLink.GeneralCourse();

            GeneralCoursePage.SearchTagForNewContent(tagname + "TC7373");
            _test.Log(Status.Info, "Searching Tag.");
            Assert.IsTrue(GeneralCoursePage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(GeneralCoursePage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            GeneralCoursePage.CreateGeneralCourse(GeneralCourseTitle + "TC7373", generalcoursedec);
            //  Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            string savedTagName = ContentDetailsPage.Summary.tagName(tagname + "TC7373");

            StringAssert.AreEqualIgnoringCase(tagname + "TC7373", savedTagName);
            _test.Log(Status.Pass, "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(GeneralCourseTitle + "TC7373");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(GeneralCourseTitle + "TC7373"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
            SearchResultsPage.ClickCourseTitle(GeneralCourseTitle + "TC7373");
            ContentDetailsPage.ClickEditContent_New19_2();
            ContentDetailsPage.Summary.ClickEdit();
            GeneralCoursePage.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(GeneralCourseTitle + "TC7373");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(GeneralCourseTitle + "TC7373"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");
            CommonSection.Manage.Training();
            TrainingPage.ManageContentPortlet.SearchForContent(GeneralCourseTitle + "TC7373");

            ManageContentPage.ResultGrid.isSeaarchedContentDisplay(GeneralCourseTitle + "TC7373");
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
            tc_7375 = true;
            ManageContentPage.ClickContentTitle(GeneralCourseTitle + "TC7373");
            ContentDetailsPage.DeleteContent();
        }
Example #23
0
 public void a11_Delete_general_Course_7439()
 {
     CommonSection.Logout();
     LoginPage.LoginAs("").WithPassword("").Login();
     #region Creating general course
     CommonSection.CreateLink.GeneralCourse();
     _test.Log(Status.Info, "Creating a Paid General Course");
     GeneralCoursePage.CreateGeneralCourse(generalcourse + "TC26250", "Test General Course");
     DocumentPage.ClickButton_CheckIn();
     _test.Log(Status.Info, "General course created");
     #endregion
     CommonSection.Logout();
     LoginPage.LoginAs("").WithPassword("").Login();
     CommonSection.SearchCatalog('"' + generalcourse + "TC26250" + '"');
     _test.Log(Status.Info, "Search created general Course from Catalog");
     SearchResultsPage.ClickCourseTitle(generalcourse + "TC26250");
     _test.Log(Status.Info, "Click searched general course title");
     ContentDetailsPage.ClickEditContent();
     ContentDetailsPage.DeleteContent();
     _test.Log(Status.Info, "Deleting general Course");
     Assert.IsTrue(Driver.Instance.IsElementVisible(By.XPath("//div[@class='alert alert-success']")));
     _test.Log(Status.Pass, "Assertion Pass as Content has been deleted from creating domain");
 }
Example #24
0
        public void A01_Learner_Set_Their_Interest_from_HomePage_33520()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle, generalcoursetitle);
            _test.Log(Status.Info, "Content Created");
            String expectedtagname = GeneralCoursePage.CreateTags(tagname);

            _test.Log(Status.Info, "Tag Created");
            StringAssert.AreEqualIgnoringCase(tagname, expectedtagname);
            _test.Log(Status.Info, "Assertion Pass as Tag Has been created successfully.");
            DocumentPage.ClickButton_CheckIn();
            CommonSection.Learn.Home();
            _test.Log(Status.Info, "Navigating to HomePage");
            driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink);
            _test.Log(Status.Info, "Logout from admin");
            LoginPage.LoginAs("ssuser1").WithPassword("password").Login();
            _test.Log(Status.Info, "Login with Learner");
            Assert.IsTrue(HomePage.selectInterest(tagname, generalcoursetitle));
            _test.Log(Status.Info, "Assertion Pass as learner selected interest from homepage successfully");
            driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink);
            LoginPage.LoginAs("").WithPassword("").Login();
        }
        public void tc_59282_As_Learner_AICC_Overview_Tab_What_other_content_can_I_take()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC59282", generalcoursetitle + "TC34839");
            _test.Log(Status.Info, "Content Created");
            GeneralCoursePage.AddCourseProvider("Meridian");
            string CourseProvider = ContentDetailsPage.CourseProviderAccodian.CourseProvidername();

            GeneralCoursePage.ClickCheckIn();

            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 + "TC59282");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Document is Created");
            GeneralCoursePage.AddCourseProvider("Meridian");
            GeneralCoursePage.ClickCheckIn();

            CommonSection.SearchCatalog('"' + AICCCourseTitle + "TC59282" + '"');
            _test.Log(Status.Info, "Search a content from catalog");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC59282");
            _test.Log(Status.Info, "Click on searched content tilte");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isMorelikethisPortletDisplay());
            _test.Log(Status.Pass, "Verify More like this Portlet is displaying in content details Page");
            Assert.IsTrue(ContentDetailsPage.isSameCourseProviderrelatedContentDisplay(CourseProvider));
        }
 public void A16_Batch_Enroll_and_MarkComplete_User_into_Online_Course_with_Cost_34154()
 {
     #region Create General Course with Cost
     CommonSection.CreateLink.GeneralCourse();
     _test.Log(Status.Info, "Creating a Paid General Course");
     GeneralCoursePage.CreateGeneralCourse(generalcourse + "TC34154", "Test General Course");
     GeneralCoursePage.setCost("5");
     DocumentPage.ClickButton_CheckIn();
     _test.Log(Status.Info, "Paid general course created");
     #endregion
     CommonSection.Manage.Training();
     _test.Log(Status.Info, "Goto Training Page");
     CommonSection.Manage.TrainingPage.click_BatchEnrollment_OnlineCourse();
     _test.Log(Status.Info, "Click on Batch enroll online course link");
     CommonSection.Manage.TrainingPage.searchFor_OnlineContent(generalcourse + "TC34154");
     _test.Log(Status.Info, "Search for online course");
     CommonSection.Manage.TrainingPage.click_EnrollUserButton();
     _test.Log(Status.Info, "Click enroll user button");
     Assert.IsTrue(Driver.Instance.isPresent(By.XPath("//div[@aria-disabled='true']")));
     _test.Log(Status.Pass, "Batch Enroll and MarkComplete User into Online Course with Cost");
     //  CommonSection.Manage.TrainingPage.searchFor_UsersToEnroll("");
     //  CommonSection.Manage.TrainingPage.BatchEnroll_OnlineCourse(); // In Progress
     // xpath = //label[@id='lblMarkComplete']
 }