Пример #1
0
        public void ExecuteTest()
        {
            LoginPageObjects pageLogin = new LoginPageObjects();
            EAPageObjects    pageEA    = pageLogin.Login("sevilay", "test");

            pageEA.FillUserForm("SA", "automation", "sevilay");
        }
Пример #2
0
        [Test] // needed to run the test
        public void ExecuteTest()
        {
            //open spreadsheet for test data
            ExcelLib.PopulateInCollection(@"C:\Users\yvon\dev\SeleniumAutomation\Data.xlsx");
            //Login to Application and instantiate EAPageObject
            LoginPageObject pageLogin = new LoginPageObject();
            //EAPageObjects pageEA =  pageLogin.Login("Yvon", "EA9817");
            EAPageObjects pageEA = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password"));

            pageEA.FillUserForm(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "MiddleName"), ExcelLib.ReadData(1, "FirstName"));



            ////Title
            //SeleniumSetMethods.SelectDropDown("TitleId","Ms.", How.Id);

            ////Initial
            //SeleniumSetMethods.EnterText("Initial","EJN" ,How.Name);

            //Console.WriteLine("The value from my Title is: " + SeleniumGetMethods.GetTextFromDDl("TitleId", How.Id));

            //Console.WriteLine("The value from my Initial is: " + SeleniumGetMethods.GetText("Initial", How.Name));

            ////Click
            //SeleniumSetMethods.Click("Save", How.Name);
        }
Пример #3
0
        public void ExecuteTest()
        {
            ExcelLib.PopulateInCollection(@"C:\Users\bdavis2\Documents\FormAutomation.xlsx");

            //Login to Application
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObjects   pageEA    = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password"));

            //Fill form
            pageEA.FillUserForm(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "FirstName"), ExcelLib.ReadData(1, "MiddleName"));
        }
Пример #4
0
        public void ExecuteTest()
        {
            //Login to application

            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObjects   pageEA    = pageLogin.Login("Test", "Text");

            pageEA.FillUserForm("MA", "Jose", "Rafael");



            ////Title
            //SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id);

            ////Initial
            //SeleniumSetMethods.EnterText("Initial", "TestText", PropertyType.Name);

            //Console.WriteLine("The value from my title is: " + SeleniumGetMethods.GetText("TitleId", PropertyType.Id));

            //Console.WriteLine("The value from my initial is: " + SeleniumGetMethods.GetText("Initial", PropertyType.Name));

            ////Click
            //SeleniumSetMethods.Click("Save", PropertyType.Name);
        }