/* ITestVP CreateTestVP() * Return ITestVP interface. * This interface is used to perform check point. */ public static ITestCheckPoint CreateTestVP() { if (String.IsNullOrEmpty(_testVPDLL)) { throw new CannotLoadDllException("Test VP dll can not be null."); } try { _testVP = (ITestCheckPoint)LoadDll(_testVPDLL, _testVPClassName); } catch (Exception ex) { throw new CannotLoadDllException("Can not create instance of test VP: " + ex.ToString()); } if (_testVP == null) { throw new CannotLoadDllException("Can not create instance of test VP."); } else { return(_testVP); } }
/* void LoadPlugin() * load interface from TestFactory. */ private void LoadPlugin() { this._testVP = TestFactory.CreateTestVP(); }
/* ITestVP CreateTestVP() * Return ITestVP interface. * This interface is used to perform check point. */ public static ITestCheckPoint CreateTestVP() { if (String.IsNullOrEmpty(_testVPDLL)) { throw new CannotLoadDllException("Test VP dll can not be null."); } try { _testVP = (ITestCheckPoint)LoadDll(_testVPDLL, _testVPClassName); } catch (Exception ex) { throw new CannotLoadDllException("Can not create instance of test VP: " + ex.ToString()); } if (_testVP == null) { throw new CannotLoadDllException("Can not create instance of test VP."); } else { return _testVP; } }