Guest User

Untitled

a guest
Jan 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. [Test]
  2. public void Test()
  3. {
  4. log.Info("Starting Appium Test");
  5.  
  6. log.Info("Clicking Button_02");
  7. calculatorPage.Button_02.Click();
  8.  
  9. log.Info("Clicking Button_Add");
  10. calculatorPage.Button_Add.Click();
  11.  
  12. log.Info("Clicking Button_02");
  13. calculatorPage.Button_02.Click();
  14.  
  15. log.Info("Clicking Button_Equals");
  16. calculatorPage.Button_Equal.Click();
  17.  
  18. string expectedResult = "4";
  19.  
  20. log.Info("Getting actual result");
  21. string actualResult = calculatorPage.Text_Result.Text;
  22.  
  23. log.Debug($"Actual result is {actualResult}");
  24.  
  25. log.Debug($"Comparing between expected result and actual result");
  26. Assert.AreEqual(expected: expectedResult, actual: actualResult);
  27. }
Add Comment
Please, Sign In to add comment