コード例 #1
0
        /// <summary>
        /// Finish Timer test and show result in logs and in debug window
        /// </summary>
        /// <param name="actionNameToTest">Message to show on the finish of the test. Example: "Page was successfully loaded in" or "Page load was failed after"</param>
        /// <param name="log">Loger instance</param>
        public void Finish(string actionNameToTest, IfrLog log)
        {
            string msg = string.Format("{0} {1}", actionNameToTest, this._stopwatch.Elapsed);

            log.InfoMsg(msg);
        }
コード例 #2
0
 /// <summary>
 /// TimerTest Start / Initialisation of the stopwatch
 /// Results will be shown in logs and in debug window
 /// </summary>
 public TimerTest(string message, IfrLog log)
 {
     log.InfoMsg(message);
     this._stopwatch = Stopwatch.StartNew();
 }