Exemple #1
0
        public static void RequireScript()
        {
            sap.ui.require(new string[] {
                "sap/ui/test/Opa5",
                "manu/toolpageapp/fv/test/integration/pages/Common",
            },
                           (new Action <sap.ui.test.Opa5, Common>((Opa5, Common) => {
                var map = new Map <CreatePageObjectsInfo>();

                OnTheHomePage testPage = new OnTheHomePage(Opa5);
                testPage.sViewName = "Home";

                CreatePageObjectsInfo cpo = testPage.GetPageObject();
                cpo.baseClass = Common;
                map.Set <OnTheHomePage>(cpo);

                createPageObjects(map);
            })
                           ));
        }
        public static void RequireScript()
        {
            sap.ui.require(new string[] {
                "sap/ui/test/Opa5",
                "manu/toolpageapp/fv/test/integration/pages/Common",
                "sap/ui/test/matchers/BindingPath",
                "sap/ui/test/actions/Press"
            },
                           (new Action <sap.ui.test.Opa5, Common>((Opa5, Common) => {
                var map = new Map <CreatePageObjectsInfo>();

                OnTheSettingsPage testPage = new OnTheSettingsPage(Opa5);
                testPage.sViewName1 = "MasterSettings";
                testPage.sViewName2 = "DetailSettings";

                CreatePageObjectsInfo cpo = testPage.GetPageObject();
                cpo.baseClass = Common;
                map.Set <OnTheSettingsPage>(cpo);

                createPageObjects(map);
            })
                           ));
        }
        public static void RequireScript()
        {
            sap.ui.require(new string[] {
                "sap/ui/test/Opa5",
                "manu/toolpageapp/fv/test/integration/pages/Common",
                "sap/ui/test/matchers/PropertyStrictEquals",
                "sap/ui/test/actions/Press"
            },
                           (new Action <sap.ui.test.Opa5, Common>((Opa5, Common) => {
                var map = new Map <CreatePageObjectsInfo>();

                OnTheStatisticsPage testPage = new OnTheStatisticsPage(Opa5);
                testPage.sViewName = "Statistics";
                testPage.sChartViewName = testPage.sViewName + "D3";

                CreatePageObjectsInfo cpo = testPage.GetPageObject();
                cpo.baseClass = Common;
                map.Set <OnTheStatisticsPage>(cpo);

                createPageObjects(map);
            })
                           ));
        }