Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. [TestMethod]
  2. public void ICanLoginWithCorrectCredentials()
  3. {
  4. IApp app = new App();
  5. ILoginWindow loginPage = new LoginWindow();
  6.  
  7. string login = GetTestParameter("login");
  8. string password = GetTestParameter("password");
  9.  
  10. //Step 1
  11. app.Launch();
  12. Assert.IsTrue(app.IsLaunched, "App was not launched”);
  13.  
  14. //Step 2
  15. Assert.IsTrue(loginPage.Login(login, password), "Cannot login with given credentials");
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement