Beispiel #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="testName">The test case name.</param>
 /// <param name="testLogDir">The test log directory where to dump the JSON file upon closing the logger.</param>
 /// <param name="lowestSeverity">The lowest severity message to log.</param>
 public TestLogger(string testName, string testLogDir, LogSeverity lowestSeverity = LogSeverity.Trace) :
     base(lowestSeverity: lowestSeverity)
 {
     TestLogDir  = testLogDir;
     TestLogPath = null;
     Data        = new TestLogData(testName);
     CurrentStep = null;
 }
Beispiel #2
0
 /// <summary>
 /// Logs a new step.
 /// Internally adds new step data.
 /// All messages and artifacts will be logged under this new step.
 /// </summary>
 /// <param name="name">The test step name.</param>
 public void LogStep(string name)
 {
     CurrentStep = new StepArtifactData(name);
     Data.Steps.Add(CurrentStep);
 }