public void A10_Test_AccessKeys_Accordian_For_AICC_35819()
 {
     #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);
     string actualresult = driver.gettextofelement(By.XPath("//h1[contains(.,'Summary')]"));
     Assert.IsTrue(driver.Compareregexstring(expectedresult, actualresult));
     driver.WaitForElement(By.XPath("//*[contains(@class,'alert alert-success')]"));
     Assert.IsTrue(driver.Compareregexstring(expectedresult1, driver.gettextofelement(By.XPath("//*[contains(@class,'alert alert-success')]"))));
     aicccourse.populatesummaryform(driver, browserstr);
     Assert.IsTrue(CreateScorm.buttonsaveclick(driver));
     #endregion
     GeneralCoursePage.setCost("5");
     _test.Log(Status.Info, "Cost Has Been Set");
     DocumentPage.ClickButton_CheckOut();
     Assert.IsTrue(ClassroomCoursePage.enableAccessKeys());
     _test.Log(Status.Info, "Access Keys Accordian Has been verfiied for AICC Course");
 }
Beispiel #2
0
 public void A08_Certifications_Containing_a_Curriculum_27206()
 {
     #region Crate a Certification
     CommonSection.CreateLink.Certifications();
     _test.Log(Status.Info, "Click create>certification");
     CertificationPage.FillTitle(CertificatrTitle + "TC27206");
     _test.Log(Status.Info, "Fill title");
     //CertificationPage.SelectDropDown.CompletionCriteriaAs("Total credit hours are achieved");
     //_test.Log(Status.Info, "Select Value Total credit hours are achieved from completion criteria dropdown");
     //CertificationPage.SelectDropDown.TotalHrsscrollAs("2.5");
     //_test.Log(Status.Info, "Select Value 2.5 from scroll");
     //CertificationPage.SelectDropDown.CreditTypeAs("Default Credit Type");
     //_test.Log(Status.Info, "Select Value Default credit type");
     CertificationPage.Radiobutton.SelectCertificationexpireAs("No");
     _test.Log(Status.Info, "Select Value as no for Does this certification expire?");
     CertificationPage.Radiobutton.IncludePastContentCompletionAs("No");
     _test.Log(Status.Info, "Select Value as no for Include Past Content Completion");
     CertificationPage.ClickCreate();
     _test.Log(Status.Info, "Select Value as Certification price for Certification Cost Type and click create");
     #endregion
     DocumentPage.ClickButton_CheckOut();
     CertificatePage.addContentIntoCertificate(curriculamtitle + "_TC26349");
     DocumentPage.ClickButton_CheckIn();
     CommonSection.SearchCatalog(curriculamtitle + "_TC26349");
     _test.Log(Status.Info, "Enter curriculum title in global search box");
     SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC26349");
     _test.Log(Status.Info, "Click on search result from catalog");
     //  Block Detail is Missing
 }
        public void tc_58352_As_a_learner_I_want_to_know_what_are_the_options_to_satisfy_prerequisites_When_admin_has_selected_minimum_Prerequisites_to_be_completed_in_Document()
        {
            //  CommonSection.Logout();
            // LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.SearchCatalog(DocumentTitle + "TC58343");
            _test.Log(Status.Info, "A new document Created");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC58343");
            ContentDetailsPage.ClickEditContent_New19_2();
            DocumentPage.ClickButton_CheckOut();

            AdminContentDetailsPage.Click_EditPrerequisitePanel();
            _test.Log(Status.Info, "Click Edit Button of prerequsite panel");


            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(DocumentTitle + "TC58343");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC58343");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.Prerequisiteportlet.isPortletheadershowes("Warning\r\nComplete the prerequisites to access this item. 2 of 10 required."));
        }
Beispiel #4
0
        public void tc_7253_Manage_a_SCORM_course()
        {
            string expectedresult = "Summary";

            CommonSection.CreteNewScorm(scormtitle + "TC7251");
            _test.Log(Status.Info, "Creating New Scorm");
            DocumentPage.ClickButton_CheckOut();
            ContentDetailsPage.Accordians.ClickEdit_Summery();
            _test.Log(Status.Info, "Click on Edit Summery");
            GeneralCoursePage.SearchTagForNewContent(tagname + "TC7251");
            _test.Log(Status.Info, "Searching Tag.");
            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");
            Driver.clickEleJs(By.XPath("//input[@value='Save']"));
            driver.WaitForElement(By.XPath("//h3[contains(.,'Summary')]"));
            string text = driver.gettextofelement(By.XPath("//h3[contains(.,'Summary')]"));

            StringAssert.AreEqualIgnoringCase(expectedresult, text);
            Assert.IsTrue(driver.existsElement(By.XPath("//*[contains(@class,'alert alert-success')]")));


            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            DocumentPage.ClickButton_CheckIn();
            CommonSection.SearchCatalog(scormtitle + "TC7251");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(scormtitle + "TC7251"));
            _test.Log(Status.Pass, "Verify Created content is Searched");

            CommonSection.Manage.Training();
            TrainingPage.SearchRecord(scormtitle + "TC7251");
            SearchResultsPage.ClickCourseTitle(scormtitle + "TC7251");
            DocumentPage.ClickButton_CheckOut();
            ContentDetailsPage.Summary.ClickEdit();

            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();
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC7251')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname + "TC7251", s);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");

            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No"));
            CommonSection.SearchCatalog(scormtitle + "TC7251");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(scormtitle + "TC7251"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage>>Training Page");
            TrainingPage.SearchRecord(scormtitle + "TC7251");
            _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(scormtitle + "TC7251"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
        }
Beispiel #5
0
 public void A02_Learner_See_Only_Those_Tags_which_are_Linked_with_a_Content_for_which_Learner_Have_Access_34079()
 {
     // This test case depends on above Test Case 33520
     CommonSection.Manage.Training();
     _test.Log(Status.Info, "Navigating to Manage Training");
     TrainingPage.SearchRecord(generalcoursetitle);
     _test.Log(Status.Info, "Searching the record");
     ManageContentPage.ClickContentTitle(generalcoursetitle);
     _test.Log(Status.Info, "Clicking on searched record");
     DocumentPage.ClickButton_CheckOut();
     ManageCompetencyPage.removePermission();
     _test.Log(Status.Info, "Removing Permission of learner from Content");
     DocumentPage.ClickButton_CheckIn();
     driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink);
     _test.Log(Status.Info, "Logout from Admin");
     LoginPage.LoginAs("ssuser1").WithPassword("password").Login();
     _test.Log(Status.Info, "Login as Learner");
     Assert.IsFalse(Driver.Instance.IsElementVisible(By.XPath("//h4[contains(text(),'" + generalcoursetitle + "')]")));
     _test.Log(Status.Info, "Assertion Pass as learner do not have access to those content tags for which learner do not have access");
     driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink);
     LoginPage.LoginAs("").WithPassword("").Login();
 }
        public void tc_59831_As_a_Learner_view_the_Document_Description_at_Overview_tab()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC59831");
            _test.Log(Status.Info, "Create A new Document");
            DocumentPage.ClickButton_CheckIn();
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as Learner");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isDescriptionDisplay());
            _test.Log(Status.Pass, "Verify Description portlet display in Content Details page Overview Tab");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.DescriptionPortletTest("There is no description for this item."));
            ContentDetailsPage.ClickEditContent_New19_2();
            DocumentPage.ClickButton_CheckOut();
            ContentDetailsPage.Summary.ClickEditButton();

            EditSummaryPage.addDescription("This is test for Show more link");
            DocumentPage.ClickButton_CheckIn();
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as Learner");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isDescriptionDisplay());
            _test.Log(Status.Pass, "Verify Description portlet display in Content Details page Overview Tab");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.DescriptionPortletTitle("Description"));
            Assert.IsTrue(ContentDetailsPage.OverviewTab.DescriptionPortletTest("This is test for Show more link"));
            ContentDetailsPage.ClickEditContent_New19_2();
            DocumentPage.ClickButton_CheckOut();
            ContentDetailsPage.Summary.ClickEditButton();
            EditSummaryPage.addDescription("Welcome to MBA in a box: Business lessons from a CEO! This is the only online course you need to acquire the business acumen to:Start up your own business Grow your existing venture Take your career to the next level Get promoted and apply managerial, financial, marketing, decision - making and negotiation skills in the real business world Have an all - around view of why some companies(and people) succeed when doing business and others do not This course is jam - packed with the same useful information and real - life case studies MBA graduates acquire throughout their training in top - tier business schools. We have even made it more interactive by preparing a gamebook for you.Yeah, that’s right!Learning business and finance need not be boring! The gamebook will test what you have learned and will simulate a real - world environment in which your decisions as a business executive will have real monetary consequences for a company. Can you think of any better way to reinforce what you have learned ? An exciting journey from A-Z. If you are a complete beginner and you know nothing about business or finance, don’t worry at all!In each of the five main modules of the course, we start from the very basics and will gradually build up your knowledge.The course contains plenty of real - life examples and case studies that make it easy to understand.");
            DocumentPage.ClickButton_CheckIn();
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as Learner");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isDescriptionDisplay());
            _test.Log(Status.Pass, "Verify Description portlet display in Content Details page Overview Tab");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.DescriptionPortlet.ShowMoreLinkdisplay());
            _test.Log(Status.Pass, "Is Show More link display in Description portlet");
            ContentDetailsPage.OverviewTab.DescriptionPortlet.ClickShowMoreLink();
            Assert.IsTrue(ContentDetailsPage.OverviewTab.DescriptionPortlet.ShowlessLinkdisplay());
            _test.Log(Status.Pass, "Is Show less link display in Description portlet");
        }
Beispiel #7
0
 public void A03_Admin_Add_New_Tag_into_a_Content_on_ManageContent_Page_34080()
 {
     // This test case depends on above two test cases 34079 and 33520
     CommonSection.Manage.Training();
     _test.Log(Status.Info, "Navigating to Manage Training");
     TrainingPage.SearchRecord(generalcoursetitle);
     _test.Log(Status.Info, "Searching the record");
     ManageContentPage.ClickContentTitle(generalcoursetitle);
     _test.Log(Status.Info, "Clicking on searched record");
     DocumentPage.ClickButton_CheckOut();
     ManageCompetencyPage.addPermission();
     _test.Log(Status.Info, "Adding Permission into Content");
     DocumentPage.ClickButton_CheckIn();
     CommonSection.Manage.Training();
     _test.Log(Status.Info, "Navigating to Manage Training");
     TrainingPage.SearchRecord(generalcoursetitle);
     _test.Log(Status.Info, "Searching the record");
     Assert.IsTrue(TrainingPage.removeTag_ManageContentSearchPage(tagname));
     TC_34082 = true;
     _test.Log(Status.Info, "Assertion Pass as User removed tag from content from Manage Content Search Page");
     Assert.IsTrue(TrainingPage.addTag_ManageContentSearchPage(tagname));
     TC_34081 = true;
     _test.Log(Status.Info, "Assertion Pass as User added tag into content from Manage Content Search Page");
 }
Beispiel #8
0
 public void P20_1_A02_User_Request_Access_To_Curriculum_26343()
 {
     #region Set access approval
     ContentDetailsPage.ClickEditContent_New19_2();
     _test.Log(Status.Info, "Click edit content button");
     DocumentPage.ClickButton_CheckOut();
     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");
     CurriculumContentPage.Remove_PreRequisites();
     DocumentPage.ClickButton_CheckIn();
     CommonSection.SearchCatalog(curriculamtitle + "_TC26367");
     _test.Log(Status.Info, "Enter curriculum title in global search box");
     SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC26367");
     _test.Log(Status.Info, "Click on search result from catalog");
     #endregion
     Assert.IsTrue(ContentDetailsPage.RequestAccess_Curriculum());
     Assert.IsTrue(ContentDetailsPage.RequestAccessHistory_Curriculum());
     Assert.IsTrue(ContentDetailsPage.CancelRequestAccess_Curriculum());
 }