public void CreditCardAdvanceSearch() { Initialize(); var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.ARAdvancedSearch); foreach (var dataRow in datarows) { if (dataRow.ItemArray[1].ToString() == "Credit Card") { SearchWindow.SelectSearchElements(null, "CreditCard", SearchWindow.SearchTypeConstants.Advanced); ARAdvancedSearchWindow.EnterCreditCardSearchData(dataRow); ARAdvancedSearchWindow.ClickSearchBtn(); Playback.Wait(10000); var creditCard = ARAdvancedSearchWindow.SelectCreditCardRecord(dataRow.ItemArray[11].ToString()); if (creditCard) { Playback.Wait(5000); MouseActions.ClickButton(SimpleSearchWindow.GetViewCreditCardPaymentWindowProperties(), "_btnClose"); ARAdvancedSearchWindow.CloseSearchResultsWindow(); } if (ARAdvancedSearchWindow.VerifySearchResultsWindowDisplayed()) { ARAdvancedSearchWindow.CloseSearchResultsWindow(); } } } Cleanup(); }
public void WorkerSimpleSearch() { var datarows = Initialize(); foreach (var dataRow in datarows) { var TypeOne = dataRow.ItemArray[4].ToString(); if (TypeOne.Equals("Worker")) { Console.WriteLine(dataRow.ItemArray[3]); SearchWindow.SelectSearchElements(dataRow.ItemArray[5].ToString(), TypeOne, SearchWindow.SearchTypeConstants.Simple); Globals.WorkerName = dataRow.ItemArray[6].ToString(); SimpleSearchWindow.SelectWorkerFromResultsWindow(); Factory.AssertIsTrue(SimpleSearchWindow.VerifyWorkerProfileDisplayed(dataRow.ItemArray[6].ToString()), "Displayed results does not contain: " + dataRow.ItemArray[5]); TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetWorkerProfileWindowProperties()); TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetSearchResultsWindowProperties()); } } //Cleanup(); }
public void InvoiceRelationShipsSearch() { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("IRelationShips"))) { Console.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "IRelationShips2", SearchWindow.SearchTypeConstants.Simple); Factory.AssertIsTrue(SimpleSearchWindow.VerifySearchResultsWindowDisplayed(), "Results are displayed for the search criteria"); SimpleSearchWindow.CloseResultsWindow(); } Cleanup(); }
public void NotificationSimpleSearch() { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("Lockout"))) { Console.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "Lockout", SearchWindow.SearchTypeConstants.Simple); Playback.Wait(3000); Factory.AssertIsTrue(SimpleSearchWindow.VerifyLockoutOverideWindowDisplayed(), "Results are displayed for the search criteria"); TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetLockoutOverideWindowProperties()); } Cleanup(); }
public void BillingLineItemSearch() { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("BillingLineItem"))) { Console.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "BillingLineItem", SearchWindow.SearchTypeConstants.Simple); Playback.Wait(3000); Factory.AssertIsTrue(SimpleSearchWindow.VerifySearchResultsWindowDisplayed(), "Search results window is not displayed for the search criteria"); SimpleSearchWindow.CloseResultsWindow(); } Cleanup(); }
public void DispatchSearch() { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("Dispatch"))) { Console.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "Dispatch", SearchWindow.SearchTypeConstants.Simple); SearchWindow.SelectJobOrderFromResults(); Factory.AssertIsTrue(JobOrderWindow.VerifyDispatchStatusDisplayed(), "Dispatch status is not displayed for selected job order"); JobOrderWindow.CloseJobOrderProfileWindow(); SimpleSearchWindow.CloseResultsWindow(); } Cleanup(); }
public void InvoicesSearch() { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("Invoices"))) { Console.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "Invoices2", SearchWindow.SearchTypeConstants.Simple); Playback.Wait(3000); Factory.AssertIsTrue(SimpleSearchWindow.VerifyCustomerInvoiceDisplayed(), "Customer invoice is not displayed for the search criteria"); TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetCustomerInvoiceWindowProperties()); } Cleanup(); }
public void InvoiceTransactionsSearch() { try { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("ITransactions"))) { Console.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "ITransactions2", SearchWindow.SearchTypeConstants.Simple); SearchWindow.SelectInvoiceFromResults(); Factory.AssertIsTrue(SimpleSearchWindow.VerifyCustomerInvoiceWindowDisplayed(datarow.ItemArray[5].ToString()), "View Credit card payment window is not displayed for the search criteria"); } } finally { Cleanup(); } }
public void CustomerSimpleSearch() { try { var datarows = Initialize(); foreach (var dataRow in datarows.Where(dataRow => dataRow.ItemArray[4].ToString().Equals("Customer"))) { Debug.WriteLine(dataRow.ItemArray[3]); SearchWindow.SelectSearchElements(dataRow.ItemArray[5].ToString(), "Customer", SearchWindow.SearchTypeConstants.Simple); Playback.Wait(3000); Globals.CustomerName = dataRow.ItemArray[6].ToString(); Factory.AssertIsTrue(SimpleSearchWindow.VerifyCustomerProfileDisplayed(dataRow.ItemArray[6].ToString()), "Customer profile for " + dataRow.ItemArray[5] + " Is not displayed"); TitlebarActions.ClickClose((WinWindow)CustomerProfileWindow.GetCustomerProfileWindowProperties()); } } finally { Cleanup(); } }
public void CreditCardSearch() { try { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("CreditCard"))) { Debug.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "CreditCard", SearchWindow.SearchTypeConstants.Simple); SearchWindow.SelectCardFromResults(); Factory.AssertIsTrue(SimpleSearchWindow.VerifyViewCreditCardPaymentWindowDisplayed(datarow.ItemArray[5].ToString()), "View Credit card payment window is not displayed for the search criteria"); TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetViewCreditCardPaymentWindowProperties()); SimpleSearchWindow.CloseResultsWindow(); } } finally { Cleanup(); } }