예제 #1
0
        static void Main(string[] args)
        {
            #region Main
            int  choice;
            bool exit = false;
            do
            {
                PrintMenu();
                choice = int.Parse(Console.ReadLine());
                switch (choice)
                {
                case 0:
                {
                    Console.WriteLine("Chose exit.");
                    exit = true;
                    break;
                }

                case 1:
                    Console.WriteLine("Test logging in to humanity with correct info.");
                    HumanityLoginTests.LoginToHumanity();
                    break;

                case 2:
                    Console.WriteLine("Automatic test logging in to humanity with incorrect info.");
                    HumanityLoginTests.AutomaticLoginToHumanity();
                    break;

                case 3:
                    Console.WriteLine("Adding one new employee.");
                    HumanityAddNewEmployeeTests.AddNewEmployee();
                    break;

                case 4:
                    Console.WriteLine("Adding multiple new employees.");
                    HumanityAddNewEmployeeTests.AutoAddMultipleEmployees();
                    break;

                case 5:
                    Console.WriteLine("Edditing employee.");
                    HumanityEditEmployeeTest.EditEmployee();
                    break;

                case 6:
                    Console.WriteLine("Changing Settings.");
                    HumanitySettingsTest.ChangingSettings();
                    break;

                case 7:
                    Console.WriteLine("Signing out of Humanity.");
                    HumanitySignOutTest.SigningOut();
                    break;
                }
            }while (!exit);
            #endregion
        }
예제 #2
0
 public static void NavigateTo(IWebDriver wd)
 {
     HumanityLoginTests.LoginToHumanity();
 }
예제 #3
0
 public static void NavigateTo(IWebDriver wd)
 {
     HumanityLoginTests.LoginToHumanity();
     HumanityMenu.ClickStaff(wd);
     HumanityStaff.ClickEmployee1(wd);
 }
예제 #4
0
 public static void NavigateTo(IWebDriver wd)
 {
     HumanityLoginTests.LoginToHumanity();
     HumanityMenu.ClickSettingsButton(wd);
 }
예제 #5
0
 public static void NavigateTo(IWebDriver wd)
 {
     HumanityLoginTests.LoginToHumanity();
     wd.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(3);
     HumanityMenu.ClickStaff(wd);
 }