You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compare the hard coded object (refreshed before started the tests) with the parsed response;
Call modification endpoints and validate that the endpoint still exists and change what is should change (for eg.: number of messages in the InBox, add/edit/delete phone number(s), etc.).
Example:
classUser:Student{publicstringName{get;}publicintBankAccountBalance{get;}publicISchoolSchool{get;}publicList<Message> Messages {get;}publicUser(){Name="Tom PoLáKoSz";BankAccountBalance=20000;School=new ObudaiEgyetem();Messages=newList<Message>(){
...};}}
...[TestMethod]publicasyncvoid SampleRegressionTests(){
_user =new User();
var loginPage =new LoginPage(_user.School);varmessagesPage=new MessagesPage(_user.School);intmaxTryNumber=await loginPage.GetMaxTryNumber();await loginPage.LogIn(_user);List<Message>messages=await messagesPage.InBox();MessagespecificMessage=await messagesPage.GetMessage(messages[0]);
CompareSpecificMessage(_user.Messages[0], specificMessage);// maybe this is not valid
...}[DataSource][DataRow(expexted, actual)]
private void CompareSpecificMessage(Messageexpected,Messageactual){
Assert.AreEqual(expected,actual);}
The text was updated successfully, but these errors were encountered:
Live calls to the webpage
Example:
The text was updated successfully, but these errors were encountered: