/* void LoadPlugin() * Get the dll we need. * use reflecting to load dll at runtime. */ private void LoadPlugin() { _objPool = TestFactory.CreateTestObjectPool(); if (TestFactory.AppType == TestAppType.Desktop) { _testApp = TestFactory.CreateTestApp(); _objPool.SetTestWindow(_testApp.CurrentWindow); } else if (TestFactory.AppType == TestAppType.Web) { _testBrowser = TestFactory.CreateTestBrowser(); _objPool.SetTestPage(_testBrowser.CurrentPage); } else { throw new CannotInitCoreEngineException("Unknow application type."); } }
/* void LoadPlugin() * load interface from TestFactory. */ private void LoadPlugin() { this._testVP = TestFactory.CreateTestVP(); }