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"); }
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"); }