Пример #1
0
 public void DisplayErrorMessageAtTopOfPageContentWithContentIs(string message)
 {
     try
     {
         TestDataManager.CheckControlContent(XPathPendenzen.TopContentValidateMessage, message, index: 1);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Пример #2
0
 public void OnTreeLeftNavMenuValueOfErstelltePendenzenOffeneIs(string value)
 {
     try
     {
         TestDataManager.CheckControlContent(string.Format(XPathPendenzen.NavbarItems, "2_2"), value);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Пример #3
0
 public void DisplayErrorMessageAtElementBetreff(string message)
 {
     try
     {
         TestDataManager.Click(string.Format(XPathPendenzen.TaskDetailFields1, "betreff"), waitingTime: 2);
         TestDataManager.CheckControlContent(string.Format(XPathPendenzen.TaskDetailFields1 + XPath0DevExtreme.AutogenElement, "betreff"), message, valueAttribute: "textContent");
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Пример #4
0
 public void TheseItemsAreEnabled()
 {
     try
     {
         TestDataManager.CheckControlContent(XPathPendenzen.NavbarMenu, "false", "ng-reflect-disabled");
         TestDataManager.CheckControlContent(XPathPendenzen.SearchArea, "false", "ng-reflect-disabled");
         TestDataManager.CheckControlContent(XPathPendenzen.GridTask, "false", "ng-reflect-disabled");
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Пример #5
0
 public void DetailAreaSwitchesToViewMode()
 {
     try
     {
         TestDataManager.CheckControlContent(XPathPendenzen.ButtonCreate, "true", "ng-reflect-visible");
         TestDataManager.CheckControlContent(XPathPendenzen.ButtonEdit, "true", "ng-reflect-visible");
         TestDataManager.CheckControlContent(XPathPendenzen.ButtonSave, "false", "ng-reflect-visible");
         TestDataManager.CheckControlContent(XPathPendenzen.ButtonCancel, "false", "ng-reflect-visible");
         TestDataManager.CheckControlStatus(XPathPendenzen.TaskDetailAreaEdit, isDisplayed: false);
         TestDataManager.CheckControlStatus(XPathPendenzen.TaskDetailAreaView, isDisplayed: true);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Пример #6
0
        public void DetailAreaSwitchesToEditModeOfStatusInBearbeitung(Table statusTable)
        {
            try
            {
                TestDataManager.CheckControlContent(XPathPendenzen.ButtonCreate, "false", "ng-reflect-visible");
                TestDataManager.CheckControlContent(XPathPendenzen.ButtonEdit, "false", "ng-reflect-visible");
                TestDataManager.CheckControlContent(XPathPendenzen.ButtonSave, "true", "ng-reflect-visible");
                TestDataManager.CheckControlContent(XPathPendenzen.ButtonCancel, "true", "ng-reflect-visible");
                TestDataManager.CheckControlStatus(XPathPendenzen.TaskDetailAreaEdit, isDisplayed: true);
                TestDataManager.CheckControlStatus(XPathPendenzen.TaskDetailAreaView, isDisplayed: false);

                Dictionary <string, string> xPaths = new Dictionary <string, string>();
                xPaths.Add(XPathPendenzen.TaskDetailFields2, "ng-reflect-disabled");
                xPaths.Add(XPathPendenzen.TaskDetailFields1, "ng-reflect-disabled");

                Dictionary <string, string> screenMapping = new Dictionary <string, string>();
                screenMapping.Add("Status", "status");
                screenMapping.Add("Pendenz Typ", "pendenzTyp");
                screenMapping.Add("Betreff", "betreff");
                screenMapping.Add("Beschreibung", "beschreibung");
                screenMapping.Add("Empfänger", "empfanger");
                screenMapping.Add("Fallträger", "falltrager");
                screenMapping.Add("Leistung", "leistung");
                screenMapping.Add("Leistungsverantw.", "leistungsverantw");
                screenMapping.Add("betrifft Person", "betrifftPerson");
                screenMapping.Add("Antwort", "antwort");
                screenMapping.Add("Erfasst", "erfasst");
                screenMapping.Add("Fällig", "fallig");

                TestDataManager.CheckTableData(xPaths, statusTable, screenMapping: screenMapping);
            }
            catch (Exception)
            {
                Cleanup();
                throw;
            }
        }