public void ValidCredentialsTest() { LoginPageAction la = new LoginPageAction(driver); testMethodName = TestContext.TestName; try { la.EnterEmaild("ammayi9845"); Thread.Sleep(2000); la.ClickOnNext(); Thread.Sleep(2000); la.EnterPassword(); Thread.Sleep(2000); la.ClickOnNext2(); Thread.Sleep(8000); la.ClickOnLogOut(); Thread.Sleep(2000); } catch (Exception ex) { Console.Write(ex.Message); Assert.Fail(ex.Message); } }
public void InValidCredentialsTest() { LoginPageAction la = new LoginPageAction(driver); testMethodName = TestContext.TestName; try { la.EnterEmaild("ammayi99"); Thread.Sleep(2000); la.ClickOnNext(); Thread.Sleep(2000); la.EnterPassword(); Thread.Sleep(2000); la.ClickOnNext2(); Thread.Sleep(8000); la.ClickOnLogOut(); Thread.Sleep(2000); } catch (Exception ex) { Console.Write(ex.Message); Assert.Fail(ex.Message); //scj.Stop(); //FileInfo file = new FileInfo(@"C:\Users\Vishnu\Desktop\VM testing\ScreenRecording.wmv"); //utility.Rename(file, testMethodName + ".wmv"); } }