public void TestMethod1()
        {
            //ExcelHelpers.PopulateInCollection(@"C:\\MyStuff\\Work\\C#\\Projects\\AutomationFrameworkSolution\\SeleniumAutomationFrameworkSolution\\SUT_UnitTestProject\\Data\\TestData.xlsx", "sheet1");

            ExcelHelpers excelHelpers = new ExcelHelpers();

            excelHelpers.PopulateInCollection(@"C:\\MyStuff\\Work\\C#\\Projects\\AutomationFrameworkSolution\\SeleniumAutomationFrameworkSolution\\SUT_UnitTestProject\\Data\\TestData.xlsx", "loginsheet");

            string username = excelHelpers.ReadData(2, "Username");

            string password = excelHelpers.ReadData(2, "Password");


            excelHelpers.PopulateInCollection(@"C:\\MyStuff\\Work\\C#\\Projects\\AutomationFrameworkSolution\\SeleniumAutomationFrameworkSolution\\SUT_UnitTestProject\\Data\\TestData.xlsx", "RegisterationSheet");

            string firstName = excelHelpers.ReadData(2, "FirstName");

            string lastName = excelHelpers.ReadData(2, "LastName");

            Console.WriteLine("Starting First Testcase execution");

            LogHelpers.WriteLine("Starting First Testcase execution");

            CurrentPage = GetInstance <StartPage>();

            CurrentPage = CurrentPage.AS <StartPage>().ClickLoginLink();

            CurrentPage.AS <LoginPage>().CheckIfLoginPageExists();

            CurrentPage.AS <LoginPage>().LoginToApplication(username, password);

            CurrentPage = CurrentPage.AS <LoginPage>().ClickOnRegisterButton();

            CurrentPage.AS <RegisterationPage>().EnterFirstName(firstName);

            CurrentPage.AS <RegisterationPage>().EnterLastName(lastName);

            CurrentPage.AS <RegisterationPage>().ClickOnRegisterButton();

            Console.WriteLine("First Testcase execution completed.");

            LogHelpers.WriteLine("First Testcase execution completed.");

            Console.WriteLine("Check Logs @ " + Settings.LogPath);
        }
Esempio n. 2
0
 public void ThenIsSouldSeeTheДоброПожаловать()
 {
     CurrentPage.AS <FirstPageAfterRegistration>().CheckIfTxtExist();
 }
Esempio n. 3
0
        public void WhenIEnterUserNameAndPassword(Table table1)
        {
            dynamic data = table1.CreateDynamicInstance();

            CurrentPage = CurrentPage.AS <HomePage>().Login(data.UserName, data.Password);
        }
Esempio n. 4
0
 public void ThenIClickLoginButton()
 {
     CurrentPage.AS <HomePage>().ClickLoginButton();
 }
Esempio n. 5
0
 public void GivenISeeApplicationOpened()
 {
     CurrentPage.AS <HomePage>().CheckIfLoginExist();
 }