Beispiel #1
0
        //Constructor
        public TestRunnerClass()
        {
            //Step-2 Initialize the Run-Time vars from the Config File
            RunTimeVars.ReadAppConfig();


            //Step-3 Create a reference to the UIMap(s)/Page Object(s)

            //**************************
            // Test Context Section
            //************************
            testContext = new RunTestContext();

            //************************
            // Page Objects Section
            //************************
            adminPrograms            = new AdminPrograms();
            creditHoursTab           = new CreditHoursTab();
            headerPage               = new HeaderPage();
            loginPage                = new LoginPage();
            pageFactoryModel         = new PageFactoryModel();
            parentStudentTab         = new ParentStudentTab();
            providerSearchPage       = new ProviderSearchPage();
            safePage                 = new SafePage();
            staffTab                 = new StaffTab();
            studentFinanceSearchPage = new StudentFinanceSearchPage();
            studentSearchPage        = new StudentSearchPage();
            testPage1                = new TestPage1();
            testPage2                = new TestPage2();
            verifyPageTabs           = new VerifyPageTabs();
        } //end Constructor
Beispiel #2
0
        public TestRunnerClass()
        {
            //Step-2 Initialize the Run-Time vars from the Config File
            RunTimeVars.ReadAppConfig();


            //Step-3 Create a reference to the UIMap(s)/Page Object(s)

            //**************************
            // Test Context Section
            //************************
            testContext                = new ProgramTestContext();
            providerApplicationData    = new ProviderApplicationData();
            scholarshipApplicationData = new ScholarshipApplicationData();

            //************************
            // Page Objects Section
            //************************
            adminPrograms             = new AdminPrograms();
            advancedStudentSearchPage = new AdvancedStudentSearchPage();
            applicationTab            = new ApplicationTab();
            commentsHistory           = new CommentsHistoryTab();
            creditHoursTab            = new CreditHoursTab();
            docsTab                   = new DocsTab();
            general                   = new GeneralTab();
            headerPage                = new HeaderPage();
            iepTab                    = new IEPTab();
            loginPage                 = new LoginPage();
            menu                      = new Menu();
            newProviderApplication    = new NewProviderApplication();
            newScholarshipApplication = new NewScholarshipApplication();
            parentGuardianTab         = new ParentGuardianTab();
            parentStudentTab          = new ParentStudentTab();
            personnel                 = new PersonnelTab();
            programSelectionPage      = new ProgramSelectionPage();
            providerSearchPage        = new ProviderSearchPage();
            renewProviderApplication  = new RenewProviderApplication();
            safePage                  = new SafePage();
            servicesTab               = new ServicesTab();
            staffTab                  = new StaffTab();
            statusFlagsTab            = new StatusFlagsTab();
            student                   = new Student();
            studentFinanceSearchPage  = new StudentFinanceSearchPage();
            studentSearchPage         = new StudentSearchPage();
            studentTab                = new StudentTab();
            testPage1                 = new TestPage1();
            testPage2                 = new TestPage2();
            verifyPageTabs            = new VerifyPageTabs();
        } //end Constructor
Beispiel #3
0
        /// <summary>
        /// 获取安全的分页信息。
        /// </summary>
        /// <param name="page">分页信息接口。</param>
        /// <returns></returns>
        public static IPage GetSafePage(IPage page)
        {
            IPage safePage;

            if ((safePage = (page as SafePage)) != null)
            {
                return(safePage);
            }
            //
            if (!(page?.PageNumber).HasValue || !(page?.PageSize).HasValue)
            {
                safePage = new SafePage(page.PageNumber, page.PageSize);
            }
            else
            {
                safePage = page;
            }
            return(safePage);
        }