Example #1
0
        public void P20_1_tc_26218_Rate_Review_Survey()
        {
            CommonSection.CreateLink.Survey();
            SurveysPage.CreateNewSurvey(surveyTitle + "TC26218");
            _test.Log(Status.Info, "A new Survey Created");
            SurveyPage.Click_Publish();

            CommonSection.SearchCatalog(surveyTitle + "TC26218");
            SearchResultsPage.ClickCourseTitle(surveyTitle + "TC26218");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(surveyTitle + "TC26218"));
            _test.Log(Status.Pass, "Verify Content title is display on Banner");
            Assert.IsFalse(ContentDetailsPage.isreviewTabdisdisplay());
            _test.Log(Status.Pass, "Verify Tab is not display");
            ContentDetailsPage.ContentBanner.Click_TakeSurveybutton();
            ContentDetailsPage.closeSurveywindow(surveyTitle + "TC26218");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContinueButtonDisplsplay());
            Assert.IsFalse(ContentDetailsPage.isreviewTabdisdisplay());
            _test.Log(Status.Pass, "Verify Tab is not display after enroll into course");
        }
Example #2
0
        public void tc_58492_As_an_admin_Include_evaluation_to_Training_Assignment_content()
        {
            CommonSection.Manage.SurveysAndEvaluations();
            SurveycosolePage.Create.Evaluation();
            EvaluationPage.ClickCanbeaddedtocontainersortrainingassignments();
            EvaluationPage.Title(EvaluationTitle + "TC58492").Keywors("test").Create();
            SurveyPage.Click_Publish();
            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage >> Training Page");
            TrainingPage.TrainingAssignments.Click_CreateTrainingAssignment();
            _test.Log(Status.Info, "Click Create Training Assignment link from training assignment portlet");
            CreateTrainingAssignmentPage.Create(TATitle + "TC58492");
            _test.Log(Status.Info, "A new training assignement created as draft");
            CreateTrainingAssignmentPage.ContentTab.ClickAddContent();
            _test.Log(Status.Info, "Click Add Content");

            _test.Log(Status.Info, "Click Add Content");
            CreateTrainingAssignmentPage.ContentTab.AddContentModal.AddContent(EvaluationTitle + "TC58492");
            _test.Log(Status.Info, "Content added to training assignment");
            CreateTrainingAssignmentPage.AssignessTab.ClickAddAssignees();
            _test.Log(Status.Info, "Click Add Assignees button in Assignees tab");
            CreateTrainingAssignmentPage.AssignessTab.AddAssignessModal.AddAssigne("learner 101");
            _test.Log(Status.Info, "A user added to training assignment");
            CreateTrainingAssignmentPage.DueDateTab.ClickChage();
            _test.Log(Status.Info, "Click Chage button in Due Date tab");
            string previousCompletions = CreateTrainingAssignmentPage.DueDateTab.AssignmentDueDateModal.SetPreviousCompletionsYesandRecurringNo("days");

            _test.Log(Status.Info, "Set Previous Completions count and save for Non recurring assignement");
            CreateTrainingAssignmentPage.ClickDueDateTab();
            _test.Log(Status.Info, "Click Chage button in Due Date tab");
            Assert.IsTrue(CreateTrainingAssignmentPage.DueDateTab.VerifyPreviousComplistion(previousCompletions));
            _test.Log(Status.Pass, "Verify Copletion count saved properly");
            CreateTrainingAssignmentPage.clickAssignButton();

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner101").WithPassword("").Login();
            CommonSection.Learn.CurrentTraining();
            CurrentTrainingPage.allContenttypefilter.selectEvaluation();
            Assert.IsTrue(CurrentTrainingPage.ContentList.isContentTypeDisplay("Evaluation"));
            TC60869 = true;
        }
Example #3
0
        public void tc_60737_As_a_learner_I_want_to_see_most_relevant_Survey_Banner_Actions()
        {
            CommonSection.CreateLink.Survey();
            SurveysPage.CreateNewSurvey(surveyTitle + "TC60737");
            _test.Log(Status.Info, "A new Survey Created");
            ManageSurveyPage.Structure.Click_AddAQuestion();
            _test.Log(Status.Info, "Click on Add A Question");
            Assert.IsTrue(ManageSurveyPage.VerifyAddAQuestionModal());
            _test.Log(Status.Pass, "Click on Add A Question");
            ManageSurveyPage.AddaQuestionModal.CreateRadiobuttontype("RadioTypeQuestion", "good", "Not good");
            ManageSurveyPage.clickSurveyTab();
            SurveyPage.AddImage();
            _test.Log(Status.Info, "Add image to Survey");
            SurveyPage.Click_Publish();
            SurveyPage.ClickViewasLearner();

            Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(surveyTitle + "TC60737"));
            _test.Log(Status.Pass, "Verify Content title is display on Banner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay());
            _test.Log(Status.Pass, "Verify Content type is display on Banner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentImagedisplay());
            _test.Log(Status.Pass, "Verify Image is display on Banner");

            Assert.IsTrue(ContentDetailsPage.isSaveShareandEditContentbuttndisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isTakeSurveyButtonDisplay());

            ContentDetailsPage.ContentBanner.Click_TakeSurveybutton();
            ContentDetailsPage.closeSurveywindow(surveyTitle + "TC60737");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContinueButtonDisplsplay());
            _test.Log(Status.Pass, "Verify Continue button is display on Banner");
            ContentDetailsPage.ContentBanner.click_continuebutton();
            ContentDetailsPage.ComleteSurvey(surveyTitle + "TC60737");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isReviewButtonDisplay());
            _test.Log(Status.Pass, "Verify Review button is display on Banner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isReTakeSurveylinkDisplsplay());
            _test.Log(Status.Pass, "Verify is Retake Surveylink is display on Banner");
        }
Example #4
0
        public void tc_60841_As_a_learner_I_want_to_see_the_interactions_I_had_in_History_Tab_of_Survey()
        {
            CommonSection.CreateLink.Survey();
            SurveysPage.CreateNewSurvey(surveyTitle + "TC26218");
            _test.Log(Status.Info, "A new Survey Created");
            ManageSurveyPage.Structure.Click_AddAQuestion();
            _test.Log(Status.Info, "Click on Add A Question");
            Assert.IsTrue(ManageSurveyPage.VerifyAddAQuestionModal());
            _test.Log(Status.Pass, "Click on Add A Question");
            ManageSurveyPage.AddaQuestionModal.CreateRadiobuttontype("RadioTypeQuestion", "good", "Not good");
            ManageSurveyPage.clickSurveyTab();
            SurveyPage.Click_Publish();
            SurveyPage.ClickViewasLearner();

            Assert.IsTrue(ContentDetailsPage.ContentBanner.isTakeSurveyButtonDisplay());
            ContentDetailsPage.ContentBanner.Click_TakeSurveybutton();
            ContentDetailsPage.ComleteSurvey(surveyTitle + "TC60737");
            ContentDetailsPage.Click_HistoryTab_Curriculum();
            Assert.IsFalse(ContentDetailsPage.Historytab.isViewCertificateButtonDisplay());
            _test.Log(Status.Pass, "Verify View Certification button should not display");
            Assert.IsTrue(ContentDetailsPage.HistoryTab.isStatusDisplay("Completed"));
            _test.Log(Status.Pass, "Verify Completed status displayed");
        }