Пример #1
0
        public void AddChildDependentWODob()
        {
            string eeName = "Test Ess";

            // Dependent data
            #region
            string name         = "Caroline Ann Johnson";
            string relationship = "Child";
            #endregion

            Home.GoTo();
            Home.LoginAsAdmin();

            Menu.PIM.EmployeeList.GoTo();
            EmployeeList.SearchForEmployee(eeName);
            Employee.AddDependent(EmployeeList.SelectEmployeeInTableById(), name, relationship);
            Assert.IsTrue(AssignDependent.DependentCorrectlyAdded(name, relationship), "Dependent was not added successfully.");

            Home.Logout();
        }
Пример #2
0
        public void AddOtherDependent()
        {
            string eeName = "Test Ess";

            // Dependent data
            #region
            string name         = "Ellen V Johnson";
            string relationship = "Other";
            string dob          = "1950-12-29";
            string other        = "Spouse";
            #endregion

            Home.GoTo();
            Home.LoginAsAdmin();

            Menu.PIM.EmployeeList.GoTo();
            EmployeeList.SearchForEmployee(eeName);
            Employee.AddDependent(EmployeeList.SelectEmployeeInTableById(), name, relationship, other, dob);
            Assert.IsTrue(AssignDependent.DependentCorrectlyAdded(name, relationship, other, dob), "Dependent was not added successfully.");

            Home.Logout();
        }