public void InputIntoDetailAreaAsBelow(Table table) { try { Dictionary <string, InputElementType> elementType = new Dictionary <string, InputElementType>(); elementType.Add("Pendenz Typ", InputElementType.Dropdown); //elementType.Add("Betreff", InputElementType.Textbox); elementType.Add("Beschreibung", InputElementType.Textarea); elementType.Add("Empfänger", InputElementType.GridDropdown); elementType.Add("Fällig", InputElementType.Datebox); Dictionary <string, string> screenMapping = new Dictionary <string, string>(); screenMapping.Add("Pendenz Typ", "pendenzTyp"); screenMapping.Add("Betreff", "betreff"); screenMapping.Add("Beschreibung", "beschreibung"); screenMapping.Add("Empfänger", "empfanger"); screenMapping.Add("Fällig", "fallig"); TestDataManager.InputTableData(new string[] { XPathPendenzen.TaskDetailFields1 }, table, elementType, screenMapping); Dictionary <string, string> fieldMapping = new Dictionary <string, string>(); fieldMapping.Add("Betreff", "Subject"); fieldMapping.Add("Beschreibung", "TaskDescription"); fieldMapping.Add("Fällig", "ExpirationDate"); TestDataManager.AddToTempEntities <XTask>(table, fieldMapping: fieldMapping); } catch (Exception) { Cleanup(); throw; } }
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; } }