Beispiel #1
0
        public void SetUp()
        {
            string tcName = TestContext.TestName;

            if (tcName == null)
            {
                tcName = "TestNameNotFound";
            }
            string location = CommonPageMethods.TestOpenLogFile(tcName);

            TestContext.AddResultFile(location);
        }
Beispiel #2
0
        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);
        }