Пример #1
0
        public void an_Admin_add_a_date_type_questionto_the_Evaluation_57712()

        {
            CommonSection.CreateLink.Evaluation();
            _test.Log(Status.Info, "Naviagte to Cretae Evalution page");

            EvaluationPage.CreateNewEvaluation(EvaluationTitle + "TC563394");
            _test.Log(Status.Info, "A new Evaluation is Created");
            ManageEvaluationPage.Structure1.Click_AddQuestion();
            _test.Log(Status.Info, "Click on Add A Question");
            Assert.IsTrue(ManageEvaluationPage.VerifyAddAQuestionModal());
            _test.Log(Status.Pass, "Verify on Add A Question");
            ManageEvaluationPage.AddaQuestionModal.Select_QuestionType("Date Field");
            _test.Log(Status.Info, "Select Date Field List type Question");
            string QuestionType = ManageEvaluationPage.AddaQuestionModal.Question_Type();

            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.QuestionOrTitleInputbox_Displayed("How are you asif ali " + Meridian_Common.globalnum + " ?"));
            _test.Log(Status.Pass, "Verify selected type is in Question type List");

            ManageEvaluationPage.AddaQuestionModal.Select_QuestionType("Date Field");
            _test.Log(Status.Info, "Select mentioned Question type Question");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifySelected_QuestionType("Date Field"));
            _test.Log(Status.Pass, "Verify selected Question type");
            string QuestionType1 = ManageEvaluationPage.AddaQuestionModal.Question_Type();

            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifyQuestion_TitleInputboxIsDisplayed());
            _test.Log(Status.Pass, "Verify Fill Question Title is Displayed");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifyingRequiredOptionSliderIs_Displayed());
            _test.Log(Status.Pass, "Verify Question Required Slider is Displayed is Displayed");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifyQuestionReusedSliderIs_Displayed());
            _test.Log(Status.Pass, "Verify Question Can Be reused Slider is Displayed");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifyOptionalCommentfieldSliderIs_Displayed());
            _test.Log(Status.Pass, "Verify comment Field Slider is Displayed");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.QuestionOrTitleInputbox_Displayed("what will be the date tomorrow " + Meridian_Common.globalnum + " ?"));
            _test.Log(Status.Pass, "Verify Question or title is Displayed");
            string QuestionOrTitle = ManageEvaluationPage.AddaQuestionModal.Question_Title();

            ManageEvaluationPage.AddaQuestionModal.Click_Create();
            _test.Log(Status.Info, "Click create Button");
            Assert.IsTrue(ManageEvaluationPage.Structure1.Verify_QuestionType(QuestionType));
            _test.Log(Status.Pass, "Verify created Question Type exists in structure Tab ");
            Assert.IsFalse(ManageEvaluationPage.Structure1.Verify_OptionalDisplayed(QuestionOrTitle));
            _test.Log(Status.Pass, "Verify created Question Type exists in structure Tab ");
            string Question = ManageEvaluationPage.Structure1.Structure_Question(QuestionType);

            ManageEvaluationPage.DropDownToggle.Click_AtPreview();
            _test.Log(Status.Pass, "Click preview From Dropdown Toggle");
            Assert.IsTrue(ManageEvaluationPage.VerifyQuestion_DisplayedInPreview(Question, EvaluationTitle + "TC563394"));
            _test.Log(Status.Pass, "Verify Question is Displayed in preview");
        }
Пример #2
0
        public void As_an_admin_add_radio_button_type_question_to_the_Evaluation_57714()
        {
            CommonSection.CreateLink.Evaluation();
            _test.Log(Status.Info, "Navigate to Create Evalution page");
            EvaluationPage.CreateNewEvaluation(EvaluationTitle + "TC563994");
            _test.Log(Status.Info, "A new Evaluation is Created");
            ManageEvaluationPage.Structure1.Click_AddQuestion();
            _test.Log(Status.Info, "Click on Add A Question");
            Assert.IsTrue(ManageEvaluationPage.VerifyAddAQuestionModal());
            _test.Log(Status.Pass, "Verify on Add A Question");
            ManageEvaluationPage.AddaQuestionModal.Select_QuestionType("Radio Button");
            _test.Log(Status.Info, "Select Date Field List type Question");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifySelected_QuestionType("Radio Button"));
            _test.Log(Status.Pass, "Verify selected Question type");
            string QuestionType = ManageEvaluationPage.AddaQuestionModal.Question_Type();

            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifyQuestion_TitleInputboxIsDisplayed());
            _test.Log(Status.Pass, "Verify Fill Question Title is Displayed");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifyingRequiredOptionSliderIs_Displayed());
            _test.Log(Status.Pass, "Verify Question Required Slider is Displayed is Displayed");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifyQuestionReusedSliderIs_Displayed());
            _test.Log(Status.Pass, "Verify Question Can Be reused Slider is Displayed");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.QuestionOrTitleInputbox_Displayed("How are you asif ali ?"));
            _test.Log(Status.Pass, "Verify Question or title is Displayed");
            string QuestionTitle = "How are you asif ali ?";


            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.Verify_AnswerRadioSelections() == 2);
            _test.Log(Status.Pass, "Verify custom answer options are = to 2 in count");
            ManageEvaluationPage.AddaQuestionModal.Enter_Response(1, 4);
            _test.Log(Status.Info, "Enter response");
            ManageEvaluationPage.AddaQuestionModal.Click_Create();
            _test.Log(Status.Info, "Click create Button");
            Assert.IsTrue(ManageEvaluationPage.Structure1.Verify_QuestionType(QuestionType));
            _test.Log(Status.Pass, "Verify created Question Type exists in structure Tab ");
            Assert.IsFalse(ManageEvaluationPage.Structure1.Verify_OptionalDisplayed(QuestionTitle));
            _test.Log(Status.Pass, "Verify created Question Type exists in structure Tab ");
            string Question = ManageEvaluationPage.Structure1.Structure_Question(QuestionType);

            ManageEvaluationPage.DropDownToggle.Click_AtPreview();
            _test.Log(Status.Pass, "Click preview From Dropdown Toggle");

            Assert.IsTrue(ManageSurveyPage.VerifyQuestionDisplayedInPreview(Question, EvaluationTitle + "TC563994"));
            _test.Log(Status.Pass, "Verify Question is Displayed in preview");
        }
Пример #3
0
        public void As_an_Admin_add_Short_Answer_Type_question_to_the_Evaluation_57771()
        {
            CommonSection.CreateLink.Evaluation();
            _test.Log(Status.Info, "Naviagte to Create Evaluation page");
            EvaluationPage.CreateNewEvaluation(EvaluationTitle + "TC563374");
            ManageEvaluationPage.Structure1.Click_AddQuestion();
            _test.Log(Status.Info, "Click on Add A Question");
            Assert.IsTrue(ManageEvaluationPage.VerifyAddAQuestionModal());
            _test.Log(Status.Pass, "Verify the Add A Question modal");
            ManageEvaluationPage.AddaQuestionModal.Select_QuestionType("Short Answer");
            _test.Log(Status.Info, "Select Short Answer type Question");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifySelected_QuestionType("Short Answer"));
            _test.Log(Status.Pass, "Verify selected Question type Short Answer");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.Verify_ShortAnswerExample());
            _test.Log(Status.Pass, "Verify selected Question type");

            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifyQuestionTitleIs_Displayed());
            _test.Log(Status.Pass, "Verify Fill Question Title is Displayed");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifyingRequiredOptionSliderIs_Displayed());
            _test.Log(Status.Pass, "Verify Question Required Slider is Displayed is Displayed");
            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.VerifyQuestionReusedSliderIs_Displayed());
            _test.Log(Status.Pass, "Verify Question Can Be reused Slider is Displayed");
            string QuestionType = ManageEvaluationPage.AddaQuestionModal.Question_Type();

            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.QuestionOrTitleInputbox_Displayed("How are you asif ali ?"));
            _test.Log(Status.Pass, "Verify Question or title is Displayed");
            string QuestionTitle = "How are you asif ali ?";

            ManageEvaluationPage.AddaQuestionModal.Click_Create();
            _test.Log(Status.Info, "Click create Button");
            Assert.IsTrue(ManageEvaluationPage.Structure1.Verify_QuestionType(QuestionType));
            _test.Log(Status.Pass, "Verify created Question Type exists in structure Tab ");
            Assert.IsFalse(ManageEvaluationPage.Structure1.Verify_OptionalDisplayed(QuestionTitle));
            _test.Log(Status.Pass, "Verify created Question Type exists in structure Tab ");
            //string QuestQuestionTypei = ManageEvaluationPage.Structure.Structure_Question(QuestionType);
            string Question = ManageEvaluationPage.Structure1.Structure_Question(QuestionType);

            ManageEvaluationPage.DropDownToggle.Click_AtPreview();
            _test.Log(Status.Pass, "Click preview From Dropdown Toggle");
            Assert.IsTrue(ManageEvaluationPage.VerifyQuestion_DisplayedInPreview(Question, EvaluationTitle + "TC563374"));
            _test.Log(Status.Pass, "Verify Question is Displayed in preview");
        }
Пример #4
0
        public void As_an_Admin_add_Paragraph_type_Question_to_the_Evaluation_57760()
        {
            CommonSection.CreateLink.Evaluation();
            _test.Log(Status.Info, "Naviagte to Cretae Evalution page");

            EvaluationPage.CreateNewEvaluation(EvaluationTitle + "TC563394");
            _test.Log(Status.Info, "A new Evaluation is Created");
            ManageEvaluationPage.Structure1.Click_AddQuestion();
            _test.Log(Status.Info, "Click on Add A Question");
            Assert.IsTrue(ManageEvaluationPage.VerifyAddAQuestionModal());
            _test.Log(Status.Pass, "Verify on Add A Question");
            ManageEvaluationPage.AddaQuestionModal.Select_QuestionType("Paragraph");
            _test.Log(Status.Info, "Select Paragrap type Question");
            string QuestionType = ManageEvaluationPage.AddaQuestionModal.Question_Type();

            Assert.IsTrue(ManageEvaluationPage.AddaQuestionModal.QuestionOrTitleInputbox_Displayed("How are you asif ali ?"));
            _test.Log(Status.Pass, "Verify Question or title is Displayed");
            string QuestionTitle = "How are you asif ali ?";

            //string QuestionTitle = ManageEvaluationPage.AddaQuestionModal.Question_Title();
            ManageEvaluationPage.AddaQuestionModal.Question_Required("Yes");
            _test.Log(Status.Info, "Select Question Required");
            ManageEvaluationPage.AddaQuestionModal.AllowQuestion_ToBeReused("Yes");
            _test.Log(Status.Info, "Select Question to be Reused");
            ManageEvaluationPage.AddaQuestionModal.Click_Create();
            _test.Log(Status.Info, "Click create Button");

            Assert.IsTrue(ManageEvaluationPage.Structure1.Verify_QuestionType(QuestionType));
            _test.Log(Status.Pass, "Verify created Question Type exists in structure Tab ");
            Assert.IsTrue(ManageEvaluationPage.Structure1.Verify_OptionalDisplayed(QuestionTitle));
            _test.Log(Status.Pass, "Verify created Question Type exists in structure Tab ");
            string Question = ManageEvaluationPage.Structure1.Structure_Question(QuestionType);

            ManageEvaluationPage.DropDownToggle.Click_AtPreview();
            _test.Log(Status.Pass, "Click preview From Dropdown Toggle");
            Assert.IsTrue(ManageEvaluationPage.VerifyQuestion_DisplayedInPreview(Question, EvaluationTitle + "TC563394"));
            _test.Log(Status.Pass, "Verify Question is Displayed in preview");
        }