示例#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
        static void Main(string[] args)
        {
            int  izbor;
            bool izlaz = false;

            do
            {
                PrintMenu();
                izbor = int.Parse(Console.ReadLine());

                switch (izbor)
                {
                case 0:
                {
                    Console.WriteLine("Izlaz!");
                    izlaz = true;
                    break;
                }

                case 1:
                {
                    Console.WriteLine("Login Tests");
                    HumanityLoginTests.LoginTests();
                    break;
                }

                case 2:
                {
                    Console.WriteLine("Add Employees Tests");
                    HumanityAddNewEmployee.AddNewEmployeeTest();
                    break;
                }

                case 3:
                {
                    Console.WriteLine("Add Employees Tests");
                    HumanityProfileTests.UploadImageTests();
                    break;
                }

                case 4:
                {
                    Console.WriteLine("All");
                    HumanityLoginTests.LoginTests();
                    HumanityAddNewEmployee.AddNewEmployeeTest();
                    HumanityProfileTests.UploadImageTests();
                    break;
                }
                }
            } while (!izlaz);
        }
示例#3
0
 public static void NavigateTo(IWebDriver wd)
 {
     HumanityLoginTests.LoginToHumanity();
 }
示例#4
0
 public static void NavigateTo(IWebDriver wd)
 {
     HumanityLoginTests.LoginToHumanity();
     HumanityMenu.ClickStaff(wd);
     HumanityStaff.ClickEmployee1(wd);
 }
示例#5
0
 public static void NavigateTo(IWebDriver wd)
 {
     HumanityLoginTests.LoginToHumanity();
     HumanityMenu.ClickSettingsButton(wd);
 }
示例#6
0
 public static void NavigateTo(IWebDriver wd)
 {
     HumanityLoginTests.LoginToHumanity();
     wd.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(3);
     HumanityMenu.ClickStaff(wd);
 }