예제 #1
0
        public void As_an_Admin_I_want_to_see_branching_is_not_available_to_Paragraph_type_Question_57443()
        {
            CommonSection.CreateLink.Survey();
            _test.Log(Status.Info, "Naviagte to Cretae Survey page");
            SurveysPage.CreateNewSurvey(SurveyTittle + "TC56883");
            _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.SelectQuestionType("Paragraph");
            _test.Log(Status.Info, "Select Paragrapg type Question");
            string QuestionType = ManageSurveyPage.AddaQuestionModal.QuestionType();

            Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.QuestionOrTitleInputboxDisplayed("How are you ?"));
            _test.Log(Status.Pass, "Verify Question or title is Displayed");
            string QuestionOrTitle = "How are you ?";

            ManageSurveyPage.AddaQuestionModal.QuestionRequired("No");
            _test.Log(Status.Info, "Select Question Required");
            ManageSurveyPage.AddaQuestionModal.AllowQuestionToBeReused("Yes");
            _test.Log(Status.Info, "Select Question to be Reused");
            ManageSurveyPage.AddaQuestionModal.ClickCreate();
            _test.Log(Status.Info, "Click create Button");

            Assert.IsTrue(ManageSurveyPage.Structure.VerifyQuestionType(QuestionType));
            _test.Log(Status.Pass, "Verify created Question Type exists in structure Tab ");
            Assert.IsTrue(ManageSurveyPage.Structure.VerifyOptionalDisplayed(QuestionOrTitle));
            _test.Log(Status.Pass, "Verify created Question Type exists in structure Tab ");
            Assert.IsFalse(ManageSurveyPage.Structure.verifyingbranching());
            _test.Log(Status.Pass, "Verify branching is disable");
        }
예제 #2
0
        public void As_an_Admin_I_want_to_see_branching_is_not_available_to_Short_Answer_Question_57442()
        {
            CommonSection.CreateLink.Survey();
            _test.Log(Status.Info, "Naviagte to Cretae Survey page");
            SurveysPage.CreateNewSurvey(SurveyTittle + "TC56599");
            _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.SelectQuestionType("Short Answer");
            _test.Log(Status.Info, "Select short type Question");
            Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifySelectedQuestionType("Short Answer"));
            _test.Log(Status.Pass, "Verify selected Question type");
            Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyShortAnswerExample());
            _test.Log(Status.Pass, "Verify selected Question type");
            string QuestionType = ManageSurveyPage.AddaQuestionModal.QuestionType();

            Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyQuestionOrTitleInputboxIsDisplayed());
            _test.Log(Status.Pass, "Verify Fill Question Title is Displayed");
            Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyRequiredOptionSliderIsDisplayed());
            _test.Log(Status.Pass, "Verify Question Required Slider is Displayed is Displayed");
            Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyQuestionToBeReusedSliderIsDisplayed());
            _test.Log(Status.Pass, "Verify Question Can Be reused Slider is Displayed");
            //Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyOptionalCommentfieldSliderIsDisplayed());
            //_test.Log(Status.Pass, "Verify comment Field Slider is Displayed");
            Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.QuestionOrTitleInputboxDisplayed("what is ur short ans tomorrow ?"));
            _test.Log(Status.Pass, "Verify Question or title is Displayed");
            string QuestionOrTitle = "what is ur short ans tomorrow ?";

            //string QuestionOrTitle = ManageSurveyPage.AddaQuestionModal.QuestionOrTitle();
            ManageSurveyPage.AddaQuestionModal.QuestionRequired("Yes");
            _test.Log(Status.Info, "Select Question Required");
            ManageSurveyPage.AddaQuestionModal.ClickCreate();
            _test.Log(Status.Info, "Click create Button");
            Assert.IsTrue(ManageSurveyPage.Structure.VerifyQuestionType(QuestionType));
            _test.Log(Status.Pass, "Verify created Question Type exists in structure Tab ");
            Assert.IsTrue(ManageSurveyPage.Structure.VerifyOptionalDisplayed(QuestionOrTitle));
            _test.Log(Status.Pass, "Verify created Question Type exists in structure Tab ");
            Assert.IsFalse(ManageSurveyPage.Structure.verifyingbranching());
            _test.Log(Status.Pass, "Verify branching is disable");
        }
예제 #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");
        }
예제 #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");
        }