protected override void TestInitialize() { base.TestInitialize(); this.TestSite.DefaultProtocolDocShortName = "MS-ADOD"; //Initialize PTF Configurations this.TestConfig = new ADODTestConfig(this.TestSite); //Initialze SUT Adapters this.TestSite.Log.Add(LogEntryKind.Debug, "Initialize SUT control adapters."); this.ClientControlAdapter = (IClientControlAdapter)this.TestSite.GetAdapter(typeof(IClientControlAdapter)); this.DCControlAdapter = (IDCControlAdapter)this.TestSite.GetAdapter(typeof(IDCControlAdapter)); // Initialize Message Analyzer Adapter this.TestSite.Log.Add(LogEntryKind.Debug, "Initialize Message Analyzer adapters."); this.MaAdapter = (IMessageAnalyzerAdapter)this.TestSite.GetAdapter(typeof(IMessageAnalyzerAdapter)); this.MaAdapter.Reset(); // Initialize Test Environment this.TestSite.Log.Add(LogEntryKind.TestStep, "[INITIALIZE TEST ENVIRONMENT]"); if (!this.TestConfig.TriggerDisabled) { this.TestSite.Assert.IsTrue(this.InitEnvironment(), "Initialize test case should succeed."); } }
protected override void TestInitialize() { //Initialize all adapters base.TestInitialize(); this.TestConfig = new AzodTestConfig(this.TestSite); this.sutController = BaseTestSite.GetAdapter <ISutControlAdapter>(); maAdapter = BaseTestSite.GetAdapter <IMessageAnalyzerAdapter>(); maAdapter.Reset(); // Capture files location on the driver computer if (!Directory.Exists(TestConfig.LocalCapFilePath)) { Directory.CreateDirectory(TestConfig.LocalCapFilePath); } // Logs Path for Powershell Adapter on the driver computer. if (!Directory.Exists(TestConfig.DriverLogPath)) { Directory.CreateDirectory(TestConfig.DriverLogPath); } //other initialization setting if needed }