コード例 #1
0
        public void WhenLeaveEmailEmptyAndEnterPasswordAndClickOnSignInButtonOnSignInPage()
        {
            SignInPageKeyword sk = new SignInPageKeyword();

            sk.SendKeysInPasswordField("gscxgashg");
            sk.ClickOnSignInButtonOnSignInPage();
        }
コード例 #2
0
        public void WhenEnterEmailAndLeavePasswordFieldEmptyAndClickOnSignInButtonOnSignInPage()
        {
            SignInPageKeyword sk = new SignInPageKeyword();

            sk.SendKeysInEmailField("*****@*****.**");
            sk.ClickOnSignInButtonOnSignInPage();
        }
コード例 #3
0
        public void WhenEnterIncorrectEmailIdAndPasswordAndClickOnSignInButtonOnSignInPage()
        {
            SignInPageKeyword sk = new SignInPageKeyword();

            sk.SendKeysInEmailField("*****@*****.**");
            sk.SendKeysInPasswordField("gscxgashg");
            sk.ClickOnSignInButtonOnSignInPage();
        }
コード例 #4
0
        public void ThenTheCorrectMessageShouldBeDisplayWithoutEmail()
        {
            SignInPageKeyword sk = new SignInPageKeyword();

            //ExtentTest test = ExtentReport.extent.CreateTest("login without email");
            try { Assert.AreEqual("An email address required.", sk.GetTextWithoutEmail());
                  //  test.Log(Status.Pass, "not able to login");
                  //test.Info(sk.GetTextWithoutEmail());
            }catch (AssertFailedException e)
            {
                //test.Log(Status.Fail, "able to login");
                throw e;
            }
        }
コード例 #5
0
        public void ThenTheCorrectMessageShouldBeDisplayWithIncorrectCredentials()
        {
            SignInPageKeyword sk = new SignInPageKeyword();

            //ExtentTest test = ExtentReport.extent.CreateTest("Login With ivalid credential on AutomationPractice.com");

            try
            {
                Assert.AreEqual("Authentication failed.", sk.GetTextWithIcorrectCredentials());
                //  test.Log(Status.Pass, "not able to login");
                //test.Info(sk.GetTextWithIcorrectCredentials());
            } catch (AssertFailedException e) {
                //test.Log(Status.Fail, "able to login");
                throw e;
            }
        }
コード例 #6
0
        public void WhenLeaveEmailAndPasswordFieldEmptyAndClickOnSignInButtonOnSignInPage()
        {
            SignInPageKeyword sk = new SignInPageKeyword();

            sk.ClickOnSignInButtonOnSignInPage();
        }