public void FilterPostedPurchaseInvoiceListByVendor() { TestScenario.Run( UserContextManager, TestContext, userContext => { // select a random vendor to filter by var vendorName = TestScenario.SelectRandomRecordFromListPage( TestContext, userContext, VendorList, "Name"); TestScenario.RunPageAction( TestContext, userContext, PostedPurchaseInvoiceList, form => { var vendorNameColumn = form.Repeater().Column("Vendor"); TestScenario.ApplyColumnFilter( TestContext, userContext, vendorNameColumn, vendorName); using (new TestTransaction(TestContext, "ClearFilterByVendorName")) { userContext.InvokeInteraction( new InvokeActionInteraction( vendorNameColumn.Action("Clear Filter"))); } }); }); }
public void SortPostedPurchaseInvoiceListByAmount() { TestScenario.Run( UserContextManager, TestContext, userContext => { TestScenario.RunPageAction( TestContext, userContext, PostedPurchaseInvoiceList, form => { var amountColumnControl = form.Repeater().Column("Amount"); using (new TestTransaction(TestContext, "SortAmountDescending")) { userContext.InvokeInteraction( new InvokeActionInteraction( amountColumnControl.Action("Descending"))); } using (new TestTransaction(TestContext, "SortAmountAscending")) { userContext.InvokeInteraction( new InvokeActionInteraction( amountColumnControl.Action("Ascending"))); } }); }); }
public void OpenCloseMiniPurchaseInvoiceList() { // Open and Close MiniPurchaseInvoiceList TestScenario.Run( UserContextManager, TestContext, userContext => { TestScenario.RunPageAction( TestContext, userContext, MiniPurchaseInvoiceList, form => { TestContext.WriteLine( "Page Caption {0}", form.Caption); }); }); }
public void OpenItemList() { // Open Customers TestScenario.Run(OrderProcessorUserContextManager, TestContext, userContext => TestScenario.RunPageAction(TestContext, userContext, ItemListPageId)); }
public void OpenSalesOrderList() { // Open Page "Sales Order List" which contains a list of all sales orders TestScenario.Run(OrderProcessorUserContextManager, TestContext, userContext => TestScenario.RunPageAction(TestContext, userContext, SalesOrderListPageId)); }