public void SetUp() { string tcName = TestContext.TestName; if (tcName == null) { tcName = "TestNameNotFound"; } string location = CommonPageMethods.TestOpenLogFile(tcName); TestContext.AddResultFile(location); }
public void Close() { Trace.Unindent(); Trace.WriteLine(String.Format("{0:yyyy-MM-dd} {0:HH:mm:ss}", DateTime.Now) + " Test finished: " + TestContext.CurrentTestOutcome); Trace.Flush(); Trace.Close(); string tcName = TestContext.TestName; if (tcName == null) { tcName = "TestNameNotFound"; } string location = CommonPageMethods.TestClose(tcName); TestContext.AddResultFile(location); }