Example #1
0
        /// <summary>
        /// Initializes the log with xml header stuff.
        /// </summary>
        private void initLog()
        {
            TestState ts   = TestState.getOnly();
            string    date = DateTime.Now.Date.ToShortDateString();

            m_sw.WriteLine(@"<?xml version=""1.0"" encoding=""UTF-8""?>");
            m_sw.WriteLine(@"<?xml-stylesheet type=""text/xsl"" href=""gtdLog.xsl""?>");
            m_sw.WriteLine(@"<gtdLog>");
            m_sw.WriteLine(@" <set-up date=""{0}"">", date);
            m_sw.WriteLine(@"  <application path=""{0}"" exe=""{1}""/>", ts.getAppPath(), ts.getAppExe());
            m_sw.WriteLine(@"  <script path=""{0}"" name=""{1}""/>", ts.getScriptPath(), ts.Script);
            m_sw.WriteLine(@"  <model path=""{0}"" name=""{1}""/>", ts.getModelPath(), ts.getModelName());
            m_sw.WriteLine(@" </set-up>");
            m_init = true;
        }