Esempio n. 1
0
        public void Test_GroupFormNameFieldIsNotEdit(string groupName, string startDate, string finishDate, string teacher, string experts)
        {
            groupsForm.NameField.Clear();
            groupsForm.setName(groupName)
            .SubmitButton.Click();
            List <string> expectedResult = groupsForm.RememberGroup();

            index = groupsForm.NameField.GetAttribute("value");
            Assert.IsFalse(table.FindRowInTable(expectedResult));
        }
Esempio n. 2
0
 public void Test_GroupFormIsNotAdd_NameFail(string groupName, int location, int direction, string startDate, string finishDate, string teacher, string experts)
 {
     groupsForm.setName(groupName)
     .setLocationDDL(location)
     .setDirectionDDL(direction)
     .setStartDate(startDate)
     .setFinishDate(finishDate)
     .setTeachers(teacher)
     .setExperts(experts)
     .SubmitButton.Click();
     expectedResult = groupsForm.RememberGroup();
     index          = groupsForm.NameField.GetAttribute("value");
     Assert.IsFalse(table.FindRowInTable(expectedResult));
 }
Esempio n. 3
0
        public void Test_CreateStudentFormIsDisplayed()
        {
            List <string> expectedResult = new List <string> {
                "", "Chernivtsy", "WebUI", "", "", "", "", "planned"
            };
            List <string> actualResult = groupForm.RememberGroup();

            CollectionAssert.AreEqual(actualResult, expectedResult);
        }
Esempio n. 4
0
 public void Test_GroupFormNameFieldIsEdit(string groupName, int location, bool budgetOwner, int direction, string startDate, string finishDate, string teacher, string experts)
 {
     groupsForm.NameField.Clear();
     groupsForm.setName(groupName);
     index = groupsForm.NameField.GetAttribute("value");
     groupsForm.SubmitButton.Click();
     expectedResult = groupsForm.RememberGroup();
     Assert.IsTrue(table.FindRowInTable(expectedResult));
 }