Show / Hide Table of Contents

Class DebugLogger

Log the content to both Console and Debug (showing in visual studio)

Inheritance
Object
DebugLogger
Namespace: AxaFrance.WebEngine
Assembly: AxaFrance.WebEngine.dll
Syntax
public static class DebugLogger

Methods

| Edit this page View Source

WriteError(String)

Writes a message in both Console and Debug view of visual Studio. in Red Text

Declaration
public static void WriteError(string content)
Parameters
Type Name Description
String content

the content of the log to be written

Remarks

Messages written in console will be shown on screen and will be transmitted to the client side when using remote testing. Messages written on Debug view will allow 3rd test framework such as NUnit and/or Spec-flow to capture the test result in the report. The Error message are writtin in Red color, but not in ErrorStream. Some CI Pipe line consider technical errors and stops the step from running if any messages are writen in Error Stream.

| Edit this page View Source

WriteLine(String)

Writes a message in both Console and Debug view of visual studio.

Declaration
public static void WriteLine(string content)
Parameters
Type Name Description
String content

the content of the log to be written

Remarks

When developing test actions, use this method to ensure the log is written both on console and Debug view.

Messages written in console will be shown on screen and will be transmitted to the client side when using remote testing. Messages written on Debug view will allow 3rd test framework such as NUnit and/or Spec-flow to capture the test result in the report.

| Edit this page View Source

WriteLine(StringBuilder)

Writes a message in both Console and Debug view of visual studio.

Declaration
public static void WriteLine(StringBuilder content)
Parameters
Type Name Description
StringBuilder content

the content of the log to be written

Remarks

When developing test actions, use this method to ensure the log is written both on console and Debug view.

Messages written in console will be shown on screen and will be transmitted to the client side when using remote testing. Messages written on Debug view will allow 3rd test framework such as NUnit and/or Spec-flow to capture the test result in the report.

| Edit this page View Source

WriteWarning(String)

Writes a Warning message on the console with Yellow color. Warning is not considered as Error.

Declaration
public static void WriteWarning(string content)
Parameters
Type Name Description
String content
  • Edit this page
  • View Source
In this article
Back to top Copyright ® 2016-2024 AXA France, All rights reserved.