Exemple #1
0
        public void tc_7373_Create_a_new_General_course()
        {
            CommonSection.CreateLink.GeneralCourse();

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

            StringAssert.AreEqualIgnoringCase(tagname + "TC7373", savedTagName);
            _test.Log(Status.Pass, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            CommonSection.SearchCatalog(GeneralCourseTitle + "TC7373");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(GeneralCourseTitle + "TC7373"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
            SearchResultsPage.ClickCourseTitle(GeneralCourseTitle + "TC7373");
            ContentDetailsPage.ClickEditContent_New19_2();
            ContentDetailsPage.Summary.ClickEdit();
            GeneralCoursePage.AvailableinCatalog.ClicktoUncheck();

            GeneralCoursePage.ClickSaveButton();
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is No in summary portlet");
            CommonSection.SearchCatalog(GeneralCourseTitle + "TC7373");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(GeneralCourseTitle + "TC7373"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");
            CommonSection.Manage.Training();
            TrainingPage.ManageContentPortlet.SearchForContent(GeneralCourseTitle + "TC7373");

            ManageContentPage.ResultGrid.isSeaarchedContentDisplay(GeneralCourseTitle + "TC7373");
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
            tc_7375 = true;
            ManageContentPage.ClickContentTitle(GeneralCourseTitle + "TC7373");
            ContentDetailsPage.DeleteContent();
        }
Exemple #2
0
        //Creating a Bundle
        public void tc_10455_CreateANewBundle()
        {
            CommonSection.CreateLink.Bundle();

            GeneralCoursePage.SearchTagForNewContent(tagname);
            _test.Log(Status.Info, "Searching Tag.");

            Assert.IsTrue(BundlesPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(BundlesPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            CreatebundlePage.CreateBundle("Content Bundle", bunbdleTitle + "TC10445", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            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("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            CommonSection.SearchCatalog(bunbdleTitle + "TC10445");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(bunbdleTitle + "TC10445"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC10445");
            ContentDetailsPage.ClickEditContent_New19_2();
            ContentDetailsPage.Summary.ClickEdit();
            BundlesPage.AvailableinCatalog.ClicktoUncheck();
            GeneralCoursePage.ClickSaveButton();
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is No in summary portlet");
            CommonSection.SearchCatalog(bunbdleTitle + "TC10445");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(bunbdleTitle + "TC10445"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");
            CommonSection.Manage.Training();
            TrainingPage.ManageContentPortlet.SearchForContent(bunbdleTitle + "TC10445");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(bunbdleTitle + "TC10445"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
            tc_10574 = true;
        }