コード例 #1
0
        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")));
                    }
                });
            });
        }
コード例 #2
0
 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")));
             }
         });
     });
 }
コード例 #3
0
 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);
         });
     });
 }
コード例 #4
0
 public void OpenItemList()
 {
     // Open Customers
     TestScenario.Run(OrderProcessorUserContextManager, TestContext,
                      userContext => TestScenario.RunPageAction(TestContext, userContext, ItemListPageId));
 }
コード例 #5
0
 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));
 }