Beispiel #1
0
        public void InputIntoSearchAreaAsBelow(Table table)
        {
            try
            {
                string[] xPaths = new string[]
                {
                    XPathPendenzen.SearchFields3,
                    XPathPendenzen.SearchFields2,
                    XPathPendenzen.SearchFields1
                };

                Dictionary <string, InputElementType> elementType = new Dictionary <string, InputElementType>();
                elementType.Add("Status", InputElementType.Dropdown);
                //elementType.Add("Betreff", InputElementType.Textbox);
                elementType.Add("Bearbeitung from", InputElementType.Datebox);
                elementType.Add("Bearbeitung to", InputElementType.Datebox);
                elementType.Add("Ersteller", InputElementType.GridDropdown);

                Dictionary <string, string> screenMapping = new Dictionary <string, string>();
                screenMapping.Add("Status", "status");
                screenMapping.Add("Betreff", "betreff");
                screenMapping.Add("Bearbeitung from", "processing-box-item1");
                screenMapping.Add("Bearbeitung to", "processing-box-item3");
                screenMapping.Add("Ersteller", "creator");

                TestDataManager.InputTableData(xPaths, table, elementType, screenMapping);
                TestDataManager.Click(XPathPendenzen.PageHeaderLeft, waitingTime: 2);
            }
            catch (Exception)
            {
                Cleanup();
                throw;
            }
        }
Beispiel #2
0
 public void ClickOnButtonSpeichern()
 {
     try
     {
         TestDataManager.Click(XPathPendenzen.ButtonSave, waitingTime: 5);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Beispiel #3
0
 public void ClickOnButtonBearbeiten()
 {
     try
     {
         TestDataManager.Click(XPathPendenzen.ButtonEdit);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Beispiel #4
0
 public void ClickOnButtonNeusPendenz()
 {
     try
     {
         TestDataManager.Click(XPathPendenzen.ButtonCreate);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Beispiel #5
0
 public void ChooseRowOnGridTask(int p0)
 {
     try
     {
         TestDataManager.Click(string.Format(XPathPendenzen.GridTaskFields, "Fällig"), p0);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Beispiel #6
0
 public void ClickOnButtonJa()
 {
     try
     {
         TestDataManager.Click(XPath0DevExtreme.AutogenElement + XPathPendenzen.ButtonYes);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Beispiel #7
0
 public void ClickOnButtonAbbrechen()
 {
     try
     {
         TestDataManager.Click(XPathPendenzen.ButtonCancel);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Beispiel #8
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;
     }
 }
Beispiel #9
0
 public void WhenChooseInDropdownErsteller(string option)
 {
     try
     {
         TestDataManager.InputGridDropdown(string.Format(XPathPendenzen.SearchFields1, "creator"), option);
         TestDataManager.Click(XPathPendenzen.PageHeaderLeft, waitingTime: 2);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Beispiel #10
0
 public void WhenChooseInDateboxBearbeitungTo(string option)
 {
     try
     {
         TestDataManager.InputDatebox(string.Format(XPathPendenzen.SearchFields2, "processing-box-item3"), option);
         TestDataManager.Click(XPathPendenzen.PageHeaderLeft, waitingTime: 2);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }
Beispiel #11
0
 public void FilterOnGridTask(string field, string filterOption, string filterValue)
 {
     try
     {
         TestDataManager.InputDropdownGridFilter(string.Format(XPathPendenzen.GridTaskFieldsHeader, field), filterOption);
         TestDataManager.Input(string.Format(XPathPendenzen.GridTaskFieldsHeader + XPath0Common.Textbox, field), filterValue);
         TestDataManager.Click(XPathPendenzen.GridTask, waitingTime: 2);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }