OpenKeyWord  Version: 426, Datum:
OKW.Log.Log2TestClipboard Klassenreferenz

Klasse dient zur Test der Logging-Ausgaben. Mehr ...

Klassendiagramm für OKW.Log.Log2TestClipboard:
Inheritance graph
Zusammengehörigkeiten von OKW.Log.Log2TestClipboard:
Collaboration graph

Öffentliche Methoden

void LogError (string fps_Message)
 LogError Function: Logs an error message to the results file. Mehr ...
 
void LogException (string fps_Message)
 LogException Function: Logs a Script Exception to the results file. Mehr ...
 
void LogFunctionEnd ()
 
void LogFunctionEnd (string fps_Return)
 
void LogFunctionEnd (bool fpb_Return)
 
void LogFunctionEnd (List< string > fpls_Return)
 
void LogFunctionStart (string fps_FunctionName, params string[] fpsParameter)
 
void LogKeyWordEnd ()
 
void LogKeyWordStart (string fps_KeyWordName, params string[] fpsParameter)
 
void LogPrint (string fps_Message)
 LogPrint Function: Prints the values of expressions to the results file. Mehr ...
 
void LogVerify (string fps_Actual, string fps_Expected)
 
void LogWarning (string fps_Message)
 LogWarning Function: Logs a warning to the results file. Mehr ...
 
void ResCloseList ()
 Closes the outline level. Mehr ...
 
void ResOpenList (string fps_Name)
 

Private Methoden

void BlankBefore ()
 

Private Attribute

string BlanksBefore = string.Empty
 
int LevelCounter = 0
 

Ausführliche Beschreibung

Klasse dient zur Test der Logging-Ausgaben.

Ausgaben werden in einem Hash abgelegt und können gelöscht und geprüft werden.

Autor
Zoltán Hrabovszki
Datum
2015.05.02

Definiert in Zeile 64 der Datei Log2TestClipboard.cs.

Dokumentation der Elementfunktionen

void OKW.Log.Log2TestClipboard.BlankBefore ( )
private

Definiert in Zeile 295 der Datei Log2TestClipboard.cs.

296  {
297  this.BlanksBefore = new string(' ', this.LevelCounter);
298  }

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

void OKW.Log.Log2TestClipboard.LogError ( string  fps_Message)

LogError Function: Logs an error message to the results file.

Parameter
fps_Message

Implementiert OKW.Log.ILogger.

Definiert in Zeile 80 der Datei Log2TestClipboard.cs.

81  {
82  OKW_TestClipboard.Instance.LogValueAdd(this.BlanksBefore + "Error: " + fps_Message);
83  }
void OKW.Log.Log2TestClipboard.LogException ( string  fps_Message)

LogException Function: Logs a Script Exception to the results file.

Parameter
fps_Message
fps_Message

Implementiert OKW.Log.ILogger.

Definiert in Zeile 91 der Datei Log2TestClipboard.cs.

92  {
93  OKW_TestClipboard.Instance.LogValueAdd(this.BlanksBefore + "Exception: " + fps_Message);
94  }
void OKW.Log.Log2TestClipboard.LogFunctionEnd ( )

Implementiert OKW.Log.ILogger.

Definiert in Zeile 101 der Datei Log2TestClipboard.cs.

102  {
103  this.LogPrint("-------");
104  this.ResCloseList();
105  }
void ResCloseList()
Closes the outline level.
void LogPrint(string fps_Message)
LogPrint Function: Prints the values of expressions to the results file.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

void OKW.Log.Log2TestClipboard.LogFunctionEnd ( string  fps_Return)

Implementiert OKW.Log.ILogger.

Definiert in Zeile 112 der Datei Log2TestClipboard.cs.

113  {
114  this.ResOpenList("Return...");
115  this.LogPrint(fps_Return);
116  this.ResCloseList();
117  this.LogPrint("-------");
118  this.ResCloseList();
119  }
void ResCloseList()
Closes the outline level.
void LogPrint(string fps_Message)
LogPrint Function: Prints the values of expressions to the results file.
void ResOpenList(string fps_Name)

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

void OKW.Log.Log2TestClipboard.LogFunctionEnd ( bool  fpb_Return)

Implementiert OKW.Log.ILogger.

Definiert in Zeile 126 der Datei Log2TestClipboard.cs.

127  {
128  this.ResOpenList("Return...");
129  this.LogPrint(OKW_Helper.Boolean2String(fpb_Return));
130  this.ResCloseList();
131  this.LogPrint("-------");
132  this.ResCloseList();
133  }
void ResCloseList()
Closes the outline level.
void LogPrint(string fps_Message)
LogPrint Function: Prints the values of expressions to the results file.
void ResOpenList(string fps_Name)

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

void OKW.Log.Log2TestClipboard.LogFunctionEnd ( List< string >  fpls_Return)

Implementiert OKW.Log.ILogger.

Definiert in Zeile 140 der Datei Log2TestClipboard.cs.

141  {
142  this.ResOpenList("Return...");
143 
144  foreach (string Value in fpls_Return)
145  {
146  this.LogPrint(Value);
147  }
148 
149  this.ResCloseList();
150  this.LogPrint("-------");
151  this.ResCloseList();
152  }
void ResCloseList()
Closes the outline level.
void LogPrint(string fps_Message)
LogPrint Function: Prints the values of expressions to the results file.
void ResOpenList(string fps_Name)

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

void OKW.Log.Log2TestClipboard.LogFunctionStart ( string  fps_FunctionName,
params string[]  fpsParameter 
)

Implementiert OKW.Log.ILogger.

Definiert in Zeile 159 der Datei Log2TestClipboard.cs.

160  {
161  this.ResOpenList(fps_FunctionName);
162  this.ResOpenList("Parameter...");
163 
164  for (int i = 0; i < fpsParameter.Length; i += 2)
165  {
166  this.LogPrint(fpsParameter[i] + ": >>" + fpsParameter[i + 1] + "<<");
167  }
168 
169  this.ResCloseList();
170  this.LogPrint("-------");
171 
172  return;
173  }
void ResCloseList()
Closes the outline level.
void LogPrint(string fps_Message)
LogPrint Function: Prints the values of expressions to the results file.
void ResOpenList(string fps_Name)

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

void OKW.Log.Log2TestClipboard.LogKeyWordEnd ( )

Implementiert OKW.Log.ILogger.

Definiert in Zeile 180 der Datei Log2TestClipboard.cs.

181  {
182  this.ResCloseList();
183  }
void ResCloseList()
Closes the outline level.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

void OKW.Log.Log2TestClipboard.LogKeyWordStart ( string  fps_KeyWordName,
params string[]  fpsParameter 
)

Implementiert OKW.Log.ILogger.

Definiert in Zeile 190 der Datei Log2TestClipboard.cs.

191  {
192  String String2Print = fps_KeyWordName;
193 
194  // Keyword without parameter
195  if (fpsParameter.Length == 0)
196  {
197  // Keyword with one Parameter
198  String2Print = String2Print + "()";
199  }
200  // Keyword with one Parameter
201  else if (fpsParameter.Length == 1)
202  {
203  String2Print = String2Print + ": \"" + fpsParameter[0] + "\"";
204  }
205  // Keyword with two Parameters
206  else if (fpsParameter.Length == 2)
207  {
208  String2Print = String2Print + ": \"" + fpsParameter[0] + "\" = \"" + fpsParameter[1] + "\"";
209  }
210  // Keyword with more then two Parameters
211  else
212  {
213  String2Print = String2Print + "(\"" + fpsParameter[0] + "\"";
214 
215  for (int i = 1; i < fpsParameter.Length; i++)
216  {
217  String2Print = String2Print + ", \"" + fpsParameter[i] + "\"";
218  }
219 
220  String2Print = String2Print + ")";
221  }
222 
223  this.ResOpenList(String2Print);
224 
225  return;
226  }
void ResOpenList(string fps_Name)

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

void OKW.Log.Log2TestClipboard.LogPrint ( string  fps_Message)

LogPrint Function: Prints the values of expressions to the results file.

Parameter
fps_Message

Implementiert OKW.Log.ILogger.

Definiert in Zeile 233 der Datei Log2TestClipboard.cs.

234  {
235  OKW_TestClipboard.Instance.LogValueAdd(this.BlanksBefore + fps_Message);
236  }

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

void OKW.Log.Log2TestClipboard.LogVerify ( string  fps_Actual,
string  fps_Expected 
)

Implementiert OKW.Log.ILogger.

Definiert in Zeile 243 der Datei Log2TestClipboard.cs.

244  {
245  OKW_TestClipboard.Instance.LogValueAdd(this.BlanksBefore + "Expected = >>" + fps_Expected + "<<");
246  OKW_TestClipboard.Instance.LogValueAdd(this.BlanksBefore + " Actual = >>" + fps_Actual + "<<");
247  }
void OKW.Log.Log2TestClipboard.LogWarning ( string  fps_Message)

LogWarning Function: Logs a warning to the results file.

Parameter
fps_Message

Implementiert OKW.Log.ILogger.

Definiert in Zeile 254 der Datei Log2TestClipboard.cs.

255  {
256  OKW_TestClipboard.Instance.LogValueAdd(this.BlanksBefore + "Warning: " + fps_Message);
257  }
void OKW.Log.Log2TestClipboard.ResCloseList ( )

Closes the outline level.

Implementiert OKW.Log.ILogger.

Definiert in Zeile 264 der Datei Log2TestClipboard.cs.

265  {
266  if (this.LevelCounter > 0)
267  {
268  this.LevelCounter--;
269  }
270  else
271  {
272  this.LevelCounter = 0;
273  }
274 
275  this.BlankBefore();
276  }

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

void OKW.Log.Log2TestClipboard.ResOpenList ( string  fps_Name)

Implementiert OKW.Log.ILogger.

Definiert in Zeile 283 der Datei Log2TestClipboard.cs.

284  {
285  this.LogPrint(fps_Name);
286  this.LevelCounter++;
287  this.BlankBefore();
288  }
void LogPrint(string fps_Message)
LogPrint Function: Prints the values of expressions to the results file.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: