public void TC07_IpsumSubmitNoEmail() { /* Fill the question field with the Lorem ipsum (140 characters) * fill the form with user information, not entering email * Press Submit * compare error message*/ string expErrorNoEmail = "Email address can't be blank"; MoveToHaveYourSay moveToHaveYourSay = new MoveToHaveYourSay(); moveToHaveYourSay.GoToQuestionPage(); DoYouHaveQuestionForBBC doYouHaveQuestionForBBC = new DoYouHaveQuestionForBBC(); Dictionary <string, string> data = new Dictionary <string, string>() { { "Name", "UserName" }, { "Age", "23" }, { "Postcode", "31115" } }; doYouHaveQuestionForBBC.SetComment("140"); doYouHaveQuestionForBBC.SetValuesInForm(data, true); string actErrorNoEmail = doYouHaveQuestionForBBC.GetError(); Assert.AreEqual(expErrorNoEmail, actErrorNoEmail); }
public void TC05_Ipsum141Char() { /* Fill the question field with the Lorem ipsum (141 characters) * fill the form with user information, not entering Name * Do not press Submit! Take a screenshot and save it on your PC */ MoveToHaveYourSay moveToHaveYourSay = new MoveToHaveYourSay(); moveToHaveYourSay.GoToQuestionPage(); DoYouHaveQuestionForBBC doYouHaveQuestionForBBC = new DoYouHaveQuestionForBBC(); Dictionary <string, string> data = new Dictionary <string, string>() { { "Name", "UserName" }, { "Email address", "*****@*****.**" }, { "Age", "23" }, { "Postcode", "31115" } }; doYouHaveQuestionForBBC.SetComment("141"); doYouHaveQuestionForBBC.SetValuesInForm(data, false); }
public BBCQuestionsFormNoEmail() { doYouHaveQuestionForBBC = new DoYouHaveQuestionForBBC(); }
public BBCQuestionsFormNoName() { doYouHaveQuestionForBBC = new DoYouHaveQuestionForBBC(); }
public BBCLoremIpsum() { doYouHaveQuestionForBBC = new DoYouHaveQuestionForBBC(); }