public void As_an_Admin_I_want_to_see_branching_is_not_available_to_Date_Field_Question_57441() { CommonSection.CreateLink.Survey(); _test.Log(Status.Info, "Naviagte to Cretae Survey page"); SurveysPage.CreateNewSurvey(SurveyTittle + "TC56300"); _test.Log(Status.Info, "A new Survey Created"); ManageSurveyPage.Structure.Click_AddAQuestion(); _test.Log(Status.Info, "Click on Add A Question Link "); Assert.IsTrue(ManageSurveyPage.IsAddaQuestionModalDisplayed()); _test.Log(Status.Pass, "Verify is Edit Question Modal is Displayed"); Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyQuestionTypeDropdownIsDisplayed()); _test.Log(Status.Pass, "Verif Question Type is Displayed on left side of Modal"); Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyQuestionTypeIsInList("Date Field")); _test.Log(Status.Pass, "Verify selected type is in Question type List"); ManageSurveyPage.AddaQuestionModal.SelectQuestionType("Date Field"); _test.Log(Status.Info, "Select mentioned Question type Question"); Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifySelectedQuestionType("Date Field")); _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 will be the date tomorrow ?")); _test.Log(Status.Pass, "Verify Question or title is Displayed"); string QuestionOrTitle = "what will be the date 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"); }
public void As_an_Admin_I_want_to_see_branching_is_not_available_to_Multiple_Choice_Checkbox_Question_57440() { CommonSection.CreateLink.Survey(); _test.Log(Status.Info, "Naviagte to Create Survey page"); SurveysPage.CreateNewSurvey(SurveyTittle + "TC56566"); _test.Log(Status.Info, "A new Survey Created"); ManageSurveyPage.Structure.Click_AddAQuestion(); _test.Log(Status.Info, "Click on Add A Question Link "); Assert.IsTrue(ManageSurveyPage.IsAddaQuestionModalDisplayed()); _test.Log(Status.Pass, "Verify is Edit Question Modal is Displayed "); Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyQuestionTypeDropdownIsDisplayed()); _test.Log(Status.Pass, "Verify Question Type is Displayed on left side of Modal"); Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyQuestionTypeIsInList("Checkbox")); _test.Log(Status.Pass, "Verify Checkbox type is in Question type List"); ManageSurveyPage.AddaQuestionModal.SelectQuestionType("Checkbox"); _test.Log(Status.Info, "Select mentioned Question type Question"); Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifySelectedQuestionType("Checkbox")); _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.VerifyCreateCustomAnswerIsDisplayed()); _test.Log(Status.Pass, "Verify Create Custom Answer is Displayed"); Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyMinimumDropdownFieldIsDisplayed()); _test.Log(Status.Pass, "Verify Minimum Dropdown field is displayed"); Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyMaximumDropdownFieldIsDisplayed()); _test.Log(Status.Pass, "Verify Maximum Dropdown field is displayed"); Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyRequiredOptionSliderIsDisplayed()); _test.Log(Status.Pass, "Verify Question Required Option 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("How are you Asif for checkboxes ?")); _test.Log(Status.Pass, "Verify Question or title is Displayed"); string QuestionOrTitle = "How are you Asif for checkboxes ?"; Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyAnswerRadioSelections() == 2); _test.Log(Status.Pass, "Verify custom answer options are = to 2 in count"); ManageSurveyPage.AddaQuestionModal.EnterResponse(1, 4); _test.Log(Status.Info, "Enter response"); ManageSurveyPage.AddaQuestionModal.Select_CheckboxMinimumValue("--"); _test.Log(Status.Info, "Select Minimum Value from drop down as (--)"); string CheckboxMinValue = ManageSurveyPage.AddaQuestionModal.ChkbxMinValue(); Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyCheckboxQuestionRequired(CheckboxMinValue)); _test.Log(Status.Pass, "Verify Question required Changes to No"); ManageSurveyPage.AddaQuestionModal.Select_CheckboxMinimumValue("1"); _test.Log(Status.Info, "Select Minimum Value from drop down as (--)"); CheckboxMinValue = ManageSurveyPage.AddaQuestionModal.ChkbxMinValue(); //string CheckboxMinValue = ManageSurveyPage.AddaQuestionModal.ChkbxMinValue(); Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyCheckboxQuestionRequired(CheckboxMinValue)); _test.Log(Status.Pass, "Verify Question required Changes to No"); ManageSurveyPage.AddaQuestionModal.Select_MinimumValue_MaximumValue("2", "1"); _test.Log(Status.Pass, "Select Minimum greater than Maximum "); Assert.IsTrue(ManageSurveyPage.AddaQuestionModal.VerifyErrorMessageIsDisplayed()); _test.Log(Status.Pass, "Verify the error message is displayed to fix the values"); ManageSurveyPage.AddaQuestionModal.Select_MinimumValue_MaximumValue("1", "2"); _test.Log(Status.Pass, "Select Minimum greater than Maximum "); ManageSurveyPage.AddaQuestionModal.QuestionRequired("No"); _test.Log(Status.Info, "Select Question Required"); ManageSurveyPage.AddaQuestionModal.AllowQuestionToBeReused("No"); _test.Log(Status.Info, "Select Question to be Reused"); ManageSurveyPage.AddaQuestionModal.ClickCreate(); _test.Log(Status.Info, "Click create Button"); Assert.IsTrue(ManageSurveyPage.Structure.VerifyOptionalDisplayed(QuestionOrTitle)); _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"); }