public void Initialize( IConfigurationData config, IProtocolTestContext context, string testSuiteName, string testAssemblyName) { TestSiteProvider.Initialize(config, context, testSuiteName, testAssemblyName); }
/// <summary> /// Initializes the test suite /// </summary> /// <param name="config">Configure data</param> /// <param name="context">Context</param> /// <param name="testSuiteName">TestSuite name</param> /// <param name="testAssemblyName">Assembley name</param> public static void Initialize( IConfigurationData config, IProtocolTestContext context, string testSuiteName, string testAssemblyName) { TestSiteProvider.Initialize(config, context, testSuiteName, testAssemblyName); }
/// <summary> /// Initializes the current test site, based on test test context and test suite name. /// If a current test site exists which does have same test suite name, /// it will be reused, otherwise a new one will be created, otherwise the current one /// will be reused. /// </summary> /// <param name="config">Configuration data from ptfconfig</param> /// <param name="context"></param> /// <param name="testSuiteName"></param> /// <param name="testAssemblyName">Test assembly name</param> public static void Initialize( IConfigurationData config, IProtocolTestContext context, string testSuiteName, string testAssemblyName) { if (context == null) { throw new ArgumentNullException("context", "Test context cannot be null."); } Initialize(config, context.TestDeploymentDir, testSuiteName, testAssemblyName); }
private void UpdaProtocolTestContext(TestContext context) { if (this.ProtocolTestContext == null) { this.ProtocolTestContext = new VstsTestContext(context); } else { //update protocol test context VstsTestContext vsContext = this.ProtocolTestContext as VstsTestContext; vsContext.Update(context); this.ProtocolTestContext = vsContext; } }
/// <summary> /// Initializes the current test site, based on test test context and test suite name. /// If a current test site exists which does have same test suite name, /// it will be reused, otherwise a new one will be created, otherwise the current one /// will be reused. /// </summary> /// <param name="config">Configuration data from ptfconfig</param> /// <param name="context"></param> /// <param name="testSuiteName"></param> /// <param name="testAssemblyName">Test assembly name</param> public static void Initialize( IConfigurationData config, IProtocolTestContext context, string testSuiteName, string testAssemblyName) { if (context == null) { throw new ArgumentNullException("context", "Test context cannot be null."); } Initialize(config, context.TestDeploymentDir, testSuiteName, testAssemblyName); }