Пример #1
0
        public void ExecuteTest()
        {
            /*var location = Assembly.GetExecutingAssembly().Location;
             * var directory = Path.GetDirectoryName(location);
             * string projectDir = Directory.GetParent(directory).Parent.FullName;
             * var path = Path.Combine(projectDir, "TestData.xlsx");*/

            string filepath = new PathBuilder("TestData.xlsx").Build();

            ExcelUtil.PopulateInCollection(filepath);
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject    pageEA    = pageLogin.Login(ExcelUtil.ReadData(1, "UserName"), ExcelUtil.ReadData(1, "Password"));

            pageEA.FillUserForm(ExcelUtil.ReadData(1, "Initial"), ExcelUtil.ReadData(1, "MiddleName"), ExcelUtil.ReadData(1, "FirstName"));
        }
Пример #2
0
        public void ExecuteTest()
        {
            // Log into application
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject    pageEA    = pageLogin.Login("execute", "automation");

            pageEA.FillUserForm("LF", "Luke", "Brandon");


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

            ////Intial
            //SeleniumSetMethods.EnterText("Initial", "executeautomation", 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);
        }