protected FXQATestBase() : base() { if (log == null) { log = new FXTest.Log.Log(); } testName = this.GetType().Name; log.StartTest(testName); log.WriteTag("TestInitialize", false); try { InitTest(); if (baseInitTestCalled) { initPassed = true; } else { initPassed = false; log.WriteLine("*****ERROR: FXQATestBase.InitTest() was not called!"); log.WriteLine("*****All test classes which override InitTest() must call base.InitTest()."); } } catch (Exception e) { log.WriteLine("Test initialization failed :"); log.WriteLine(); log.WriteLine(e.ToString()); } log.CloseTag(); }
public void IncCounters (bool b, String comments, Log log) { IncCounters(b, comments); if ( !b && log != null ) log.WriteLine(Comments); }
public ScenarioResult(bool b, string comments, Log log) : this(b, comments) { if ( !b && log != null ) log.WriteLine(comments); }