public void P20_1_a24_View_SCORM_Course_Details_26366()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login(); //Login as regular user (Learner)

            CommonSection.CreteNewScorm(scormtitle + "TC26366");
            _test.Log(Status.Info, "Creating New Scorm");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Content is Created");
            CommonSection.SearchCatalog('"' + scormtitle + "TC26366" + '"');
            _test.Log(Status.Info, "Search created document from Catalog");
            SearchResultsPage.ClickCourseTitle(scormtitle + "TC26366");
            _test.Log(Status.Info, "Click searched document title");

            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(scormtitle + "TC26366"));
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay());
        }
Exemple #2
0
        public void a03_Enroll_in_General_Course_26224()
        {
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC26224");
            DocumentPage.ClickButton_CheckIn();
            #endregion

            CommonSection.SearchCatalog(GeneralCourseTitle + "_TC26224");
            SearchResultsPage.ClickCourseTitle(GeneralCourseTitle + "_TC26224");
            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.isOpenItembuttonDisplay_GeneralCourse());
            ContentDetailsPage.Click_ReviewTab_GeneralCourse();
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay());
            Assert.IsTrue(ContentDetailsPage.isHistoryTabDisplay_GeneralCourse());
        }
 public void a12_Bundle_Learner_Views_Reviews_Tab_57571()
 {
     Driver.CreateNewAccount();
     _test.Log(Status.Info, "Create new user account");
     LoginPage.LoginAs(Meridian_Common.NewUserId).WithPassword("").Login();
     CommonSection.SearchCatalog("c");
     driver.FindElement(By.XPath("//a[@href='/ContentDetails.aspx?id=9D8D1EAF90414DE88B490AE95BDB6663']")).Click();
     driver.FindElement(By.XPath("//a[contains(@class,'btn btn-primary btn-lg')]")).Click();
     driver.FindElement(By.XPath("//a[contains(.,'Enroll')]")).Click();
     driver.FindElement(By.XPath("//a[contains(.,'Start')]")).Click();
     _test.Log(Status.Info, "Learner Started content and closed out modal.");
     driver.FindElement(By.XPath("//a[@aria-controls='reviewsTab']")).Click();
     _test.Log(Status.Info, "Click On Reviews Tab.");
     ContentDetailsPage.Bundle_ReviewsTab.isWriteaReviewButtondisplay();
     _test.Log(Status.Info, "Verify ' Write Review' button is visible");
     ContentDetailsPage.Bundle_ReviewsTab.WriteaReview("This Course ws needed", "This was the best Course taken to Date");
     _test.Log(Status.Info, "Review Succussful");
 }
Exemple #4
0
 public void learner_jump_to_list_of_content_that_is_pertinent_toward_meeting_their_required_credit_hours_33938()
 {
     //login with a admin
     // Create a Credit type from Administer>Training.Content Management>Credit Types like with name DV_Credit_Type, assing this credit type to some content like gen. course or aicc course
     //Now create a Certification course i.e. DV_Cert_CV_0507 , and add credit type, DV_Credit_Type and give value =3 in this
     //login with learner
     CommonSection.Logout();
     LoginPage.LoginAs("saiflearner").WithPassword("").Login();
     CommonSection.SearchCatalog("saiflearner");
     SearchResultsPage.ClickCourseTitle("DV_Cert_CV_0507");
     _test.Log(Status.Info, "Search Certification DV_Cert_CV_0507 from catalog search and open it");
     Assert.IsTrue(ContentDetailsPage.isTextDisplayed("DV_Cert_CV_0507"));
     _test.Log(Status.Info, "Verify Certification course name");
     ContentDetailsPage.ClickFindQualifyingContentButton();
     _test.Log(Status.Info, "Click  Find Qualifying Content button");
     Assert.IsTrue(SearchResultsPage.VerifyFacetSelected("DV_Credit_Type"));
     _test.Log(Status.Info, "Verify Credit type filter is applied and DV_Credit_type is selected as facet");
 }
Exemple #5
0
 public void b7_Express_Interest_14261()
 {
     CommonSection.Logout();
     _test.Log(Status.Info, "Logout of the Site Admin Account");
     LoginPage.LoginAs("ak_learner").WithPassword("").Login();
     _test.Log(Status.Info, "Login with Learner's Account");
     CommonSection.SearchCatalog("");
     _test.Log(Status.Info, "Click Catalog Search Button");
     Assert.IsTrue(SearchResultsPage.isSearchResultListDisplayed(""));
     _test.Log(Status.Pass, "Verify Search list is Displayed");
     Assert.IsTrue(SearchResultsPage.isMakeAContentSuggestionDisplayed());
     _test.Log(Status.Pass, "Verify Make a content Suggestion is Displayed");
     SearchResultsPage.ClickMakeAContentSuggestion();
     _test.Log(Status.Info, "Click MAke A Content Suggestion Link");
     Assert.IsTrue(SearchResultsPage.isExpressInterestWindowDisplayed());
     _test.Log(Status.Pass, "Verify Express Interest Window is Displayed");
     Assert.IsTrue(ExpressInterest.isTopicOfInterestDisplayed());
     _test.Log(Status.Pass, "Verify Topic Of Interest is Displayed");
     Assert.IsTrue(ExpressInterest.isContentTypeDisplayed());
     _test.Log(Status.Pass, "Verify Content Type is Displayed");
     Assert.IsTrue(ExpressInterest.isReasonDisplayed());
     _test.Log(Status.Pass, "Verify Reason is Displayed");
     Assert.IsTrue(ExpressInterest.isISeekTrainingAfterDisplayed());
     _test.Log(Status.Pass, "Verify I Seek Training After is Displayed");
     Assert.IsTrue(ExpressInterest.isISeekTrainingBeforeDisplayed());
     _test.Log(Status.Pass, "Verify I Seek Training Before is Displayed");
     Assert.IsTrue(ExpressInterest.isIPreferToTrainDisplayed());
     _test.Log(Status.Pass, "Verify I Prefer To Train is Displayed");
     Assert.IsTrue(ExpressInterest.isLocationDisplayed());
     _test.Log(Status.Pass, "Verify Location is Displayed");
     Assert.IsTrue(ExpressInterest.isAdditionalInformationDisplayed());
     _test.Log(Status.Pass, "Verify Additional Information is Displayed");
     Assert.IsTrue(ExpressInterest.isCancelButtonDisplayed());
     _test.Log(Status.Pass, "Verify Cancel Button is Displayed");
     Assert.IsTrue(ExpressInterest.isSubmitButtonDisplayed());
     _test.Log(Status.Pass, "Verify Submit Button is Displayed");
     ExpressInterest.SubmitWith("Topic Of Interest", "Document", "Interested in a different topic", "1/8/2019",
                                "2/22/2019", "Mornings", "India", "Training is good for EVERYBODY");
     _test.Log(Status.Info, "Fill Express interest Form and Submit It");
     Assert.IsTrue(Driver.comparePartialString("The item was submitted", Driver.getSuccessMessage()));//The item was submitted
     _test.Log(Status.Pass, "Verify Feedback is Displayed");
     Assert.IsTrue(SearchResultsPage.isSearchResultListDisplayed(""));
     _test.Log(Status.Pass, "Verify Search list is Displayed");
 }
Exemple #6
0
        public void a14_Self_Enroll_in_Classroom_Course_14432()
        {
            #region create new course, add section to it and enroll
            CommonSection.CreateLink.ClassroomCourse();
            _test.Log(Status.Info, "Opened Create Classroom Course Page");
            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle);
            _test.Log(Status.Info, "New Classroom Course Created");
            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            _test.Log(Status.Pass, "Verify successful message");
            ManageClassroomCoursePage.Clicktab("Sections");
            _test.Log(Status.Info, "Click on Sections Tab");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            _test.Log(Status.Info, "Click on Add new Section Button");
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            _test.Log(Status.Info, "Filled Title as Section1");
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            // ManageClassroomCoursePage.CreateSection.SectionEndTime("");

            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("1");
            _test.Log(Status.Info, "Filled Max Capacity to 11");
            ManageClassroomCoursePage.SelectWaitListasYes();
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Click on Create button");
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            _test.Log(Status.Pass, "New Classroom Course CreatedVerify Section1 link is present on screen");
            //Assert.IsTrue(Driver.comparePartialString("Success", ClassroomCoursePage.GetUpdatedSuccessMessage()));
            // _test.Log(Status.Pass, "Create New Course Section and Event");
            CommonSection.Logout();
            #endregion
            #region Login with a Learner, search classroom course and enroll
            LoginPage.LoginAs("userreg_0403012001people1").WithPassword("").Login();
            _test.Log(Status.Pass, "Login as a Learner");
            CommonSection.Learner.CurrentTraining();
            _test.Log(Status.Info, "Open Current trainging Page");
            CommonSection.SearchCatalog('"' + classroomcoursetitle + '"');
            _test.Log(Status.Info, "Search course name as" + classroomcoursetitle);
            CatalogPage.ClickonSearchedCatalog(classroomcoursetitle);
            _test.Log(Status.Info, "Click on Course title");
            CatalogPage.EnrollinClassroomCourse();
            _test.Log(Status.Info, "Click Enroll button");
            Assert.IsTrue(CatalogPage.GetCurrentEnrolledTraining(classroomcoursetitle));
            _test.Log(Status.Pass, "Enrolled classroom course is displaying");
            #endregion
        }
Exemple #7
0
 public void b3_Save_Item_Form_Content_Details_34775()
 {
     CommonSection.Logout();
     _test.Log(Status.Info, "Logout of the Site Admin Account");
     LoginPage.LoginAs("siteadmin").WithPassword("").Login();
     _test.Log(Status.Info, "Login with Learner's Account");
     CommonSection.CreateGeneralCourse(generalcoursetitle + "TC34835");
     CommonSection.SearchCatalog(generalcoursetitle + "TC34835");
     _test.Log(Status.Info, "Click Catalog Search Button");
     //  CommonSection.SearchCatalog("");
     // _test.Log(Status.Info, "Click Catalog Search Button");
     SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC34835");
     _test.Log(Status.Info, "Click on Course Title");
     ContentDetailsPage.ClickSaveButton();
     _test.Log(Status.Info, "Click on Save Button of Content Detail Page");
     Assert.IsTrue(ContentDetailsPage.isSaveButtonIconGreen());
     _test.Log(Status.Pass, "Verify Save Button icon is Green");
     Assert.IsTrue(ContentDetailsPage.isToolTipDisplayed("Saved"));
     _test.Log(Status.Pass, "Verify Tooltip Display Saved");
     //ContentDetailsPage.ClickSaveButton();
     //_test.Log(Status.Info, "Click on Save Button of Content Detail Page");
     //Assert.IsFalse(ContentDetailsPage.isSaveButtonIconGreen());
     //_test.Log(Status.Pass, "Verify Save Button icon is Plane");
     //Assert.IsTrue(ContentDetailsPage.isToolTipDisplayed("Save"));
     //_test.Log(Status.Pass, "Verify Tooltip Display Save and the content get UnSaved");
     //ContentDetailsPage.ClickSaveButton();
     //_test.Log(Status.Info, "Click on Save Button of Content Detail Page");
     CommonSection.Dropdowntoggle.SavedContent();
     _test.Log(Status.Info, "Open Saved Content Form Dropdown Toggle");
     Assert.IsTrue(SavedContentPage.isSavedDataDisplayedinResult(generalcoursetitle + "TC34835"));
     _test.Log(Status.Pass, "Verify content is Displayed");
     //Assert.IsTrue(SavedContentPage.isSavedDataDisplayed(""));
     //_test.Log(Status.Pass, "Verify content is Displayed");
     //SavedContentPage.ClickSaveButton();
     //_test.Log(Status.Info, "Click Save Button in Saved content Page");
     //Assert.IsFalse(SavedContentPage.isSaveButtonIconGreen());
     //_test.Log(Status.Pass, "Verify Save Button icon is Plane");
     //Assert.IsTrue(SavedContentPage.isToolTipDisplayed("Save"));
     //_test.Log(Status.Pass, "Verify Tooltip Display Save and the content get UnSaved");
     //CommonSection.Dropdowntoggle.SavedContent();
     //_test.Log(Status.Info, "Open Saved Content Form Dropdown Toggle");
     //Assert.IsFalse(SavedContentPage.isSavedDataDisplayed(""));
     //_test.Log(Status.Pass, "Saved content is not Displayed");
 }
        public void Upload_Launch_Course()
        {
            CommonSection.CreateLink.SCORM();
            _test.Log(Status.Info, "open scorm page");
            CreatePage.ClickBrowsebutton();
            _test.Log(Status.Info, "browse the content and click create button");
            //  //  CreatePage.UploadScormfile("\\fileserver\\maindrive\\product_team\\SCORM\\SCORM_1_2\\maritime_navigation_exam_only.zip");
            //  CreatePage.ClickCreatebutton();
            Assert.IsTrue(SummaryPage.Title == "Summary");
            StringAssert.AreEqualIgnoringCase("The course was created.", SummaryPage.GetSuccessMessage(), "Error message is different");
            SummaryPage.UpdateTitle("Maritime Navigation - Exam only for Migration Test");
            //   SummaryPage.ClickSavebutton();
            StringAssert.AreEqualIgnoringCase("The changes were saved.", AdminContentDetailsPage.GetSuccessMessage(), "Error message is different");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Checkin scorm course");
            CommonSection.CatalogSearchText("Migration");
            _test.Log(Status.Info, "search migration");
            Assert.IsTrue(SearchResultsPage.CheckSearchRecord("Maritime Navigation - Exam only for Migration Test") >= 1);
            SearchResultsPage.ClickCourseTitle("Maritime Navigation - Exam only for Migration Test");
            _test.Log(Status.Info, "opens searched content link");
            Assert.IsTrue(AdminContentDetailsPage.CheckCourseTitle("Maritime Navigation - Exam only for Migration Test"));
            AdminContentDetailsPage.ClickOpenItembutton();
            _test.Log(Status.Info, "Enrols and open the scorm course");
            Assert.IsTrue(CourseLaunchModalPage.Exist("Maritime Navigation - Exam only for Migration Test"));
            // CourseLaunchModalPage.ClickBrowserX();
            Assert.IsTrue(AdminContentDetailsPage.CheckResumeButton());

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "open training page");
            TrainingPage.ManageContentPortlet.SearchForContent("Migration");
            _test.Log(Status.Info, "search for content migration");
            Assert.IsTrue(SearchResultsPage.CheckSearchRecord("Maritime Navigation - Exam only for Migration Test") >= 1);
            SearchResultsPage.ClickCourseTitle("Maritime Navigation - Exam only for Migration Test");
            _test.Log(Status.Info, "click the searjced title link");
            AdminContentDetailsPage.Summary.ClickViewButton();                                        //need towrite the code
            _test.Log(Status.Info, "CLick view button");
            Assert.IsTrue(SummaryPage.Title == "Maritime Navigation - Exam only for Migration Test"); //need towrite the code
            Assert.IsTrue(AdminContentDetailsPage.CheckCourseTitleOnClickingEditButton("Maritime Navigation - Exam only for Migration Test"));
            AdminContentDetailsPage.DeleteContent();
            _test.Log(Status.Info, "deleting the content");
            //  StringAssert.StartsWith("Success", ContentDetailsPage.GetRemovalSuccessMessage(), "Error message is different");
            CommonSection.SearchCatalog("Maritime Navigation - Exam only for Migration Test");
            Assert.IsTrue((SearchResultsPage.ReturnFirstRecordTitle() != "Maritime Navigation - Exam only for Migration Test"));
        }
 public void tc_60131_Document_Banner_Actions_Open_Item()
 {
     CommonSection.CreteNewDocuemntwithFile(DocumentTitle + "TC60313");
     _test.Log(Status.Info, "Create a Document");
     DocumentPage.ClickButton_CheckIn();
     _test.Log(Status.Info, "A new Document is Created");
     CommonSection.SearchCatalog(DocumentTitle + "TC60313");
     _test.Log(Status.Info, "Searched created Document");
     SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC60313");
     _test.Log(Status.Info, "Click on DOcument title");
     Assert.IsFalse(ContentDetailsPage.isHistoryTabDisplay_GeneralCourse());
     _test.Log(Status.Pass, "Verify History tab is not displayed");
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay_GeneralCourse());
     _test.Log(Status.Pass, "Verify Open Item button display on banner");
     ContentDetailsPage.ContentBanner.ClickOpenItembutton();
     Assert.IsTrue(ContentDetailsPage.OverviewTab.iscontentOpenInline());
     ContentDetailsPage.OverviewTab.ExitInline();
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isMarkCompleteLinkdisplay());
 }
Exemple #10
0
        public void P20_1_a16_Self_Cancle_Waitlist_in_Classroom_Course_14510()  //Depend on 14509
        {
            CommonSection.SearchCatalog('"' + classroomcoursetitle + "TC14509" + '"');
            _test.Log(Status.Info, "Search created Classroom Course from Catalog");
            SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "TC14509");
            _test.Log(Status.Info, "Click searched Classroom course title");
            ContentDetailsPage.ContentBanner.Click_ScheduleButton();
            _test.Log(Status.Info, "Click at schedule tab");
            Assert.IsTrue(ContentDetailsPage.ScheduleTab.SectionPortlet.IsCancelWaitlistbuttonDisplay());
            // Assert.IsTrue(ContentDetailsPage.ScheduledCourse.IsCancelWaitlistbuttonDisplay());
            _test.Log(Status.Pass, "Verify Cancel Waitlist button Display for section");
            // ContentDetailsPage.ScheduledCourse.ClickCancelkWaitlistButton();
            ContentDetailsPage.ScheduleTab.SectionPortlet.ClickCancelkWaitlistButton();

            _test.Log(Status.Info, "Click Cancel Waitlist button");
            Assert.IsTrue(ContentDetailsPage.ScheduleTab.SectionPortlet.IsWaitlistbuttonDisplay());
            //Assert.IsTrue(ContentDetailsPage.ScheduledCourse.IsWaitlistbuttonDisplay());
            _test.Log(Status.Pass, "Verify Waitlist button Display for section");
        }
        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");
        }
Exemple #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."));
        }
        public void tc_60488_Public_catalog_banner_actions_for_Certification()
        {
            ContentDetailsPage.clickReturningUserLogin();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC60488");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreateLink.Certifications();
            CertificationPage.FillTitle(CertificatrTitle + "_TC60488");
            _test.Log(Status.Info, "Fill title");
            CertificationPage.ClickCreateCertification();
            _test.Log(Status.Info, "Click create");
            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");
            AdminContentDetailsPage.EditAndAddCertificationContent('"' + GeneralCourseTitle + "_TC60488" + '"');
            CertificatePage.Click_backbutton();
            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(CertificatrTitle + "_TC60488");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "_TC60488");
            Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(CertificatrTitle + "_TC60488"));
            _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());
            Assert.IsTrue(ContentDetailsPage.isContentTabdisplay());
            tc_60477 = true;
        }
Exemple #14
0
        public void b2_Save_Items_From_More_Like_This_Similar_Content_34774()
        //Prerequisite - Recently added in recommendation must be Enabled

        {
            //CommonSection.Logout();
            //_test.Log(Status.Info, "Logout of the Site Admin Account");
            //LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            //_test.Log(Status.Info, "Login with Learner's Account");
            CommonSection.SearchCatalog(generalcoursetitle + "TC34835");
            //CommonSection.SearchCatalog(generalcoursetitle + "TC34827");
            _test.Log(Status.Info, "Click Catalog Search Button");

            SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC34835");// generalcoursetitle + "TC34827");
            _test.Log(Status.Info, "Click on Course Title");
            Assert.IsTrue(ContentDetailsPage.isMoreLikeThisDisplayed());
            _test.Log(Status.Pass, "Verify More Like This Portlet is Displayed");
            ContentDetailsPage.MorelikethisPortlet.ClickSaveButton(generalcoursetitle + "TC34835");
            _test.Log(Status.Info, "Click Save Button in More Like This");
            //Assert.IsTrue(ContentDetailsPage.MorelikeThis.isSaveButtonIconGreen("GC_Reg0101491949TC34827"));
            //_test.Log(Status.Pass, "Verify Save Button icon is Green");
            // Assert.IsTrue(ContentDetailsPage.MorelikethisPortlet.isToolTipDisplayed("Saved"));
            // _test.Log(Status.Pass, "Verify Tooltip Display Saved and the content get Saved");
            string ContentSaved = ContentDetailsPage.MorelikethisPortlet.ContentTitle();

            //ContentDetailsPage.MorelikeThis.ClickSaveButton();
            //_test.Log(Status.Info, "Click Save Button in More Like This");
            //Assert.IsFalse(ContentDetailsPage.MorelikeThis.isSaveButtonIconGreen());
            //_test.Log(Status.Pass, "Verify Save Button icon is Plane");
            //Assert.IsTrue(ContentDetailsPage.MorelikeThis.isToolTipDisplayed("Save"));
            //_test.Log(Status.Pass, "Verify Tooltip Display Save and the content get UnSaved");
            //ContentDetailsPage.MorelikeThis.ClickSaveButton();
            //_test.Log(Status.Info, "Click Save Button in More Like This");
            CommonSection.Dropdowntoggle.SavedContent();
            _test.Log(Status.Info, "Open Saved Content Form Dropdown Toggle");
            Assert.IsTrue(SavedContentPage.isSavedDataDisplayedinResult(ContentSaved));
            _test.Log(Status.Pass, "Verify content is Displayed");
            //SavedContentPage.ClickSaveButton();
            //_test.Log(Status.Info, "Click Save Button in Saved content Page");
            //CommonSection.Dropdowntoggle.SavedContent();
            //_test.Log(Status.Info, "Open Saved Content Form Dropdown Toggle");
            //Assert.IsFalse(SavedContentPage.isSavedDataDisplayed(""));
            //_test.Log(Status.Pass, "Saved content is not Displayed");
        }
Exemple #15
0
        public void P20_1_tc_26218_Rate_Review_Survey()
        {
            CommonSection.CreateLink.Survey();
            SurveysPage.CreateNewSurvey(surveyTitle + "TC26218");
            _test.Log(Status.Info, "A new Survey Created");
            SurveyPage.Click_Publish();

            CommonSection.SearchCatalog(surveyTitle + "TC26218");
            SearchResultsPage.ClickCourseTitle(surveyTitle + "TC26218");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(surveyTitle + "TC26218"));
            _test.Log(Status.Pass, "Verify Content title is display on Banner");
            Assert.IsFalse(ContentDetailsPage.isreviewTabdisdisplay());
            _test.Log(Status.Pass, "Verify Tab is not display");
            ContentDetailsPage.ContentBanner.Click_TakeSurveybutton();
            ContentDetailsPage.closeSurveywindow(surveyTitle + "TC26218");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContinueButtonDisplsplay());
            Assert.IsFalse(ContentDetailsPage.isreviewTabdisdisplay());
            _test.Log(Status.Pass, "Verify Tab is not display after enroll into course");
        }
Exemple #16
0
        public void a05_Add_General_Course_to_Cart_26229()
        {
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC26229");
            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.ClickEditContent_New19_2();
            DocumentPage.ClickButton_CheckIn();
            #endregion

            CommonSection.SearchCatalog(GeneralCourseTitle + "_TC26229");
            SearchResultsPage.ClickCourseTitle(GeneralCourseTitle + "_TC26229");
            Assert.IsTrue(ContentDetailsPage.isAddToCartButtonDisplayed());

            ContentDetailsPage.ClickAddtoCart_GeneralCourse();
            // StringAssert.AreEqualIgnoringCase("Success\r\nThe item was added to the cart.\r\n×", Driver.getSuccessMessage(), "Error message is different");

            Assert.IsTrue(ContentDetailsPage.ClickAddtoCartPortlet.isAddedtocardinfodisplay());
            Assert.IsTrue(CommonSection.isCountincrease_ShopingCart());
        }
        public void Other()
        {
            CommonSection.SearchCatalog("");
            _test.Log(Status.Info, "do blank catalog search");
            //CommonSection.Learn.Home();
            HomePage.ClickAboutLink();
            _test.Log(Status.Info, "CLick about link");
            Assert.IsTrue(HomePage.ClickModalX());
            Assert.IsTrue(HomePage.Title == "Search Results");


            CommonSection.Administer.System.SystemAdministration.SystemCertificate("Certificates");
            _test.Log(Status.Info, "opens certificate page");
            Assert.IsTrue(SystemCertificatePage.Title == "System Certificate");
            SystemCertificatePage.Preview("Default");
            _test.Log(Status.Info, "CLick default button");
            Assert.IsTrue(CertificatePage.VerifyFileDownload("\\Certificate.pdf"));
            Assert.IsTrue(SystemCertificatePage.Title == "System Certificate");
        }
Exemple #18
0
 public void a10_View_General_Course_Certificate_26238()
 {
     CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC26238");
     DocumentPage.ClickButton_CheckIn();
     _test.Log(Status.Info, "A new Genaral Course with access approver Created");
     CommonSection.SearchCatalog(GeneralCourseTitle + "_TC26238");
     _test.Log(Status.Info, "Searched created Genaral Course");
     SearchResultsPage.ClickCourseTitle(GeneralCourseTitle + "_TC26238");
     _test.Log(Status.Info, "Click on Genaral Course title");
     AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent();
     _test.Log(Status.Info, "Click on Genaral Course title");
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isViewCertificationButtonDisplay());
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isReviewLinkDisplay());
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isRetakeLinkDisplay());
     ContentDetailsPage.ContentBanner.clickViewCertificateButton();
     Assert.IsTrue(ContentDetailsPage.isCertificateDisplayed());
     _test.Log(Status.Pass, "Verify certificate Page is displayed");
     Driver.focusParentWindow();
 }
Exemple #19
0
        public void a01_Learner_experience_certification_where_admit_set_certificate_be_automatically_granted_upon_content_completion_is_YES_defualt_57971()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Creating a Paid General Course");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC57971", "Test General Course");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreateLink.Certifications();
            _test.Log(Status.Info, "Click create>certification");
            CertificationPage.FillTitle(CertificatrTitle + "TC57971");
            _test.Log(Status.Info, "Fill title");
            Assert.IsTrue(CertificationPage.isShouldthecertificatebeautomaticallygranteduponcontentcompletion_lavelDisplay());    //AC1
            Assert.IsTrue(CertificationPage.automaticallygrantedcertificationDefaultValue("Yes"));                                //AC3
            Assert.IsTrue(CertificationPage.automaticallygrantedcertificationValuesare("Yes", "No, admin approval is required")); //AC2
            _test.Log(Status.Pass, "Verified is automatically granted certification lavel and default value is Yes");
            CertificationPage.ClickCreateCertification();
            _test.Log(Status.Info, "Click create");
            CertificatePage.addContentIntoCertificate(generalcoursetitle + "TC57971");
            CertificatePage.Click_backbutton();
            ContentDetailsPage.ClickCheckInbutton();

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

            CommonSection.SearchCatalog('"' + CertificatrTitle + "TC57971" + '"');
            _test.Log(Status.Info, "Searched" + CertificatrTitle + "TC57971" + "from Catalog");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC57971");
            _test.Log(Status.Info, "Clicked searched course title");
            ContentDetailsPage.ClickAccessItemButton_Certi();
            ContentDetailsPage.ContentItemsPortlet.ClickItemTitle(generalcoursetitle + "TC57971");
            ContentDetailsPage.ClickEnroll_CerficationGeneralCourse();
            AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent_Certification();
            CertificationDetailsPage.ClickBreadCrumb();
            Assert.IsTrue(ContentDetailsPage.certificationProgress() == "100% Completed"); //AC4
            Assert.IsTrue(ContentDetailsPage.IsViewCertificateButtondisplay());            //AC5
            //ContentDetailsPage.Click_HistoryTab_Curriculum();
            //Assert.IsTrue(ContentDetailsPage.HistoryTab.isViewCertificateButtonDisplay());  //AC6
            CommonSection.Transcript();
            TranscriptPage.ClickCertificationsTab();
            TranscriptPage.CertificationTab.sortbyDate("as");
            Assert.IsTrue(TranscriptPage.CertificationTab.isCertificationStatus(CertificatrTitle + "TC57971") == "Certified"); //AC7
        }
        public void P20_1_a01_Add_SCROM_Course_to_Cart_26227()
        {
            CommonSection.CreteNewScorm(scormtitle + "TC26227");
            _test.Log(Status.Info, "Creating New Scorm");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Scorm Course is Created");

            Assert.IsTrue(ContentDetailsPage.isCostNSalesTaxAccordiandisplayed());
            _test.Log(Status.Pass, "Verify Cost and Sales Tax Accordian Display");

            ContentDetailsPage.Accordians.ClickEdit_CostNSalesTax();
            _test.Log(Status.Info, "Click on Cost & SalesTax Accordian Edit button");
            Assert.IsTrue(CostPage.VerifyDifferentPortlets());
            _test.Log(Status.Pass, "Verify the Manage Sales Tax, Default Cost, Alternate Costs, Pricing Schedules sections are displayed");

            CostPage.DefaultCostAs("15").Save();
            _test.Log(Status.Info, "Enter Defailt Cost and Click Save");
            Assert.IsTrue(CostPage.Successmessage("The default cost was saved."));
            _test.Log(Status.Pass, "Verfy Default cost is saved");
            ContentDetailsPage.Click_Check_in();
            CommonSection.Logout();

            LoginPage.LoginAs("srlearner101").WithPassword("").Login();
            CommonSection.SearchCatalog('"' + scormtitle + "TC26227" + '"'); // Search for Bundle that has Promotional Video
            _test.Log(Status.Info, "Searched" + scormtitle + "TC26227" + "from Catalog");
            SearchResultsPage.ClickCourseTitle(scormtitle + "TC26227");      // Click on Bundle Title
            _test.Log(Status.Info, "Clicked searched course title");
            Assert.IsTrue(ContentDetailsPage.isAddToCartButtonDisplayed());  //57254 AC6
            ContentDetailsPage.ClickAddtoCart_GeneralCourse();
            //StringAssert.AreEqualIgnoringCase("Success\r\nThe item was added to the cart.\r\n×", Driver.getSuccessMessage(), "Error message is different");
            Assert.IsTrue(ContentDetailsPage.ClickAddtoCartPortlet.isAddedtocardinfodisplay());
            Assert.IsTrue(CommonSection.isCountincrease_ShopingCart());
            CommonSection.ClickShoppingCart();

            ShoppingCartPage.CompletePurchaseProcess();
            OrderPage.Click_PurchasedContentTitle();
            Assert.IsTrue(ContentDetailsPage.OverviewTab.Costportlet.isViewOrderlinkDisplay());
            ContentDetailsPage.OverviewTab.Costportlet.ClickViewOrderlink();
            Assert.IsTrue(OrderDetailsPage.VerifyPurchasedContent(scormtitle + "TC26227"));
            TC26372 = true;
            TC57930 = true;
        }
        public void tc_60017_View_the_Document_Review_and_rating_tab()
        {
            #region Create a general course
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC60016");
            _test.Log(Status.Info, "Create a Document");
            DocumentPage.ClickButton_CheckIn();
            #endregion

            //CommonSection.Logout();
            //LoginPage.LoginAs("srlearner103").WithPassword("password").Login();
            CommonSection.SearchCatalog(DocumentTitle + "TC60016");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC60016");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay_GeneralCourse());
            _test.Log(Status.Pass, "Veify Open Item display");
            ContentDetailsPage.Click_ReviewTab_GeneralCourse();
            Assert.IsFalse(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay());
            ContentDetailsPage.ContentBanner.ClickOpenItembutton();
            ContentDetailsPage.ContentBanner.CloseOpenedDocumentwindow();
            ContentDetailsPage.Click_ReviewTab_GeneralCourse();
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay());
            ContentDetailsPage.GeneralCourse_ReviewsTab.WriteaReview("Title", "For Testing");
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isReviewlistUpdated("Title"));
            _test.Log(Status.Pass, "User submited review");

            //CommonSection.Logout();
            //LoginPage.LoginAs("").WithPassword("").Login();
            //CommonSection.SearchCatalog(DocumentTitle + "TC60016");
            //SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC60016");
            ContentDetailsPage.ClickEditContent_New19_2();
            ContentDetailsPage.Click_CheckOut();

            //CommonSection.Logout();
            //LoginPage.LoginAs("srlearner103").WithPassword("password").Login();
            CommonSection.SearchCatalog(DocumentTitle + "TC60016");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC60016");
            ContentDetailsPage.Click_ReviewTab_GeneralCourse();
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isEditReviewlinkdisplay());
            _test.Log(Status.Pass, "Verify user can edit his own review in content edit mode");
            ContentDetailsPage.GeneralCourse_ReviewsTab.DeleteReview();
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay());
            _test.Log(Status.Pass, "Verify review deleted and Write a Review button display");
        }
Exemple #22
0
        public void a14_ENrolluserfromClassroomSection_33230()
        {
            #region create new course, add section to it and enroll

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC33230");
            _test.Log(Status.Pass, "New Classroom Course Created");
            Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage()));
            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            // ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            //ManageClassroomCoursePage.CreateSection.SectionStartTime("");
            // ManageClassroomCoursePage.CreateSection.SectionEndTime("");

            // ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("1");
            ManageClassroomCoursePage.SelectWaitListasYes();
            _test.Log(Status.Info, "Click Waitlist as Yes");
            CreateNewCourseSectionAndEventPage.CreateSection("Section1", DateTime.Now.AddDays(2).ToString("MM/dd/yyyy"), DateTime.Now.AddDays(2).ToString("MM/dd/yyyy"));
            // ManageClassroomCoursePage.CreateSection.Create();
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            //Assert.IsTrue(Driver.comparePartialString("Success", ClassroomCoursePage.GetUpdatedSuccessMessage()));
            _test.Log(Status.Pass, "Create New Course Section and Event");
            ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment();
            Assert.IsTrue(ManageClassroomCoursePage.Enrollment());
            ManageClassroomCoursePage.Enrollmenttab.ClickEnroll();
            ManageClassroomCoursePage.BatchEnrollUserModal.EnrollUser("saiflearner");
            //Assert.IsTrue(Driver.comparePartialString("Success", ManageClassroomCoursePage.GetUpdatedSuccessMessage()));
            _test.Log(Status.Pass, "User Enrolled into select course successfully ");
            CommonSection.Logout();
            _test.Log(Status.Pass, "Admin user logged out successfully");
            #endregion

            #region Login with a Learner search created classroom course and enroll
            LoginPage.LoginAs("saiflearner").WithPassword("").Login();
            _test.Log(Status.Pass, "Login as a Learner");
            CommonSection.Learner.CurrentTraining();
            CommonSection.SearchCatalog('"' + classroomcoursetitle + "TC33230" + '"');
            CatalogPage.ClickonSearchedCatalog(classroomcoursetitle + "TC33230");

            Assert.IsTrue(CatalogPage.GetCurrentEnrolledTraining(classroomcoursetitle + "TC33230"));
            _test.Log(Status.Pass, "Enrolled classroom course is displaying");
            #endregion
        }
Exemple #23
0
        public void P20_1_tc_57027_Bundles_Request_Access()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57027");
            DocumentPage.ClickButton_CheckIn();
            #endregion
            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Click create>Subscriptions");
            CreatebundlePage.CreateBundle("Content Bundle", bunbdleTitle + "TC57027", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57027");
            ContentDetailsPage.ClickCheckInbutton();
            Assert.IsTrue(ContentDetailsPage.isAccessApprovalAcordianDisplay());
            _test.Log(Status.Pass, "Verify Access Approval Acordian Display");
            ContentDetailsPage.Accordians.ClickEdit_AccessApproval();
            Assert.IsTrue(AccessApprovalPage.verifyFields());
            _test.Log(Status.Pass, "Verify Approval required, Search for options are available on page");

            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Asign Approver path to content");
            StringAssert.AreEqualIgnoringCase("The approval path is now associated with the content.", ContentDetailsPage.VerifyFeedbackMessage());
            _test.Log(Status.Pass, "Verify feedback message");
            ContentDetailsPage.Click_Check_in();
            _test.Log(Status.Info, "Click check in button");

            CommonSection.SearchCatalog('"' + bunbdleTitle + "TC57027" + '"');
            _test.Log(Status.Info, "Search created scrom from Catalog");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57027");
            _test.Log(Status.Info, "Click searched scrom course title");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay());
            _test.Log(Status.Pass, "Verify is Request Access button display in content details page");
            ContentDetailsPage.AccessApprovalModal.SubmitRequestAccess("ForTest");
            _test.Log(Status.Info, "Submit Request Access");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isCancleRequestbuttonDisplay());
            _test.Log(Status.Pass, "Verify is Cancle Request Access button display");

            ContentDetailsPage.AccessApprovalModal.SubmitCancelRequestAccess("ForTest");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay());
            TC57028 = true;
        }
        public void tc_60285_Test_Banner_Actions_Course_Info_and_Navigation()
        {
            CommonSection.Administer.ContentManagement.Tests();
            TestsPage.ClickCreateNew();
            TestwizardPage.CreateNewTest(TestTitle + "_TC60285");
            _test.Log(Status.Info, "A New test created");
            TestwizardPage.UploadImagetoTest();
            _test.Log(Status.Info, "Upload any Image file to content");
            TestwizardPage.checkin();

            CommonSection.SearchCatalog(TestTitle + "_TC60285");
            SearchResultsPage.ClickCourseTitle(TestTitle + "_TC60285");
            Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(TestTitle + "_TC60285"));
            _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");
        }
Exemple #25
0
 public void a15_Self_Cancel_Enrollment_in_Classroom_Course_14435()
 {
     #region Login with learner and Cancel Enrollment for an Enrolled Classroom Course
     //LoginPage.LoginAs("userreg_0403012001people1").WithPassword("").Login();
     //_test.Log(Status.Pass, "Login as a Learner");
     CommonSection.Learner.CurrentTraining();
     _test.Log(Status.Info, "Open Current trainging Page");
     CommonSection.SearchCatalog('"' + classroomcoursetitle + '"');               // ('"' + classroomcoursetitle + '"');
     _test.Log(Status.Info, "Search course name as" + classroomcoursetitle);
     CatalogPage.ClickonSearchedCatalog(classroomcoursetitle);                    //("ClassRoomCourseTitle2011472447");//
     _test.Log(Status.Info, "Click on Course title");
     Assert.IsTrue(CatalogPage.GetCurrentEnrolledTraining(classroomcoursetitle)); // (classroomcoursetitle));
     _test.Log(Status.Pass, "Enrolled classroom course is displaying");
     //CurrentTrainings.ClickAction();
     CatalogPage.CancelEnrollment();
     _test.Log(Status.Info, "Click on Cancel Enrollment");
     Assert.IsTrue(CatalogPage.GetMessages());
     _test.Log(Status.Pass, "Verify successful message is display");
     #endregion
 }
Exemple #26
0
        public void a01_General_Course_Reviews_Tab_and_ratings_56591()
        {
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC56591");
            DocumentPage.ClickButton_CheckIn();
            #endregion

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("password").Login();
            CommonSection.SearchCatalog(GeneralCourseTitle + "_TC56591");
            SearchResultsPage.ClickCourseTitle(GeneralCourseTitle + "_TC56591");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay());
            ContentDetailsPage.Click_ReviewTab_GeneralCourse();
            Assert.IsFalse(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay());
            ContentDetailsPage.EnrollinGeneralCourse_new();
            ContentDetailsPage.Click_ReviewTab_GeneralCourse();
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay());
            ContentDetailsPage.GeneralCourse_ReviewsTab.WriteaReview("Title", "For Testing");
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isReviewlistUpdated("Title"));
        }
Exemple #27
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");
 }
Exemple #28
0
        public void P20_1_a14_Delete_Curriculumn_10839()
        {
            CommonSection.CreateLink.Curriculam();
            _test.Log(Status.Info, "Naviagte to Cretae Curriculums page");
            CreateCurriculumnPage.fillTtile(curriculamtitle + "TC10839");
            CreateCurriculumnPage.SelectCollaborationSpaceOption("No");

            CreateCurriculumnPage.ClickCreatebutton();
            _test.Log(Status.Info, "A new Curriculum created");

            CommonSection.SearchCatalog('"' + curriculamtitle + "TC10839" + '"');
            _test.Log(Status.Info, "Search created Curriculumn Course from Catalog");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "TC10839");
            _test.Log(Status.Info, "Click searched Curriculumn course title");
            ContentDetailsPage.ClickEditContent_New19_2();
            ContentDetailsPage.DeleteContent();
            _test.Log(Status.Info, "Deleting Content");
            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");
        }
Exemple #29
0
        public void tc_14061_Create_a_new_Classroom_course()
        {
            string expectedresult = " The item was created.";

            CommonSection.CreateLink.ClassroomCourse();
            _test.Log(Status.Info, "Opened Create Classroom Course Page");
            Assert.IsTrue(ClassroomCoursePage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(ClassroomCoursePage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            classroomcourse.populateClassroomform(classroomcoursetitle + "TC14061", "DescTC14061");
            _test.Log(Status.Info, "Filled all required information and submit the classroom creation page");
            Assert.IsTrue(driver.Compareregexstring(expectedresult, classroomcourse.buttonsaveclick()));
            _test.Log(Status.Pass, "Verify Classroom Course saved");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            CommonSection.SearchCatalog(classroomcoursetitle + "TC14061");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(classroomcoursetitle + "TC14061"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
        }
 public void tc_60106_Document_Banner_Actions_Open_content()
 {
     //CommonSection.Logout();
     //LoginPage.LoginAs("").WithPassword("").Login();
     CommonSection.CreteNewDocuemnt(DocumentTitle + "TC60106");
     _test.Log(Status.Info, "Create a Document");
     DocumentPage.ClickButton_CheckIn();
     _test.Log(Status.Info, "A new Document is Created");
     CommonSection.SearchCatalog(DocumentTitle + "TC60106");
     _test.Log(Status.Info, "Searched created Document");
     SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC60106");
     _test.Log(Status.Info, "Click on DOcument title");
     Assert.IsFalse(ContentDetailsPage.isHistoryTabDisplay_GeneralCourse());
     _test.Log(Status.Pass, "Verify History tab is not displayed");
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay_GeneralCourse());
     _test.Log(Status.Pass, "Verify Open Item button display on banner");
     ContentDetailsPage.ContentBanner.ClickOpenItembutton();
     ContentDetailsPage.ContentBanner.CloseOpenedDocumentwindow();
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isMarkCompleteLinkdisplay());
 }