Exemple #1
0
        //Editing existing certification
        public void tc_10879_ManageA_Certification()
        {
            CommonSection.CreateLink.Certifications();
            CertificationPage.FillTitle(CertificatrTitle + "TC10879");
            _test.Log(Status.Info, "Fill title");
            CertificationPage.ClickCreate();
            CommonSection.Manage.Training();
            TrainingPage.SearchRecord(CertificatrTitle + "TC10879");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC10879");

            ContentDetailsPage.Summary.ClickEdit();
            Assert.IsTrue(CertificationPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            //  Assert.IsTrue(Driver.checkTagsonContentCreationPage(true));
            GeneralCoursePage.SearchTagForNewContent(tagname + "TC10879");
            _test.Log(Status.Info, "Searching Tag.");
            CertificationPage.AvailableinCatalog.ClicktoUncheck();
            SummaryPage.ClickSavebutton();
            //  Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC10879')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname + "TC10879", s);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog_certification("No"));
            CommonSection.SearchCatalog(CertificatrTitle + "TC10879");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(CertificatrTitle + "TC10879"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage>>Training Page");
            TrainingPage.SearchRecord(CertificatrTitle + "TC10879");
            _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(CertificatrTitle + "TC10879"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
        }
        public void a02_Manage_a_Classroom_course_26747()
        {
            string expectedresult = " The changes were saved.";
            string actualresult   = string.Empty;

            CommonSection.CreateLink.ClassroomCourse();
            _test.Log(Status.Info, "Opened Create Classroom Course Page");
            classroomcourse.populateClassroomform(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "editcontent", ExtractDataExcel.MasterDic_classrommcourse["Desc"]);
            _test.Log(Status.Info, "Filled all required information and submit the classroom creation page");
            classroomcourse.buttonsaveclick();
            _test.Log(Status.Info, "Click Save button");
            //Trainingsobj.CreateContentButton_Click_New(Locator_Training.Classroom_CourseClick);
            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage>>Training Page");
            TrainingPage.SearchRecord(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "editcontent");
            _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet");
            SearchResultsPage.ClickCourseTitle(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "editcontent");
            _test.Log(Status.Info, "Click on Classroom Course title from Manage Content page");
            classroomcourse.buttoncourseeditclick();
            _test.Log(Status.Info, "Click on edit button in summary accordian");
            //SummaryPage.AddnewTag(TAGTitle + "TC26747");
            Assert.IsTrue(SummaryPage.AddnewTag(TAGTitle + "TC26747"));
            _test.Log(Status.Pass, "Verify new tab can added in summary page");

            SummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Click Save button");
            Assert.IsTrue(SummaryPage.checkContentTagsOnDetailsPage());
            // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            _test.Log(Status.Pass, "Verify added tag is displayed");
        }
Exemple #3
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");
        }
        //Editing existing certification
        public void A07_ManageACertification_10879()
        {
            CommonSection.CreateLink.Certifications();
            // objCreate.FillCertificationPageByExcel(driver);
            //  Assert.IsTrue(Driver.checkTagsonContentCreationPage(true));
            objCreate.FillCertificationPage("editcontent");
            CommonSection.Manage.Training();
            TrainingPage.SearchRecord(Variables.certTitle + "editcontent");
            SearchResultsPage.ClickCourseTitle(Variables.certTitle + "editcontent");
            CurriculumsPage.Edit_Click(driver);
            //  Assert.IsTrue(Driver.checkTagsonContentCreationPage(true));
            GeneralCoursePage.SearchTagForNewContent(tagname);
            _test.Log(Status.Info, "Searching Tag.");
            SummaryPage.ClickSavebutton();
            //  Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname, s);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            TC_10879 = true;
        }
Exemple #5
0
        public void tc_26747_Manage_a_Classroom_course()
        {
            string actualresult = string.Empty;

            CommonSection.CreateLink.ClassroomCourse();
            _test.Log(Status.Info, "Opened Create Classroom Course Page");

            classroomcourse.populateClassroomform(classroomcoursetitle + "TC26747", "DescTC26747");
            _test.Log(Status.Info, "Filled all required information and submit the classroom creation page");
            ClassroomCoursePage.AvailableinCatalog.ClicktoUncheck();
            classroomcourse.buttonsaveclick();
            _test.Log(Status.Info, "Click Save button");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No"));
            CommonSection.SearchCatalog(classroomcoursetitle + "TC26747");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(classroomcoursetitle + "TC26747"));
            _test.Log(Status.Pass, "Verify Created content is Searched");

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage>>Training Page");
            TrainingPage.SearchRecord(classroomcoursetitle + "TC26747");
            _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(classroomcoursetitle + "TC26747"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
            SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "TC26747");
            _test.Log(Status.Info, "Click on Classroom Course title from Manage Content page");
            classroomcourse.buttoncourseeditclick();
            _test.Log(Status.Info, "Click on edit button in summary accordian");
            //SummaryPage.AddnewTag(TAGTitle + "TC26747");
            Assert.IsTrue(SummaryPage.AddnewTag(TAGTitle + "TC26747"));
            _test.Log(Status.Pass, "Verify new tab can added in summary page");

            SummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Click Save button");
            Assert.IsTrue(SummaryPage.checkContentTagsOnDetailsPage());
            // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            _test.Log(Status.Pass, "Verify added tag is displayed");
        }
Exemple #6
0
        public void tc_10823_Manager_Curriculum()
        {
            CommonSection.CreateLink.Curriculam();
            //  Assert.IsTrue(Driver.checkTagsonContentCreationPage(true));
            CreateCurriculumnPage.fillTtile(curriculumtitle + "TC10823");
            CreateCurriculumnPage.SelectCollaborationSpaceOption("No");
            CreateCurriculumnPage.ClickCreatebutton();
            _test.Log(Status.Info, "A new Curriculum created");
            CommonSection.Manage.Training();
            TrainingPage.SearchRecord(curriculumtitle + "TC10823");
            SearchResultsPage.ClickCourseTitle(curriculumtitle + "TC10823");
            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);
            _test.Log(Status.Info, "Searching Tag.");
            CreateCurriculumnPage.AvailableinCatalog.ClicktoUncheck();
            SummaryPage.ClickSavebutton();
            string savedTagName = ContentDetailsPage.Summary.tagName(tagname);

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

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage>>Training Page");
            TrainingPage.SearchRecord(curriculumtitle + "TC10823");
            _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(curriculumtitle + "TC10823"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
        }
Exemple #7
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");
        }