public virtual ITestObjectMap GetObjectMap() { if (_objMap == null) { ITestObjectPool pool = GetObjectPool(); pool.SetTestPage(this); _objMap = new TestObjectMap(pool); } return(_objMap); }
/* 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."); } }