Ejemplo n.º 1
0
        public void P20_1_b14_Curriculums_Containing_a_Document_27154()
        {
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC27154");
            _test.Log(Status.Info, "Create a Document");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In Button");

            CommonSection.CreteNewCurriculumn(curriculumTitle + "TC27154");
            _test.Log(Status.Info, "Create a Curriculum");

            AdminContentDetailsPage.ClickEditandAddCurriculumContent("TC27154", DocumentTitle + "TC27154");
            _test.Log(Status.Info, "Click edit Curriculum content and Add Content");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In Button");

            CommonSection.SearchCatalog(curriculumTitle + "TC27154");
            _test.Log(Status.Info, "Enter curriculum title in global search box");
            SearchResultsPage.ClickCourseTitle(curriculumTitle + "TC27154");
            _test.Log(Status.Info, "Click on search result from catalog");
            ContentDetailsPage.Click_Enroll();
            _test.Log(Status.Info, "Click Enroll to enroll in Curriculum");
            Assert.IsTrue(ContentDetailsPage.IsCurriculumContentBlockDisplayed());
            _test.Log(Status.Pass, "Verify Curriculum Block is Dispalyed");
            ContentDetailsPage.ClickCurriculumContentBlock();
            _test.Log(Status.Info, "Click Curriculum Content Block");
            Assert.IsTrue(ContentDetailsPage.IsCurriculumContentDisplayed());
            _test.Log(Status.Pass, "Verify Curriculum Content is Displayed");
            Assert.IsTrue(ContentDetailsPage.IsCurriculumContentStatusDisplayed());
            _test.Log(Status.Pass, "Verify Curriculum Status is Displayed");
        }
        public void tc_60100_Document_Banner_Actions_Request_Access()
        {
            //CommonSection.Logout();
            //LoginPage.LoginAs("").WithPassword("").Login();
            #region Create a general course
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC60100");
            _test.Log(Status.Info, "Create a Document");

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

            #endregion
            //CommonSection.Logout();
            //LoginPage.LoginAs("srlearner103").WithPassword("").Login();
            CommonSection.SearchCatalog(DocumentTitle + "TC60100");
            _test.Log(Status.Info, "Searched created Genaral Course");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC60100");
            _test.Log(Status.Info, "Click on Genaral Course title");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay());
            _test.Log(Status.Pass, "Verify is Request Access button display on Banner");
            ContentDetailsPage.AccessApprovalModal.SubmitRequestAccess("ForTest");
            _test.Log(Status.Info, "Submit Request Access");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isCancleRequestbuttonDisplay());
            _test.Log(Status.Pass, "Verify is Cancle Request Access button display");

            ContentDetailsPage.AccessApprovalModal.SubmitCancelRequestAccess("ForTest");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay());
            _test.Log(Status.Info, "Verify Cancel Request access wotk flow");
            TC60104 = true;
        }
Ejemplo n.º 3
0
        public void P20_1_b19_Subscriptions_Containing_a_Document_27179()
        {
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC27179");

            _test.Log(Status.Info, "Create a Document");
            string SubscriptionContent = AdminContentDetailsPage.CreatedContent();

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In Button");
            CommonSection.CreateLink.Subscription();
            _test.Log(Status.Info, "Click Subscription");
            SubscriptionsPage.TitleAs(SubscriptionsTitle + "TC27179").SubscriptionType("DynamicDate").Create();
            _test.Log(Status.Info, "Create subscription");
            AdminContentDetailsPage.ClickEditandAddSubscriptionContent(DocumentTitle + "TC27179");
            _test.Log(Status.Info, "Click Edit and Add Subscription Content");
            AdminContentDetailsPage.ClickCheckInbutton();
            CommonSection.SearchCatalog(SubscriptionsTitle + "TC27179");
            _test.Log(Status.Info, "Search for the Certification Course Title");
            SearchResultsPage.ClickCourseTitle(SubscriptionsTitle + "TC27179");
            _test.Log(Status.Info, "Click on Course Title");
            Assert.IsTrue(ContentDetailsPage.IsSubscriptionBlockDispalyed(SubscriptionContent));
            _test.Log(Status.Pass, "Verify Added Document is Displayed in Subscription Block ");
            Assert.IsTrue(ContentDetailsPage.IsTitleDisplayed());
            _test.Log(Status.Pass, "Verify Added Document is Displayed in Subscription Block ");
            Assert.IsTrue(ContentDetailsPage.IsTypeDisplayed());
            _test.Log(Status.Pass, "Verify Added Document is Displayed in Subscription Block ");
            Assert.IsTrue(ContentDetailsPage.IsCostDisplayed());
            _test.Log(Status.Pass, "Verify Added Document is Displayed in Subscription Block ");
        }
        public void P20_1_tc_57849_Curriculum__User_navigates_to_Content_Details_page_of_General_Course()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC57849");
            _test.Log(Status.Info, "Create general Course");
            AdminContentDetailsPage.ClickCheckInbutton();
            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC57849");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");

            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");

            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "TC57849");
            _test.Log(Status.Info, "Add training Activities");

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as learner");
            ContentDetailsPage.EnrollinCurriculum();
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumBlock.iscontentdisplay(generalcoursetitle + "TC57849"));
            ContentDetailsPage.ContentTab.CurriculumBlock.ClickContenttitle(generalcoursetitle + "TC57849");
        }
        public void P20_1_tc_57848_Curriculum__User_navigates_to_content_Details_page_of_a_Document()
        {
            CommonSection.CreateLink.Document();
            _test.Log(Status.Info, "Naviagte to Cretae Document page");
            CommonSection.CreteNewDocuemnt(documenttitle + "TC57848");
            _test.Log(Status.Info, "A new Document Created");
            ContentDetailsPage.Click_Check_in();

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC57848");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");

            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");

            CurriculumContentPage.AddTrainingActivities_UnOrdered(documenttitle + "TC57848");
            _test.Log(Status.Info, "Add training Activities");

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as learner");
            ContentDetailsPage.EnrollinCurriculum();
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumBlock.iscontentdisplay(documenttitle + "TC57848"));
            ContentDetailsPage.ContentTab.CurriculumBlock.ClickContenttitle(documenttitle + "TC57848");
            Assert.IsTrue(Driver.Instance.Url.Contains("contentdetails"));
            ContentDetailsPage.ClickBreadCrumb(curriculamtitle + "TC57848");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC57848"));
        }
        public void P20_1_a19_SCORM_What_Other_Content_can_learner_take_57664()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.CreteNewScorm(scormtitle + "TC57664");
            _test.Log(Status.Info, "Create A new SCROM Course");
            // ContentDetailsPage.Click_Check_in();
            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC57664");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");

            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");

            CurriculumContentPage.AddTrainingActivities_UnOrdered(scormtitle + "TC57664");
            _test.Log(Status.Info, "Add training Activities");

            AdminContentDetailsPage.ClickCheckInbutton();
            CommonSection.SearchCatalog('"' + scormtitle + "TC57664" + '"'); // Search for Bundle that has Promotional Video
            _test.Log(Status.Info, "Searched" + scormtitle + "TC57664" + "from Catalog");
            SearchResultsPage.ClickCourseTitle(scormtitle + "TC57664");      // Click on Bundle Title
            _test.Log(Status.Info, "Clicked searched course title");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPartoftheseCollectionDisplay());
            ContentDetailsPage.OverviewTab.PartoftheseCollection.expandPartofthesecollection();
            Assert.IsTrue(ContentDetailsPage.OverviewTab.PartoftheseCollection.isContentdisplay(curriculamtitle + "TC57664"));
        }
Ejemplo n.º 7
0
        public void b21_Rate_Document_26208()
        {
            CommonSection.Logout();
            _test.Log(Status.Info, "logout of current Account");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "Login with siteadmin Account");
            CommonSection.CreteNewDocuemnt(DocumentTitle + "26208");
            _test.Log(Status.Info, "Create a Document");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click on view as learner");
            Assert.IsFalse(ContentDetailsPage.IsRateAccordianDisplayed());
            _test.Log(Status.Pass, "Verify Rate Accordian is not Dispayed");
            ContentDetailsPage.OpenItem.CompleteContentDocument();
            _test.Log(Status.Pass, "Launch the content");

            ContentDetailsPage.CompleteLunchedCourse();
            _test.Log(Status.Info, "Complete content Document");
            Assert.IsTrue(ContentDetailsPage.IsRateAccordianDisplayed());
            _test.Log(Status.Pass, "Verify Rate Accordian is Dispayed");
            ContentDetailsPage.Rate("4 Stars", "Good", "Good Rating");
            _test.Log(Status.Info, "Verify Rate Accordian is Dispayed");
            Assert.IsTrue(ContentDetailsPage.IsDeleteRatingDisplayed());
            _test.Log(Status.Pass, "Verify Rate Accordian is Dispayed");
        }
        public void tc_60001_AICC_Banner_Actions_Enroll_in_content()
        {
            #region Create a AICC course
            Scorm12 CreateScorm = new Scorm12(driver);
            CommonSection.CreateLink.AICC();
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.au", By.Id("ctl00_MainContent_UC1_rau_aufile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.crs", By.Id("ctl00_MainContent_UC1_rau_crsfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.cst", By.Id("ctl00_MainContent_UC1_rau_cstfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.des", By.Id("ctl00_MainContent_UC1_rau_desfile0"));
            CreateScorm.buttoncreateclick(driver, true);
            _test.Log(Status.Info, "AICC files are uploaded");

            CreateAICCPage.Title(AICCCourseTitle + "TC560001");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");
            #endregion
            CommonSection.SearchCatalog(AICCCourseTitle + "TC560001");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC560001");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay());
            ContentDetailsPage.EnrollinGeneralCourse_new();
            //StringAssert.AreEqualIgnoringCase("Success\r\nYou are now enrolled.\r\n×", Driver.getSuccessMessage(), "Error message is different");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isCancelEnrolllinkDisplay_GeneralCourse());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isStartbuttonDisplay());
            ContentDetailsPage.ContentBanner.Click_CancelEnrollmetlink();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay());
            _test.Log(Status.Pass, "Verify Enroll button display");
            TC60002 = true;
        }
        public void tc_60003_AICC_Banner_Actions_Open_Item()
        {
            #region Create a AICC course
            Scorm12 CreateScorm = new Scorm12(driver);
            CommonSection.CreateLink.AICC();
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.au", By.Id("ctl00_MainContent_UC1_rau_aufile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.crs", By.Id("ctl00_MainContent_UC1_rau_crsfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.cst", By.Id("ctl00_MainContent_UC1_rau_cstfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.des", By.Id("ctl00_MainContent_UC1_rau_desfile0"));
            CreateScorm.buttoncreateclick(driver, true);
            _test.Log(Status.Info, "AICC files are uploaded");

            CreateAICCPage.Title(AICCCourseTitle + "TC560003");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");
            #endregion
            CommonSection.SearchCatalog(AICCCourseTitle + "TC560003");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC560003");
            ContentDetailsPage.ContentBanner.Click_Enrollbutton();
            ContentDetailsPage.ContentBanner.Click_Startbutton();
            _test.Log(Status.Info, "Start Aicc course");
            Assert.IsTrue(ContentDetailsPage.isAICCCourseOpened());
            ContentDetailsPage.CloseAICCModal();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContinueButtonDisplsplay());
            _test.Log(Status.Pass, "Verify is Continue button display");
            TC60004 = true;
        }
        public void tc_60132_Document_Banner_Actions_Review_Retake()
        {
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC60132");
            _test.Log(Status.Info, "Create a Document");

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");

            CommonSection.SearchCatalog(DocumentTitle + "TC60132");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC60132");
            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());
            ContentDetailsPage.ContentBanner.MarkCompleteforDoc();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isReviewLinkDisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRetakeLinkDisplay());
            _test.Log(Status.Pass, "Verify Both Review and Retake links are displaying in banner");
            ContentDetailsPage.ContentBanner.clickReviewButton();
            ContentDetailsPage.ContentBanner.CloseOpenedDocumentwindow();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isReviewLinkDisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRetakeLinkDisplay());
            _test.Log(Status.Pass, "Verify still Both Review and Retake links are displaying in banner");
            ContentDetailsPage.ContentBanner.ClickRetakeLink();
            ContentDetailsPage.ContentBanner.CloseOpenedDocumentwindow();
            Assert.IsFalse(ContentDetailsPage.ContentBanner.isReviewLinkDisplay());
            Assert.IsFalse(ContentDetailsPage.ContentBanner.isRetakeLinkDisplay());
            _test.Log(Status.Pass, "Verify Both Review and Retake links are not displaying in banner after retake start");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isMarkCompleteLinkdisplay());
        }
        public void tc_60103_Document_Banner_Actions_Course_Info_and_Navigation()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC60103");
            _test.Log(Status.Info, "Create a Document");
            ContentDetailsPage.Accordians.ClickEdit_Image();
            ImagePage.UploadnewImageFile();
            _test.Log(Status.Info, "Upload any Image file to content");
            StringAssert.AreEqualIgnoringCase("The file was uploaded.", Driver.getSuccessMessage());
            _test.Log(Status.Pass, "Verify feedback message");
            //ContentDetailsPage.AddLocale();   don't have other local in external
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");

            CommonSection.SearchCatalog(DocumentTitle + "TC60103");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC60103");
            Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(DocumentTitle + "TC60103"));
            _test.Log(Status.Pass, "Verify Content title is display on Banner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay());
            _test.Log(Status.Pass, "Verify Content type is display on Banner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentImagedisplay());
            _test.Log(Status.Pass, "Verify Image is display on Banner");
        }
        public void tc_60101_Document_Banner_Actions_Edit_Save_and_Share()
        {
            //CommonSection.Logout();
            //LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC60101");
            _test.Log(Status.Info, "Create a Document");

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as Learner");
            Assert.IsTrue(ContentDetailsPage.isSaveShareandEditContentbuttndisplay());
            _test.Log(Status.Pass, "Verify Save, Share and Edit content button is displayed");
            ContentDetailsPage.ClickEditContent_New19_2();
            Assert.IsTrue(AdminContentDetailsPage.isContentopened(DocumentTitle + "TC60101"));
            _test.Log(Status.Pass, "Verify edit content opens admin content details page");
            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("").Login();
            CommonSection.SearchCatalog(DocumentTitle + "TC60101");
            _test.Log(Status.Info, "Searched created Genaral Course");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC60101");
            _test.Log(Status.Info, "Click on Genaral Course title");
            Assert.IsTrue(ContentDetailsPage.isOnlySaveandSharebuttndisplay());
            ContentDetailsPage.ClickSaveButton();
            Assert.IsTrue(ContentDetailsPage.isSaveButtonIconGreen());
            _test.Log(Status.Pass, "Click at Green saved button ");
            Assert.IsTrue(ContentDetailsPage.SocialSharingDropDown("Facebook"));
            _test.Log(Status.Pass, "verify the facebook ");
        }
        public void P20_1_tc_57850_Curriculum__User_access_Content_Details_page_of_SCORM_from_Curriculum()
        {
            CommonSection.CreateLink.SCORM();
            Uploadscromecourse.uploadfile();
            CretaeSCROM2004Page.Tile(scormtitle + "TC57850");
            CretaeSCROM2004Page.clickSaveButton();
            _test.Log(Status.Info, "A new SCROM Course Created");
            ContentDetailsPage.Click_Check_in();

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC57850");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");

            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");

            CurriculumContentPage.AddTrainingActivities_UnOrdered(scormtitle + "TC57850");
            _test.Log(Status.Info, "Add training Activities");

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as learner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isInstructionalMessage("Enroll in the Curriculum to get started"));
            TC56142 = true;
            ContentDetailsPage.EnrollinCurriculum();
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumBlock.iscontentdisplay(scormtitle + "TC57850"));
            ContentDetailsPage.ContentTab.CurriculumBlock.ClickContenttitle(scormtitle + "TC57850");
            Assert.IsTrue(Driver.Instance.Url.Contains("contentdetails"));
            ContentDetailsPage.ClickBreadCrumb(curriculamtitle + "TC57850");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC57850"));
        }
        public void A13_As_an_Admin_access_a_survey_report_of_Online_Course_from_the_admin_content_details_page_with_scope_limited_to_the_current_content_item_36035()
        {
            #region Pre-requisite of Testcase
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC36035");
            _test.Log(Status.Pass, "Create general Course");
            string ContentTitle = AdminContentDetailsPage.Title(generalcoursetitle + "TC36035");
            AdminContentDetailsPage.ManageSurveys();
            _test.Log(Status.Info, "Add survey to the Classroom");
            string SurveyTitle = SurveysPage.SurveysTitle("Before Course Start");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Pass, "Click Check In button");
            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            CommonSection.SearchCatalog(generalcoursetitle + "TC36035");
            _test.Log(Status.Info, "Search Created Course");
            SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC36035");
            _test.Log(Status.Info, "Click Course Title");
            ContentDetailsPage.ClickEnroll();
            _test.Log(Status.Info, "Click on Enroll");
            ContentDetailsPage.ClickOpenItem();
            _test.Log(Status.Info, "Click on Open New Attempt");
            ContentDetailsPage.MarkComplete();
            _test.Log(Status.Info, "Click on Open New Attempt");
            ContentDetailsPage.SurveyPortlet.ClickonattachedSurvey("Before Course Start");
            _test.Log(Status.Info, "Click Attached Survey");
            ContentDetailsPage.SurveyPortlet.CompleteSurvey();
            _test.Log(Status.Info, "Complete Survey");

            #endregion


            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Click on training under manage in Common Section ");
            TrainingPage.ManageContentPortlet.SearchForContent(generalcoursetitle + "TC36035");
            _test.Log(Status.Info, "Search the course through manage content ");
            ManageContentPage.ClickContentTitle(generalcoursetitle + "TC36035");
            _test.Log(Status.Info, "Click on Coure title ");
            ContentDetailsPage.SurveyPortlet.Click_SurveyReport();
            _test.Log(Status.Pass, "Click on survey Report");
            Assert.IsTrue(SurveyReportPage.isSurveyDisplayed(SurveyTitle));
            _test.Log(Status.Pass, "Verify Survey is Displayed");
            Assert.IsTrue(SurveyReportPage.isContentTitleDisplayed(ContentTitle));
            _test.Log(Status.Pass, "Verify Content Title is Displayed");
            Assert.IsFalse(SurveyReportPage.isDropDownDisplayed());
            _test.Log(Status.Pass, "Verify DropDown is Displayed");
            SurveyReportPage.Click_Filter();
            _test.Log(Status.Info, "Select Section and Click on Filter ");
            Assert.IsTrue(SurveyReportPage.isReportGenerated());
            _test.Log(Status.Pass, "Verify report is generated ");
        }
Ejemplo n.º 15
0
        public void b22_Request_Access_to_Document_with_cost_27018()
        {
            CommonSection.Logout();
            _test.Log(Status.Info, "logout of current Account");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "Login with siteadmin Account");
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC26018");
            _test.Log(Status.Info, "Create a Document");
            AdminContentDetailsPage.AddCost();
            _test.Log(Status.Info, "Add cost to Document");
            ContentDetailsPage.ClickEditContent();
            _test.Log(Status.Info, "Click Edit Content");
            AdminContentDetailsPage.AccessApproval.ClickEditButton();
            _test.Log(Status.Info, "Click Edit Content");
            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Assign approval path");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as Learner");

            CommonSection.Logout();
            _test.Log(Status.Info, "logout of current Account");
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            _test.Log(Status.Info, "Login with learner Account");
            CommonSection.SearchCatalog(DocumentTitle + "TC26018");
            _test.Log(Status.Info, "Search for the Certification Course Title");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC26018");
            _test.Log(Status.Info, "Click on Course Title");
            ContentDetailsPage.ClickRequestAccess();
            _test.Log(Status.Info, "Click Access Request");
            Assert.IsFalse(ContentDetailsPage.isAddToCartButtonDisplayed());
            _test.Log(Status.Pass, "Add to Cart Button is Displayed");

            CommonSection.Logout();
            _test.Log(Status.Info, "logout of current Account");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "Login with siteadmin Account");
            CommonSection.Manage.ApprovalRequests();
            _test.Log(Status.Info, "Click on Approval Request ");
            ApprovalRequestsPage.PendingMyApproval.Approve(DocumentTitle + "TC26018", "Request Accepted");
            _test.Log(Status.Info, "Approve request");
            CommonSection.Logout();
            _test.Log(Status.Info, "logout of current Account");
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            _test.Log(Status.Info, "Login with learner Account");
            CommonSection.SearchCatalog(DocumentTitle + "TC26018");
            _test.Log(Status.Info, "Search for the Certification Course Title");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC26018");
            _test.Log(Status.Info, "Click on Course Title");
            Assert.IsTrue(ContentDetailsPage.isAddToCartButtonDisplayed());
            _test.Log(Status.Pass, "Add to Cart Button is Displayed");
        }
        public void tc_59988_AICC_Banner_Actions_Request_Access()
        {
            #region Create a AICC course
            Scorm12 CreateScorm = new Scorm12(driver);
            CommonSection.CreateLink.AICC();
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.au", By.Id("ctl00_MainContent_UC1_rau_aufile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.crs", By.Id("ctl00_MainContent_UC1_rau_crsfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.cst", By.Id("ctl00_MainContent_UC1_rau_cstfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.des", By.Id("ctl00_MainContent_UC1_rau_desfile0"));
            CreateScorm.buttoncreateclick(driver, true);
            _test.Log(Status.Info, "AICC files are uploaded");

            CreateAICCPage.Title(AICCCourseTitle + "TC59988");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());

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

            #endregion
            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("").Login();
            CommonSection.SearchCatalog(AICCCourseTitle + "TC59988");
            _test.Log(Status.Info, "Searched created AICC Course");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC59988");
            _test.Log(Status.Info, "Click on AICC Course title");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay());
            _test.Log(Status.Pass, "Verify is Request Access button display on Banner");
            ContentDetailsPage.AccessApprovalModal.SubmitRequestAccess("ForTest");
            _test.Log(Status.Info, "Submit Request Access");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isCancleRequestbuttonDisplay());
            _test.Log(Status.Pass, "Verify is Cancle Request Access button display");
            ContentDetailsPage.ContentBanner.ClickViewRequestHistory();
            Assert.IsTrue(ContentDetailsPage.isHistorywindowopened());

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

            ContentDetailsPage.AccessApprovalModal.SubmitCancelRequestAccess("ForTest");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay());
            _test.Log(Status.Info, "Verify Cancel Request access wotk flow");
            TC59990 = true;
        }
Ejemplo n.º 17
0
        public void tc_55407_As_a_learner_I_want_to_see_display_format_and_corresponding_Icon_instead_of_Content_Types_in_Content_Details_page_Bundle()
        {
            CommonSection.Logout();
            _test.Log(Status.Info, "Create logout From Siteadmin Account");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "login with siteAdmin Account");
            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Click create>Bundle");
            CreatebundlePage.CreateBundle("Progress Bundle", bunbdleTitle + "TC55407", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click CheckIn Button");

            CommonSection.Administer.Training.ContentConfiguration.DisplayFormats();
            _test.Log(Status.Info, "Navigate to Administer >> Content Configuration >> Displat Formats link");
            Assert.IsTrue(DisplayFormatPage.isContentwithdisplayformatdisplay());
            _test.Log(Status.Pass, "Verify Display Format page is displayed Verify list of Content types are listed along with their respective default display formats");
            DisplayFormatPage.CoursesInDisplayFormat.SelectDisplayFormatBundle("Bundle");
            DisplayFormatPage.CoursesInDisplayFormat.ApplyToAllForBundle();
            Assert.IsTrue(DisplayFormatPage.isApplyToAllModaldisplay());
            _test.Log(Status.Pass, "Verify Apply To All Modal is displayed");
            Assert.IsTrue(DisplayFormatPage.ApplyToAllModal.WarningMessage());
            _test.Log(Status.Pass, "Verify Apply To All Modal displays the Warning Message");
            Assert.IsTrue(DisplayFormatPage.ApplyToAllModal.ContentItemsCount() >= 0);
            _test.Log(Status.Pass, "Verify Apply To All Modal displays the number (Count) of content item  that will be impacted ");
            DisplayFormatPage.ApplyToAllModal.ClickApply();
            _test.Log(Status.Pass, "Click Apply on the Warning Message");
            FormatBundle = DisplayFormatPage.CoursesInDisplayFormat.Bundle();//XPathAgainstCoursetobeSelected

            //---------------------------------------------------------------------------------------------
            CommonSection.Logout();
            _test.Log(Status.Info, "Create logout From Siteadmin Account");
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();



            CommonSection.SearchCatalog(bunbdleTitle + "TC55407");
            _test.Log(Status.Info, "Search a Bundle from Catalog search");
            Assert.IsTrue(SearchResultsPage.ListofSearchResults.Display());
            _test.Log(Status.Pass, "Verify Search results are displayed");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC55407");

            Assert.IsTrue(ContentDetailsPage.ContentTitle.ContentTypeBundle(FormatBundle));

            _test.Log(Status.Pass, "Verify Content Type under the Content Title is replaced by Display Format for Bundle");
        }
        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"));
        }
Ejemplo n.º 19
0
        public void b17_Add_Document_to_Cart_26205()
        {
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC26205");
            _test.Log(Status.Info, "Create a Document");
            AdminContentDetailsPage.AddCost();
            _test.Log(Status.Info, "Click edit Cost and Add Cost to document");
            ContentDetailsPage.ClickEditContent();
            _test.Log(Status.Info, "Click Check In Button");
            AdminContentDetailsPage.ClickCheckInbutton();

            _test.Log(Status.Info, "Click Check-In");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click on view as learner");

            ContentDetailsPage.ClickAddtoCart();
            _test.Log(Status.Info, "Click on Add to cart");

            Assert.IsTrue(Driver.comparePartialString("The item was added to the cart.", ContentDetailsPage.AddToCartSuccessMessage()));
            _test.Log(Status.Pass, "Verify the Content added to cart message");
        }
Ejemplo n.º 20
0
        public void P20_1_b15_Bundles_Containing_a_Document_27196()
        {
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC27196");
            _test.Log(Status.Info, "Create a Document");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In Button");



            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Create Bundle");
            BundlesPage.EnterTitle(bundleTitle + "TC27196");
            _test.Log(Status.Info, "Create bundle course");
            BundlesPage.BundleType("Content Bundle");
            _test.Log(Status.Info, "Select Bundle Type");
            BundlesPage.BundleCostType();
            _test.Log(Status.Info, "Select Bundle Type");
            BundlesPage.ClickCreate();
            _test.Log(Status.Info, "Click on Create Bundle");
            BundlesPage.addContentIntoBundle(DocumentTitle + "TC27196");
            _test.Log(Status.Info, "Add Content in Bundle");
            BundlesPage.checkIn();
            _test.Log(Status.Info, "Click on CheckIn Button");
            CommonSection.SearchCatalog(bundleTitle + "TC27196");
            _test.Log(Status.Info, "Make a Search of Bundle course");
            SearchResultsPage.ClickCourseTitle(bundleTitle + "TC27196");
            _test.Log(Status.Info, "Click on Course Title");
            Assert.IsTrue(ContentDetailsPage.isBundlesCostTypeDisplayed());
            _test.Log(Status.Pass, "Verify Bundle Cost Type is Displayed");
            ContentDetailsPage.ClickOnContent();
            _test.Log(Status.Info, "Click on Content");
            Assert.IsTrue(ContentDetailsPage.isSuggestedBundlesDisplayed());
            _test.Log(Status.Pass, "Verify Suggested Bundle is Displayed");
            Assert.IsTrue(ContentDetailsPage.isBundlesTitleDisplayed());
            _test.Log(Status.Pass, "Verify Bundle Title is Displayed");
            Assert.IsTrue(ContentDetailsPage.isBundlesCostDisplayed());
            _test.Log(Status.Pass, "Verify bundle Cost is Displayed");
        }
 public void tc_56144_User_Views_pre_requisite_requirements_in_banner_Pre_requisite_Completed()
 {
     CommonSection.CreateGeneralCourse(generalcoursetitle + "TC56144");
     _test.Log(Status.Info, "Create general Course");
     AdminContentDetailsPage.ClickCheckInbutton();
     CommonSection.CreteNewCurriculumn(curriculamtitle + "TC56144");
     _test.Log(Status.Info, "Create Curriculum");
     AdminContentDetailsPage.AddPrequisites(generalcoursetitle + "TC56144");
     ContentDetailsPage.Click_Check_in();
     AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
     _test.Log(Status.Info, "Click view as learner");
     Assert.IsTrue(ContentDetailsPage.OverviewTab.Prerequisiteportlet.isContentdisplay(curriculamtitle + "TC52418_Child"));
     Assert.IsFalse(ContentDetailsPage.isEnrollButtonDisplay());
     _test.Log(Status.Pass, "Verify No Enroll button is display on banner");
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to enroll"));
     ContentDetailsPage.OverviewTab.Prerequisiteportlet.ClickPrerequisiteContentTitle(generalcoursetitle + "TC56144");
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(generalcoursetitle + "TC56144"));
     AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent();
     ContentDetailsPage.ClickBreadCrumb(curriculamtitle + "TC56144");
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC56144"));
     Assert.IsFalse(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to enroll"));
     Assert.IsTrue(ContentDetailsPage.isEnrollButtonDisplay());
 }
        public void tc_59985_AICC_Banner_Actions_Course_Info_and_Navigation()
        {
            Scorm12 CreateScorm = new Scorm12(driver);

            CommonSection.CreateLink.AICC();
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.au", By.Id("ctl00_MainContent_UC1_rau_aufile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.crs", By.Id("ctl00_MainContent_UC1_rau_crsfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.cst", By.Id("ctl00_MainContent_UC1_rau_cstfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.des", By.Id("ctl00_MainContent_UC1_rau_desfile0"));
            CreateScorm.buttoncreateclick(driver, true);
            _test.Log(Status.Info, "AICC files are uploaded");

            CreateAICCPage.Title(AICCCourseTitle + "TC59985");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());

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

            CommonSection.SearchCatalog(AICCCourseTitle + "TC59985");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC59985");
            Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(AICCCourseTitle + "TC59985"));
            _test.Log(Status.Pass, "Verify Content title is display on Banner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay());
            _test.Log(Status.Pass, "Verify Content type is display on Banner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentImagedisplay());
            _test.Log(Status.Pass, "Verify Image is display on Banner");
        }
        public void a07_Restart_Linear_Curriculum_35888()
        {
            #region
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35888");
            _test.Log(Status.Info, "Create general Course");
            AdminContentDetailsPage.AddCost();
            _test.Log(Status.Info, "Add cost to Course");
            ContentDetailsPage.ClickEditContent();
            _test.Log(Status.Info, "Click on Edit content");
            AdminContentDetailsPage.AccessApproval.ClickEditButton();
            _test.Log(Status.Info, "Click Access Approval Edit Button");
            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Assign Approver path");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click checkIn Button");
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35888ak");
            _test.Log(Status.Info, "Create general Course");
            AdminContentDetailsPage.AddCost();
            _test.Log(Status.Info, "Add cost to Course");
            ContentDetailsPage.ClickEditContent();
            _test.Log(Status.Info, "Click on Edit content");
            AdminContentDetailsPage.AccessApproval.ClickEditButton();
            _test.Log(Status.Info, "Click Access Approval Edit Button");
            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Assign Approver path");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click checkIn Button");
            #endregion

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC35888");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");

            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");

            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "TC35888");
            _test.Log(Status.Info, "Add training Activities");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "TC35888ak");
            _test.Log(Status.Info, "Add training Activities");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as learner");
            ContentDetailsPage.ClickCurriculumnEnroll();
            _test.Log(Status.Info, "Click Enroll Button");
            ContentDetailsPage.Click_ContentTab();
            _test.Log(Status.Info, "Click on  Content Tab");
            //ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            //_test.Log(Status.Info, "Click on  Content Tab");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888", "Not Enrolled"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888ak", "Not Enrolled"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStartButtonDisplayed(generalcoursetitle + "TC35888"));
            _test.Log(Status.Pass, "Verify Start button is Displayed");
            Assert.IsFalse(ContentDetailsPage.CurriculumContentTab.VerifyStartButtonDisplayed(generalcoursetitle + "TC35888ak"));
            _test.Log(Status.Pass, "Verify Start button is Not Displayed");


            ContentDetailsPage.CurriculumContentTab.ClickStartGeneralCourse(generalcoursetitle + "TC35888");
            _test.Log(Status.Info, "Launch first General Course");
            ContentDetailsPage.CompleteCurriculumnContent();
            _test.Log(Status.Info, "Complete General Course");
            // ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            //_test.Log(Status.Info, "Click on  Content Tab");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888", "Completed"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStartButtonDisplayed(generalcoursetitle + "TC35888ak"));
            _test.Log(Status.Pass, "Verify Start button is Not Displayed");

            //ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            //_test.Log(Status.Info, "Click on  Content Tab");
            ContentDetailsPage.CurriculumContentTab.ClickStartGeneralCourse(generalcoursetitle + "TC35888ak");
            _test.Log(Status.Info, "Launch first General Course");
            ContentDetailsPage.MarkComplete_Curriculum();
            _test.Log(Status.Info, "Complete General Course");
            ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            _test.Log(Status.Info, "Click on  Content Tab");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888ak", "Completed"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");

            Assert.IsTrue(ContentDetailsPage.IsRestartCurriculumDisplayed());
            _test.Log(Status.Pass, "Verify Restart Curriculum is Displayed");

            ContentDetailsPage.ClickRetakeCurriculum_DissmissAlert();
            _test.Log(Status.Pass, "Click restart Curriculum");
            ContentDetailsPage.ClickRetakeCurriculum_AcceptAlert();
            _test.Log(Status.Pass, "Click restart Curriculum");
            //ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            // _test.Log(Status.Info, "Click on  Content Tab");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888", "Enrolled"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888ak", "Enrolled"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            ContentDetailsPage.Click_HistoryTab_Curriculum();
            _test.Log(Status.Info, "Click History Tab");
            Assert.IsTrue(ContentDetailsPage.HistoryTab.VerifyRestartedCurriculum());
            _test.Log(Status.Pass, "Verify in history tab Curriculum is restarted is mentioned");
        }
        public void tc_35907_Curriculum__Learner_views_progress_towards_completeing_curriculum_for_each_block_type()
        {
            #region create 4 general course
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35907_od_1");
            _test.Log(Status.Info, "Create general Course");
            DocumentPage.ClickButton_CheckIn();
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35907_od_2");
            _test.Log(Status.Info, "Create general Course");
            DocumentPage.ClickButton_CheckIn();
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35907_Uod_1");
            _test.Log(Status.Info, "Create general Course");
            DocumentPage.ClickButton_CheckIn();
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35907_Uod_2");
            _test.Log(Status.Info, "Create general Course");
            DocumentPage.ClickButton_CheckIn();
            #endregion

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC35907");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs("UnOrdered");
            _test.Log(Status.Info, "Add Curriculum UnOrdered Block");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "TC35907_Uod_1");
            _test.Log(Status.Info, "Add training Activities");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "TC35907_Uod_2");
            _test.Log(Status.Info, "Add training Activities");

            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("Ordered");
            _test.Log(Status.Info, "Add Curriculum Ordered Block");
            CurriculumContentPage.AddTrainingActivities_Ordered(generalcoursetitle + "TC35907_od_1");
            _test.Log(Status.Info, "Add training Activities");
            CurriculumContentPage.AddTrainingActivities_Ordered(generalcoursetitle + "TC35907_od_2");
            _test.Log(Status.Info, "Add training Activities");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("").Login();
            CommonSection.SearchCatalog(curriculamtitle + "TC35907");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "TC35907");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC35907"));
            _test.Log(Status.Pass, "Verify Content details page is opend");
            ContentDetailsPage.ClickCurriculumnEnroll();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.ContentProgress() == "0%");
            _test.Log(Status.Pass, "Verify Curriculum progress is 0%");
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumUnOrderedBlock.BannerCompletionText("Complete 2 in any order"));
            ContentDetailsPage.CurriculumContentTab.ClickStartGeneralCourse(generalcoursetitle + "TC35907_Uod_1");
            _test.Log(Status.Info, "Launch first General Course");
            ContentDetailsPage.CompleteCurriculumnContent();
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumUnOrderedBlock.BannerCompletionContentCount("1 / 2"));
            Assert.IsTrue(ContentDetailsPage.ContentBanner.ContentProgress() == "25%");
            _test.Log(Status.Pass, "Verify Curriculum progress is 25%");

            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumOrderedBlock.BannerCompletionText("Complete 2 in any order"));
            ContentDetailsPage.CurriculumContentTab.ClickStartGeneralCourse(generalcoursetitle + "TC35907_od_1");
            _test.Log(Status.Info, "Launch first General Course");
            ContentDetailsPage.CompleteCurriculumnContent();
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumOrderedBlock.BannerCompletionContentCount("1 / 2"));
            Assert.IsTrue(ContentDetailsPage.ContentBanner.ContentProgress() == "50%");
            _test.Log(Status.Pass, "Verify Curriculum progress is 50%");
        }
Ejemplo n.º 25
0
        public void P20_1_b16_Certifications_Containing_a_Document_27200()
        {
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC27200");
            _test.Log(Status.Info, "Create a Document");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In Button");

            CommonSection.CreateLink.Certifications();
            _test.Log(Status.Info, "Click on Certification");
            CertificationPage.FillTitle(CertificatrTitle + "TC27200");
            _test.Log(Status.Info, "Create a Certification course");
            CertificationPage.SelectDropDown.CompletionCriteriaAs("Content is completed in ANY order (Non-Linear) (Non-Linear)");
            _test.Log(Status.Info, "Select Completion Criteria ");
            CertificationPage.Radiobutton.SelectCertificationexpireAs("No");
            _test.Log(Status.Info, "Select Certification expiry");
            CertificationPage.Radiobutton.IncludePastContentCompletionAs("No");
            _test.Log(Status.Info, "Select option Includes Past Content Completion");
            CertificationPage.Radiobutton.SelectAllowReCertificationAs("Yes");
            _test.Log(Status.Info, "Select Allow Re-Certification");
            CertificationPage.Radiobutton.CertificationCostTypeAs("");
            _test.Log(Status.Info, "Select Certification Cost Type");
            CertificationPage.CreateCertification();
            _test.Log(Status.Info, "Click on Create Button");
            //CertificationPage.VerifySuccessMessageText("The item was created.");
            CertificationPage.AddContentInCertification("AddingWaitlistMembers_Bug");
            _test.Log(Status.Info, "Add Content in Certification");
            CertificationPage.CheckIn();
            _test.Log(Status.Info, "Click on CheckIn");
            CommonSection.SearchCatalog(CertificatrTitle + "TC27200");
            _test.Log(Status.Info, "Search for the Certification Course Title");
            SearchResultsPage.ClickCourseTitle(bundleTitle + "TC27200");
            _test.Log(Status.Info, "Click on Course Title");
            Assert.IsTrue((Driver.comparePartialString("You do not have a certification status for this certification.", ContentDetailsPage.getInformativeMessage())));
            _test.Log(Status.Pass, "Verify information is Displayed");
            Assert.IsTrue(ContentDetailsPage.isCertificationTypeDisplayed());
            _test.Log(Status.Pass, "Verify Certification Type is Displayed");
            Assert.IsTrue(ContentDetailsPage.isCertificationCostTypeDisplayed());
            _test.Log(Status.Pass, "Verify Certification Cost Type is Displayed");
            Assert.IsTrue(ContentDetailsPage.isCertificationPeriodDisplayed());
            _test.Log(Status.Pass, "Verify Certification Period is Displayed");
            Assert.IsTrue(ContentDetailsPage.isAccessItemButtonDisplayed());
            _test.Log(Status.Pass, "Verify Access Button is Displayed");
            Assert.IsTrue(ContentDetailsPage.isObjectivesBlockDisplayed());
            _test.Log(Status.Pass, "Verify Objective Block is Displayed");
            Assert.IsTrue(ContentDetailsPage.isAlternateOptionsBlockDisplayed());
            _test.Log(Status.Pass, "Verify Alternate Option Block is Displayed");
            Assert.IsTrue(ContentDetailsPage.isCertificationContentBlockDisplayed());
            _test.Log(Status.Pass, "Verify Certification Content Block is Displayed");
            ContentDetailsPage.ClickAccessItem();
            _test.Log(Status.Info, "Click on Access Item");
            Assert.IsTrue((Driver.comparePartialString(" You first accessed this item on 1/25/2019. ", ContentDetailsPage.getAccessDateMessage())));
            _test.Log(Status.Pass, "Verify Certification Content Block is Displayed");
            ContentDetailsPage.ClickCertificationClassroom();
            _test.Log(Status.Pass, "click on Certification Classroom");
            Assert.IsTrue((Driver.comparePartialString("You are enrolled in a current section for this classroom course.", ContentDetailsPage.getCertificationEnrolledMessage())));
            _test.Log(Status.Pass, "Verify Information is Displayed");
            Assert.IsTrue(Driver.isSuggestedCertificationDisplayed());
            _test.Log(Status.Pass, "Verify Suggested Certification is displayed");
            Assert.IsTrue(Driver.SuggestedCertifications.isCertificationTitleDisplayed());
            _test.Log(Status.Pass, "Verify Certification Title is Displayed");
            Assert.IsTrue(Driver.SuggestedCertifications.isCertificationCostDisplayed());
            _test.Log(Status.Pass, "Verify Certification Cost is Displayed");
        }
        public void tc_61678_As_a_learner_Accessing_Nested_Curriculum()
        {
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "TC61678");
            _test.Log(Status.Info, "Create a new General Course");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "TC61678_Pretochild");
            _test.Log(Status.Info, "Create a new General Course");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "TC61678_PretoParent");
            _test.Log(Status.Info, "Create a new General Course");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC61678");
            _test.Log(Status.Info, "Create Curriculum");
            AdminContentDetailsPage.AddPrequisites('"' + GeneralCourseTitle + "TC61678_Pretochild" + '"');
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(GeneralCourseTitle + "TC61678");
            _test.Log(Status.Info, "Add training Activities");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC61678_Parent");
            _test.Log(Status.Info, "Create Curriculum");
            AdminContentDetailsPage.AddPrequisites('"' + GeneralCourseTitle + "TC61678_Pretochild" + '"');
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(curriculamtitle + "TC61678");
            _test.Log(Status.Info, "Add training Activities");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");

            CommonSection.SearchCatalog('"' + curriculamtitle + "TC61678" + '"');
            _test.Log(Status.Pass, "Search the General Course Course");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "TC61678");
            Assert.IsFalse(ContentDetailsPage.ContentBanner.isEnrollButtondisplay());
            _test.Log(Status.Pass, "Verify Enroll button is not display");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to continue"));
            _test.Log(Status.Pass, "Verify prerequisite required message display on banner");

            CommonSection.SearchCatalog('"' + curriculamtitle + "TC61678_Parent" + '"');
            _test.Log(Status.Pass, "Search the General Course Course");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "TC61678_Parent");
            Assert.IsFalse(ContentDetailsPage.ContentBanner.isEnrollButtondisplay());
            _test.Log(Status.Pass, "Verify Enroll button is not display");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to continue"));
            _test.Log(Status.Pass, "Verify prerequisite required message display on banner");
            ContentDetailsPage.OverviewTab.Prerequisiteportlet.ClickPrerequisiteContentTitle(GeneralCourseTitle + "TC61678_Pretochild");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(GeneralCourseTitle + "TC61678_Pretochild"));
            ContentDetailsPage.ContentBanner.Click_Enrollbutton();
            AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent();
            ContentDetailsPage.ClickBreadCrumb(curriculamtitle + "TC61678_Parent");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC61678_Parent"));
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isEnrollButtondisplay());
            ContentDetailsPage.ContentBanner.Click_Enrollbutton();
            ContentDetailsPage.CurriculumContentTab.Click_CurriculumContent();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC61678"));
            Assert.IsFalse(ContentDetailsPage.ContentBanner.isEnrollButtondisplay());
            _test.Log(Status.Pass, "Verify Enroll button is not display");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to continue"));
            _test.Log(Status.Pass, "Verify prerequisite required message display on banner");
            Assert.IsFalse(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay());
        }
        public void A12_As_an_Admin_access_a_survey_report_of_Classroom_Course_from_the_admin_content_details_page_with_scope_limited_to_the_current_content_item_36034()
        {
            #region Pre-requisite of Testcase
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC36034");
            _test.Log(Status.Pass, "Create general Course");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Pass, "Click Check In button");

            ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "A new Classroom Course Created");
            string ContentTitle = AdminContentDetailsPage.Title(classroomcoursetitle + "TC36034");
            AdminContentDetailsPage.ManageSurveys();
            _test.Log(Status.Info, "Add survey to the Classroom");
            string SurveyTitle = SurveysPage.SurveysTitle("Before Course Start");
            SurveysPage.Click_backbutton();
            _test.Log(Status.Info, "Go back to the Classroom Course");
            ManageClassroomCoursePage.Clicktab("Sections");
            _test.Log(Status.Info, "Click Section Tab");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            _test.Log(Status.Info, "Click Add New Section Tab");
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            _test.Log(Status.Info, "Enter Section Title");
            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("3");
            _test.Log(Status.Info, "fill maximum capacity as 3");
            string SectionStartDate = CreateNewCourseSectionAndEventPage.SectionStartDate();
            string SectionEndDate   = CreateNewCourseSectionAndEventPage.SectionEndDate();
            ManageClassroomCoursePage.SelectWaitListasYes();
            _test.Log(Status.Info, "Click Waitlist as Yes");
            ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(1);
            _test.Log(Status.Info, "Set enrollment Date");

            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Info, "Click Create Button");
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            _test.Log(Status.Pass, "Verify Section1 is created");

            SectionsPage.ListofSections.ClickSectionTitle();
            _test.Log(Status.Info, "Click On section title");
            SectionDetailsPage.ClickContentTab();
            _test.Log(Status.Info, "Click on Content Tab ");
            Assert.IsTrue(ContentPage.SectionContentPageopened());
            _test.Log(Status.Pass, "Verify Content tab is display");
            ContentPage.ClickAddContent(generalcoursetitle + "TC36034");
            _test.Log(Status.Pass, "Add Content To Classroom course");
            ContentPage.ContentTab.AvailabletoLearner("Yes, when learner enrolls");
            _test.Log(Status.Pass, "Select Available to Learner");
            CommonSection.SearchCatalog(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Search Created Course");

            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            CommonSection.SearchCatalog(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Search Created Course");
            SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Click Course Title");
            ContentDetailsPage.ClickEnroll();
            _test.Log(Status.Info, "Click on Enroll");
            ContentDetailsPage.CourseMaterials.ClickContent(generalcoursetitle + "TC36034");
            _test.Log(Status.Info, "Click Content in Course Material");
            ContentDetailsPage.EnrolGeneralCourse();
            ContentDetailsPage.ClickOpenItem();
            _test.Log(Status.Info, "Click on Open New Attempt");
            ContentDetailsPage.MarkComplete();
            _test.Log(Status.Info, "Click on Open New Attempt");
            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            CommonSection.SearchCatalog(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Search Created Course");
            SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Click Course Title");
            ContentDetailsPage.ClickEditContent();
            _test.Log(Status.Info, "Click on Edit Content");
            SectionDetailsPage.ClickContentTab();
            _test.Log(Status.Info, "Click on Content Tab ");
            SectionsPage.ClickSectionTitle("Section1");
            _test.Log(Status.Info, "Click on Section Title ");
            SectionDetailsPage.ClickGradebookTab();
            _test.Log(Status.Info, "Click on Gradebook tab");
            GradebookPage.GradebookTab.SelectLearner("ak learner");
            _test.Log(Status.Info, "Select Learner");
            GradebookPage.GradebookTab.ProgressStatus("Completed");
            _test.Log(Status.Info, "Select Progress Status as Completed");
            GradebookPage.GradebookTab.SelectLearner("ak learner");
            _test.Log(Status.Info, "Select Learner");
            GradebookPage.GradebookTab.AttendenceStatus("Yes");
            _test.Log(Status.Info, "Select Progress Status");
            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            HomePage.CompletedTrainingPortlet.Click_CourseTitle(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Click on Course title");

            ContentDetailsPage.SurveyPortlet.ClickonattachedSurvey("Before Course Start");
            _test.Log(Status.Info, "Click Attached Survey");
            ContentDetailsPage.SurveyPortlet.CompleteSurvey();
            _test.Log(Status.Info, "Complete Survey");


            #endregion
            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Click on training under manage in Common Section ");
            TrainingPage.ManageContentPortlet.SearchForContent(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Search the course through manage content ");

            ManageContentPage.ClickContentTitle(classroomcoursetitle + "TC36034");
            _test.Log(Status.Info, "Click on Coure title ");
            Assert.IsTrue(ContentDetailsPage.isDisplayed());
            _test.Log(Status.Pass, "verify Content Details page");
            ContentDetailsPage.SurveyPortlet.Click_SurveyReport();
            _test.Log(Status.Pass, "Click on survey Report");
            Assert.IsTrue(SurveyReportPage.isSurveyDisplayed(SurveyTitle));
            _test.Log(Status.Pass, "Verify Survey is Displayed");
            Assert.IsTrue(SurveyReportPage.isContentTitleDisplayed(ContentTitle));
            _test.Log(Status.Pass, "Verify Content Title is Displayed");
            Assert.IsTrue(SurveyReportPage.isDropDownDisplayed());
            _test.Log(Status.Pass, "Verify DropDown is Displayed");
            Assert.IsTrue(SurveyReportPage.VerifyStartandEndDate(SectionStartDate, SectionEndDate));
            _test.Log(Status.Pass, "Verify section Start date and End date");
            SurveyReportPage.Click_Filter();
            _test.Log(Status.Info, "Select Section and Click on Filter ");
            Assert.IsTrue(SurveyReportPage.isReportGenerated());
            _test.Log(Status.Pass, "Verify report is generated ");
            SurveyReportPage.Goback();
            _test.Log(Status.Pass, "Go back to AdminContentdetailsPage");
            ManageClassroomCoursePage.Clicktab("Sections");
            _test.Log(Status.Info, "Click Section Tab");
            SectionsPage.ClickSectionTitle("Section1");
            _test.Log(Status.Info, "Click on Section Title ");
            SectionDetailsPage.SurveysPortlet.Click_Report();
            _test.Log(Status.Info, "Click on report");
            Assert.IsTrue(SurveyReportPage.isSurveyDisplayed(SurveyTitle));
            _test.Log(Status.Pass, "Verify Survey is Displayed");
            Assert.IsTrue(SurveyReportPage.isContentTitleDisplayed(ContentTitle));
            _test.Log(Status.Pass, "Verify Content Title is Displayed");
        }