public void tc_60001_AICC_Banner_Actions_Enroll_in_content()
        {
            #region Create a AICC course
            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 + "TC560001");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");
            #endregion
            CommonSection.SearchCatalog(AICCCourseTitle + "TC560001");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC560001");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay());
            ContentDetailsPage.EnrollinGeneralCourse_new();
            //StringAssert.AreEqualIgnoringCase("Success\r\nYou are now enrolled.\r\n×", Driver.getSuccessMessage(), "Error message is different");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isCancelEnrolllinkDisplay_GeneralCourse());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isStartbuttonDisplay());
            ContentDetailsPage.ContentBanner.Click_CancelEnrollmetlink();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay());
            _test.Log(Status.Pass, "Verify Enroll button display");
            TC60002 = true;
        }
Ejemplo n.º 2
0
        public void a12_Delete_AICC_Course_7436()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            #region creat AICC
            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);
            string actualresult = driver.gettextofelement(By.XPath("//h1[contains(.,'Summary')]"));
            CreateAICCPage.Title(AICCTitle + "7436");

            //driver.WaitForElement(By.XPath("//*[contains(@class,'alert alert-success')]"));
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            #endregion
            CommonSection.SearchCatalog('"' + AICCTitle + "7436" + '"');
            _test.Log(Status.Info, "Search created AICC Course from Catalog");
            SearchResultsPage.ClickCourseTitle(AICCTitle + "7436");
            _test.Log(Status.Info, "Click searched AICC 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");
        }
        public void tc_59996_AICC_Banner_Actions_Add_To_Cart()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            #region Create a AICC course
            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 + "TC59996");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            AdminContentDetailsPage.AddCost();
            _test.Log(Status.Info, "Add cost to Document");
            ContentDetailsPage.ClickEditContent_New19_2();
            _test.Log(Status.Info, "Click Edit Content");
            DocumentPage.ClickButton_CheckIn();
            #endregion
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();

            Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay());
            _test.Log(Status.Pass, "Add to Cart Button is Displayed");
        }
        public void tc_60042_AICC_Review()
        {
            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 + "TC60042");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            DocumentPage.ClickButton_CheckIn();

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("password").Login();
            CommonSection.SearchCatalog(AICCCourseTitle + "TC60042");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC60042");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay());
            ContentDetailsPage.Click_ReviewTab_GeneralCourse();
            _test.Log(Status.Info, "Click Review Tab");
            Assert.IsFalse(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay()); //AC1
            ContentDetailsPage.EnrollinGeneralCourse_new();
            ContentDetailsPage.Click_ReviewTab_GeneralCourse();
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay()); //AC1
            ContentDetailsPage.GeneralCourse_ReviewsTab.WriteaReview("Title", "For Testing");
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isReviewlistUpdated("Title"));
            _test.Log(Status.Pass, "Review submited");
        }
        public void tc_60003_AICC_Banner_Actions_Open_Item()
        {
            #region Create a AICC course
            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 + "TC560003");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");
            #endregion
            CommonSection.SearchCatalog(AICCCourseTitle + "TC560003");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC560003");
            ContentDetailsPage.ContentBanner.Click_Enrollbutton();
            ContentDetailsPage.ContentBanner.Click_Startbutton();
            _test.Log(Status.Info, "Start Aicc course");
            Assert.IsTrue(ContentDetailsPage.isAICCCourseOpened());
            ContentDetailsPage.CloseAICCModal();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContinueButtonDisplsplay());
            _test.Log(Status.Pass, "Verify is Continue button display");
            TC60004 = true;
        }
        public void tc_59988_AICC_Banner_Actions_Request_Access()
        {
            #region Create a AICC course
            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 + "TC59988");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());

            AdminContentDetailsPage.AccessApproval.ClickEditButton();
            _test.Log(Status.Info, "Click Edit Content");
            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Assign approval path");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");

            #endregion
            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("").Login();
            CommonSection.SearchCatalog(AICCCourseTitle + "TC59988");
            _test.Log(Status.Info, "Searched created AICC Course");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC59988");
            _test.Log(Status.Info, "Click on AICC Course title");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay());
            _test.Log(Status.Pass, "Verify is Request Access button display on Banner");
            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.ContentBanner.ClickViewRequestHistory();
            Assert.IsTrue(ContentDetailsPage.isHistorywindowopened());

            Assert.IsTrue(ContentDetailsPage.Historywin.isfieldsdisplay(AICCCourseTitle + "TC59988", "Content type", "status"));
            Driver.Instance.SelectWindowClose2("History", Meridian_Common.parentwdw);

            ContentDetailsPage.AccessApprovalModal.SubmitCancelRequestAccess("ForTest");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay());
            _test.Log(Status.Info, "Verify Cancel Request access wotk flow");
            TC59990 = true;
        }
        public void P20_1_tc_26953_View_Prerequisities_to_AICC_Course()
        {
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "TC26953");
            _test.Log(Status.Info, "Create a general Course for Prerequisite");
            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.ClickEditContent_New19_2();
            DocumentPage.ClickButton_CheckIn();
            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 + "TC26953");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Document is Created");
            ContentDetailsPage.Edit_Prerequisites(GeneralCourseTitle + "TC26953");
            _test.Log(Status.Pass, "Click edit Prerequisite and add Prerequisite");
            //Assert.IsTrue(Driver.comparePartialString(" The selected items were added as prerequisites." +
            //    " If values were entered for any prerequisite's attributes, then these values were saved.", PrerequisitesPage.GetSuccessMessage()));
            //_test.Log(Status.Pass, "Verify  Success message");
            PrerequisitesPage.Click_BreadCrumb();
            _test.Log(Status.Pass, "Click breadcrumbs");
            ContentDetailsPage.Click_Check_in();
            _test.Log(Status.Info, "Click on Check In");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click on View As Learner");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay());
            _test.Log(Status.Pass, "Verify prerequisite Accordian is Displayed");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to continue"));
            _test.Log(Status.Pass, "Verify  information");

            Assert.IsTrue(ContentDetailsPage.OverviewTab.Prerequisiteportlet.isPrerequisiteStatusDisplayed());
            _test.Log(Status.Pass, "Verify prerequisite status is Displayed");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.Prerequisiteportlet.isPrerequisiteCostDisplayed());
            _test.Log(Status.Pass, "Verify prerequisite Cost is Displayed");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.Prerequisiteportlet.isPrerequisiteTitleDisplayed());
            _test.Log(Status.Pass, "Verify prerequisite Cost is Displayed");
            ContentDetailsPage.OverviewTab.Prerequisiteportlet.ClickPrerequisiteContentTitle(GeneralCourseTitle + "TC26953");
            _test.Log(Status.Info, "Click Prerequisite Title");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(GeneralCourseTitle + "TC26953"));
        }
        public void tc_60459_Public_catalog_banner_actions_for_AICC()
        {
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC60459");
            _test.Log(Status.Info, "Create a general Course for Prerequisite");
            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.ClickEditContent_New19_2();
            DocumentPage.ClickButton_CheckIn();
            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 + "TC60459");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Document is Created");
            ContentDetailsPage.Edit_Prerequisites(generalcoursetitle + "TC60459");
            _test.Log(Status.Pass, "Click edit Prerequisite and add Prerequisite");
            PrerequisitesPage.Click_BreadCrumb();
            _test.Log(Status.Pass, "Click breadcrumbs");
            ContentDetailsPage.Accordians.ClickEdit_Image();
            ImagePage.UploadnewImageFile();
            _test.Log(Status.Info, "Upload any Image file to content");
            ContentDetailsPage.Click_editContentSharing();
            ContentSharingPage.PublishtoPublishcatalog();
            ContentDetailsPage.Click_Check_in();
            _test.Log(Status.Info, "Click on Check In");

            CommonSection.Logout();
            LoginPage.ClickBrowsePublicCatalogLink();
            CommonSection.SearchCatalog(AICCCourseTitle + "TC60459");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC60459");
            Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(AICCCourseTitle + "TC60459"));
            _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.ContentBanner.isContentImagedisplay());
            _test.Log(Status.Pass, "Verify Image is display on Banner");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay());
        }
Ejemplo n.º 9
0
        public void a16_As_a_learner_I_want_to_see_what_surveys_are_required_and_when_they_are_available_AICC_Course_35688()
        {
            #region Create AICC Course
            Document documentpage    = new Document(driver);
            string   expectedresult  = "Summary";
            string   expectedresult1 = "The course was created.";
            AICC     aicccourse      = new AICC(driver);
            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);
            // UploadaiccPage.UploadfileandClickCreate();
            CreateAICCPage.CreateAICC(AICCTitle + "TC35688");
            _test.Log(Status.Info, "Create a new AICC Course");
            #endregion
            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(AICCTitle + "TC35688");
            SearchResultsPage.ClickCourseTitle(AICCTitle + "TC35688");
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysDisplay(Surveytitle_OnEnroll, Surveytitle_OnContentComplete));
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysareNotavailable);
            ContentDetailsPage.ClickEnroll();
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable(Surveytitle_OnEnroll));
            //AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent();
            // Assert.IsFalse(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable(Surveytitle_OnContentComplete));
        }
        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());
        }
        public void tc_59939_Learner_view_AICC_history_tab_on_Content_Details_page()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            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 + "TC59939");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            DocumentPage.ClickButton_CheckIn();
            _test.Log(Status.Info, "A new AICC is Created");
            CommonSection.SearchCatalog(AICCCourseTitle + "TC59939");
            _test.Log(Status.Info, "Searched created AICC");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC59939");
            _test.Log(Status.Info, "Click on Aicc course title");
            Assert.IsFalse(ContentDetailsPage.isHistoryTabDisplay_GeneralCourse());
            _test.Log(Status.Pass, "Verify History tab is not displayed");
            ContentDetailsPage.ContentBanner.Click_Enrollbutton();
            ContentDetailsPage.ContentBanner.Click_Startbutton();
            Assert.IsTrue(ContentDetailsPage.isAICCCourseOpened());
            ContentDetailsPage.CloseAICCModal();

            Assert.IsTrue(ContentDetailsPage.isHistoryTabDisplay_GeneralCourse());
            _test.Log(Status.Pass, "Verify History tab is displayed");
            //Assert.IsFalse(ContentDetailsPage.ContentBanner.isViewCertificationButtonDisplay());
            //Assert.IsTrue(ContentDetailsPage.ContentBanner.isReviewLinkDisplay());
            //Assert.IsTrue(ContentDetailsPage.ContentBanner.isRetakeLinkDisplay());

            ContentDetailsPage.Click_HistoryTab_Curriculum();
            //Assert.IsFalse(ContentDetailsPage.Historytab.isViewCertificateButtonDisplay());
            //_test.Log(Status.Pass, "Verify View Certification button should not display");
            Assert.IsTrue(ContentDetailsPage.HistoryTab.isStatusDisplay("Started"));
            _test.Log(Status.Pass, "Verify Completed status displayed");
        }
Ejemplo n.º 12
0
        public void tc_58349_As_a_learner_I_want_to_know_what_are_the_options_to_satisfy_prerequisites_When_admin_has_selected_minimum_Prerequisites_to_be_completed_in_AICC()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            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");
            string actualresult = driver.gettextofelement(By.XPath("//h1[contains(.,'Summary')]"));

            CreateAICCPage.Title(AICCTitle + "TC58349");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            AdminContentDetailsPage.Click_EditPrerequisitePanel();
            _test.Log(Status.Info, "Click Edit Button of prerequsite panel");

            Assert.IsTrue(PrerequisitesPage.VerifyAddPrerequisitesButtonIsDisplayed());
            _test.Log(Status.Pass, "Verify Add Prerequisite Button is Displayed");
            PrerequisitesPage.Click_AddPrerequisitesButton();
            _test.Log(Status.Info, "Click Add Prerequisite Button");

            Assert.IsTrue(PrerequisitesPage.VerifyContentIsDisplayedInAddPrerequisitesModal());
            _test.Log(Status.Pass, "Verify Add Prerequisite Modal is Displayed");
            PrerequisitesPage.SelectandAddPrerequisitesToAssign();
            _test.Log(Status.Info, "Select prerequisites to assign");
            // Assert.IsTrue(Driver.comparePartialString("Success  The selected items were added as prerequisites. If values were entered for any prerequisite's attributes, then these values were saved.", PrerequisitesPage.GetSuccessMessage()));
            _test.Log(Status.Pass, "Verify Success message");
            Assert.IsTrue(PrerequisitesPage.VerifyPrerequisitesAdded() >= 1);
            _test.Log(Status.Pass, "Verify Prerequisites are added");
            PrerequisitesPage.prerequisitesmustbecompleteddropdown.Selectlist("2");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("").Login();
            CommonSection.SearchCatalog(AICCTitle + "TC58349");
            SearchResultsPage.ClickCourseTitle(AICCTitle + "TC58349");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.Prerequisiteportlet.isPortletheadershowes("Warning\r\nComplete the prerequisites to access this item. 2 of 10 required."));
        }
Ejemplo n.º 13
0
        public void tc_57591_As_an_admin_I_want_to_attach_an_Evaluation_for_AICC_course()
        {
            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");
            string actualresult = driver.gettextofelement(By.XPath("//h1[contains(.,'Summary')]"));

            CreateAICCPage.Title(AICCTitle + "TC57591");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.isSurveyAccordiandisplayed());
            _test.Log(Status.Info, "Verify Survey and Evaluations accordian display on RHS side");
            ContentDetailsPage.Accordians.ClickManage_Survey();
            _test.Log(Status.Info, "Click Survey Manage button");
            Assert.IsTrue(SurveysPage.IsSurveyPageCompenetsarepresent("Add btn", "resultgrid"));
            _test.Log(Status.Info, "Verify Survey page has Add Surveys button and result grid has no record");
            SurveysPage.ClickAssignSurveysnew();
            _test.Log(Status.Info, "Click on Assign Surveys Button");
            Assert.IsTrue(SurveysPage.isAddSurveyandEvaluationsModalDisplay());
            Assert.IsTrue(SurveysPage.AddSurveyModal.IsSearchfieldsDisplayed());
            _test.Log(Status.Pass, "Verify Search, Result grid, Add button on Add survey Modal");
            SurveysPage.AddSurveyModal.ClickAllTypedropdown();
            Assert.IsTrue(SurveysPage.AddSurveyModal.AllTypedropdown.isEvaluationdisplay());
            _test.Log(Status.Pass, "Verify Evaluation display in alltype dropdown");
            SurveysPage.AddSurveyModal.AllTypedropdown.ClickEvaluations();
            SurveysPage.AddSurveyModal.clickSearchicon();
            Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isEvaluationsDisplay());
            _test.Log(Status.Pass, "Verify Evaluations are display in Result grid");
            Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isRequiredChangeble());
            _test.Log(Status.Pass, "Verifyis Require is changeable");
            Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isAvailableChangeble());
            _test.Log(Status.Pass, "Verify Available is changeable");

            ContentDetailsPage.DeleteContent();
        }
        public void a04_As_an_admin_managing_equivalencies_I_want_to_find_content_to_add_as_a_new_equivalency_for_AICC_52241()
        {
            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");
            string actualresult = driver.gettextofelement(By.XPath("//h1[contains(.,'Summary')]"));

            CreateAICCPage.Title(AICCTitle + "TC52241");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");

            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();
        }
Ejemplo n.º 15
0
        public void tc_7401_Create_a_new_AICC_course()
        {
            Document documentpage = new Document(driver);
            // driver.UserLogin("admin", browserstr);
            string expectedresult  = "Summary";
            string expectedresult1 = "The course was created.";
            //driver.openadminconsolepage();
            AICC    aicccourse  = new AICC(driver);
            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);
            //    Assert.IsTrue(Driver.checkTagsonContentCreationPage(true));
            GeneralCoursePage.SearchTagForNewContent(tagname + "TC7401");
            _test.Log(Status.Info, "Searching Tag.");
            string actualresult = driver.gettextofelement(By.XPath("//h1[contains(.,'Summary')]"));

            Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            CreateAICCPage.Title(AICCCourseTitle + "TC7401");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            //  Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC7401')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname + "TC7401", s);
            _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(AICCCourseTitle + "TC7401");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(AICCCourseTitle + "TC7401"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
        }
        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 P20_1_tc_27144_Curriculums_Containing_an_AICC_Course()
        {
            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 + "TC27144");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Document is Created");
            ContentDetailsPage.Click_Check_in();

            CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC27144");
            _test.Log(Status.Info, "Create A new Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            CurriculumContentPage.ClickAddCurriculumBlock();
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs(block + "_UnOrdered" + "_TC27144");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(AICCCourseTitle + "TC27144");

            DocumentPage.ClickButton_CheckIn();

            CommonSection.SearchCatalog(AICCCourseTitle + "TC27144");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC27144");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(AICCCourseTitle + "TC27144"));
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPartoftheseCollectionDisplay());
            _test.Log(Status.Pass, "Verify is part of these collestion portlet display");
            ContentDetailsPage.OverviewTab.clicktoexpandPartoftheseCollectionPortlet();
            Assert.IsTrue(ContentDetailsPage.OverviewTab.PartoftheseCollection.isContentdisplay(curriculamtitle + "_TC27144"));
            _test.Log(Status.Pass, "Verify Curriculum title is display in part of these collestion portlet");
        }
        public void tc_59985_AICC_Banner_Actions_Course_Info_and_Navigation()
        {
            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 + "TC59985");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());

            ContentDetailsPage.Accordians.ClickEdit_Image();
            ImagePage.UploadnewImageFile();
            _test.Log(Status.Info, "Upload any Image file to content");
            StringAssert.AreEqualIgnoringCase("The file was uploaded.", Driver.getSuccessMessage());
            _test.Log(Status.Pass, "Verify feedback message");
            //ContentDetailsPage.AddLocale();   don't have other local in external
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");

            CommonSection.SearchCatalog(AICCCourseTitle + "TC59985");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC59985");
            Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(AICCCourseTitle + "TC59985"));
            _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.ContentBanner.isContentImagedisplay());
            _test.Log(Status.Pass, "Verify Image is display on Banner");
        }
        public void tc_60021_AICC_Banner_Actions_Access_Keys()
        {
            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 + "TC60021");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            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");
            CommonSection.Logout();
            LoginPage.LoginAs("srlearner105").WithPassword("").Login();
            CommonSection.SearchCatalog(AICCCourseTitle + "TC60021");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC60021");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay());
            ContentDetailsPage.OverviewTab.click_AddtoCart();

            CommonSection.Completepurchage(AICCCourseTitle + "TC60021");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay());
            ContentDetailsPage.ContentBanner.Click_Enrollbutton();

            Assert.IsTrue(ContentDetailsPage.ContentBanner.isStartbuttonDisplay());
        }
        public void tc_59883_AICC_Overview_Tab_Prerequisites_Training_Assignments_Surveys_Evaluation()
        {
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "TC59883");
            _test.Log(Status.Info, "Create a general Course for Prerequisite");
            DocumentPage.ClickButton_CheckIn();
            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 + "TC59883");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Document is Created");
            ContentDetailsPage.Edit_Prerequisites(GeneralCourseTitle + "TC59883");
            _test.Log(Status.Pass, "Click edit Prerequisite and add Prerequisite");
            //Assert.IsTrue(Driver.comparePartialString(" The selected items were added as prerequisites." +
            //    " If values were entered for any prerequisite's attributes, then these values were saved.", PrerequisitesPage.GetSuccessMessage()));
            //_test.Log(Status.Pass, "Verify  Success message");
            PrerequisitesPage.Click_BreadCrumb();
            _test.Log(Status.Pass, "Click breadcrumbs");
            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.Click_backbutton();
            DocumentPage.ClickButton_CheckIn();

            #region cretate TA
            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage >> Training Page");
            TrainingPage.TrainingAssignments.Click_CreateTrainingAssignment();
            _test.Log(Status.Info, "Click Create Training Assignment link from training assignment portlet");
            CreateTrainingAssignmentPage.Create(TATitle + "_TC59883");
            _test.Log(Status.Info, "A new training assignement created as draft");
            CreateTrainingAssignmentPage.ContentTab.ClickAddContent();
            _test.Log(Status.Info, "Click Add Content");
            CreateTrainingAssignmentPage.ContentTab.AddContentModal.AddContent(AICCCourseTitle + "TC59883");
            _test.Log(Status.Info, "Content added to training assignment");
            CreateTrainingAssignmentPage.AssignessTab.ClickAddAssignees();
            _test.Log(Status.Info, "Click Add Assignees button in Assignees tab");
            CreateTrainingAssignmentPage.AssignessTab.AddAssignessModal.AddAssigne("learner 101");
            _test.Log(Status.Info, "A user added to training assignment");
            CreateTrainingAssignmentPage.DueDateTab.ClickChage();
            _test.Log(Status.Info, "Click Chage button in Due Date tab");
            string previousCompletions = CreateTrainingAssignmentPage.DueDateTab.AssignmentDueDateModal.SetPreviousCompletionsYesandRecurringNo("days");
            _test.Log(Status.Info, "Set Previous Completions count and save for Non recurring assignement");
            CreateTrainingAssignmentPage.ClickDueDateTab();
            _test.Log(Status.Info, "Click Chage button in Due Date tab");
            Assert.IsTrue(CreateTrainingAssignmentPage.DueDateTab.VerifyPreviousComplistion(previousCompletions));
            _test.Log(Status.Pass, "Verify Copletion count saved properly");
            CreateTrainingAssignmentPage.clickAssignButton();
            #endregion

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner101").WithPassword("").Login();

            CommonSection.SearchCatalog(AICCCourseTitle + "TC59883");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC59883");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isTrainingAssignmentportletDisplay());
            Assert.IsTrue(ContentDetailsPage.OverviewTab.TrainingAssignment.isDuedatedisplay());
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay());
            Assert.IsTrue(ContentDetailsPage.OverviewTab.issurveyPortletisDisplay());
        }
Ejemplo n.º 21
0
        public void tc_7402_Manage_an_AICC_course()
        {
            Document documentpage = new Document(driver);

            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);
            CreateAICCPage.Title(AICCCourseTitle + "TC7402");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            CommonSection.Manage.Training();
            TrainingPage.SearchRecord(AICCCourseTitle + "TC7402");

            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC7402");
            ContentDetailsPage.Summary.ClickEdit();
            Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");

            GeneralCoursePage.SearchTagForNewContent(tagname + "TC7402");
            CreateAICCPage.AvailableinCatalog.ClicktoUncheck();
            SummaryPage.ClickSavebutton();
            //_test.Log(Status.Info, "Searching Tag.");
            //if (!driver.existsElement(By.XPath("//*[@id='MainContent_MainContent_UC1_FormView1_CNTLCL_DESCRIPTION']")))
            //{
            //    //driver.SelectFrame();
            //    driver.GetElement(By.CssSelector("body")).ClickWithSpace();
            //    driver.GetElement(By.CssSelector("body")).SendKeysWithSpace(ExtractDataExcel.MasterDic_genralcourse["Desc"]);
            //    //  driver.SwitchTo().DefaultContent();
            //}
            //else
            //{
            //    driver.GetElement(By.XPath("//*[@id='MainContent_UC1_FormView1_CNTLCL_DESCRIPTION']")).SendKeysWithSpace(ExtractDataExcel.MasterDic_genralcourse["Desc"]);
            //}
            //driver.ClickEleJs(By.XPath("//input[@id='MainContent_MainContent_UC1_Save']"));
            //// driver.SwitchTo().DefaultContent();
            //driver.WaitForElement(By.XPath("//*[contains(@class,'alert alert-success')]"));


            //driver.Checkin();
            // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC7402')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname + "TC7402", s);

            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No"));
            CommonSection.SearchCatalog(AICCCourseTitle + "TC7402");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(AICCCourseTitle + "TC7402"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage>>Training Page");
            TrainingPage.SearchRecord(AICCCourseTitle + "TC7402");
            _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(AICCCourseTitle + "TC7402"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
        }