示例#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"));
        }
        public void ExecuteTest()
        {
            LoginPageObjects pageLogin = new LoginPageObjects();
            EAPageObjects    eaPage    = pageLogin.Login("admin", "1234");

            eaPage.FillFormUser("Teste", "Marcos", "Lima");


            ////select
            //seleniumsetmethods.selectdropdown( "titleid", propertytype.id,"mr.");
            //console.writeline("the value from my title is " + seleniumgetmethods.gettextddl("titleid", propertytype.id));

            //thread.sleep(1000);

            ////enter text
            //seleniumsetmethods.entertext("initial", "execution", "name");
            //console.writeline("the value from my title is " + seleniumgetmethods.gettext("initial",propertytype.name));
            //thread.sleep(1000);

            ////click
            //seleniumsetmethods.click( "save", propertytype.name);
            //thread.sleep(5000);
        }
示例#5
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);
        }