Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Test]
- public void Test()
- {
- log.Info("Starting Appium Test");
- log.Info("Clicking Button_02");
- calculatorPage.Button_02.Click();
- log.Info("Clicking Button_Add");
- calculatorPage.Button_Add.Click();
- log.Info("Clicking Button_02");
- calculatorPage.Button_02.Click();
- log.Info("Clicking Button_Equals");
- calculatorPage.Button_Equal.Click();
- string expectedResult = "4";
- log.Info("Getting actual result");
- string actualResult = calculatorPage.Text_Result.Text;
- log.Debug($"Actual result is {actualResult}");
- log.Debug($"Comparing between expected result and actual result");
- Assert.AreEqual(expected: expectedResult, actual: actualResult);
- }
Add Comment
Please, Sign In to add comment