OpenKeyWord  Version: 426, Datum:
OKW.Log.Log2HTMLFile Klassenreferenz
Klassendiagramm für OKW.Log.Log2HTMLFile:
Inheritance graph
Zusammengehörigkeiten von OKW.Log.Log2HTMLFile:
Collaboration graph

Öffentliche Methoden

 Log2HTMLFile (string PathAndFile)
 
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 ()
 
void FileClose ()
 
void FileOpen ()
 
void WriteBlockClose ()
 
void WriteBlockOpen (string fpsWert, string fpsHTMLClass)
 
void WriteHTMLFooter ()
 
void WriteHTMLHeader ()
 

Private Attribute

string BlanksBefore = string.Empty
 
int ID = 1
 
int LevelCounter = 0
 
StreamWriter myFile
 
int myFileCounter = 0
 
string myPathAndFile
 

Ausführliche Beschreibung

Definiert in Zeile 50 der Datei Log2HTMLFile.cs.

Dokumentation der Elementfunktionen

void OKW.Log.Log2HTMLFile.BlankBefore ( )
private

Definiert in Zeile 403 der Datei Log2HTMLFile.cs.

404  {
405  this.BlanksBefore = new string('\t', this.LevelCounter);
406  }

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

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

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

Parameter
fps_Message

Implementiert OKW.Log.ILogger.

Definiert in Zeile 88 der Datei Log2HTMLFile.cs.

89  {
90  this.FileOpen();
91 
92  this.WriteBlockOpen("Error", "Error");
93  this.LevelCounter++;
94  this.BlankBefore();
95 
96  this.LogPrint(fps_Message);
97 
98  this.LevelCounter--;
99  this.BlankBefore();
100 
101  this.WriteBlockClose();
102  this.FileClose();
103  }
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.Log2HTMLFile.LogException ( string  fps_Message)

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

Parameter
fps_Message

Implementiert OKW.Log.ILogger.

Definiert in Zeile 110 der Datei Log2HTMLFile.cs.

111  {
112  this.FileOpen();
113 
114  this.WriteBlockOpen("Exception", "Exception");
115  this.LevelCounter++;
116  this.BlankBefore();
117 
118  this.LogPrint(fps_Message);
119 
120  this.LevelCounter--;
121  this.BlankBefore();
122 
123  this.WriteBlockClose();
124  this.FileClose();
125  }
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.Log2HTMLFile.LogFunctionEnd ( )

Implementiert OKW.Log.ILogger.

Definiert in Zeile 132 der Datei Log2HTMLFile.cs.

133  {
134  this.FileOpen();
135 
136  this.WriteBlockClose();
137 
138  this.FileClose();
139  }
void OKW.Log.Log2HTMLFile.LogFunctionEnd ( string  fps_Return)

Implementiert OKW.Log.ILogger.

Definiert in Zeile 146 der Datei Log2HTMLFile.cs.

147  {
148  this.FileOpen();
149 
150  this.ResOpenList("Return...");
151  this.LogPrint("\"" + fps_Return + "\"");
152  this.ResCloseList();
153 
154  this.WriteBlockClose();
155 
156  this.FileClose();
157  }
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.Log2HTMLFile.LogFunctionEnd ( bool  fpb_Return)

Implementiert OKW.Log.ILogger.

Definiert in Zeile 164 der Datei Log2HTMLFile.cs.

165  {
166  string fpsBoolean = OKW_Helper.Boolean2String(fpb_Return);
167  this.FileOpen();
168 
169  this.ResOpenList("Return...");
170  this.LogPrint("\"" + fpsBoolean + "\"");
171  this.ResCloseList();
172 
173  this.WriteBlockClose();
174 
175  this.FileClose();
176  }
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.Log2HTMLFile.LogFunctionEnd ( List< string >  fpls_Return)

Implementiert OKW.Log.ILogger.

Definiert in Zeile 183 der Datei Log2HTMLFile.cs.

184  {
185  this.FileOpen();
186 
187  this.ResOpenList("Return...");
188 
189  foreach (string Value in fpls_Return)
190  {
191  this.LogPrint(Value);
192  }
193 
194  this.ResCloseList();
195 
196  this.WriteBlockClose();
197 
198  this.FileClose();
199  }
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.Log2HTMLFile.LogFunctionStart ( string  fps_FunctionName,
params string[]  fpsParameter 
)

Implementiert OKW.Log.ILogger.

Definiert in Zeile 206 der Datei Log2HTMLFile.cs.

207  {
208  this.FileOpen();
209 
210  this.WriteBlockOpen("Method: " + fps_FunctionName, "Method");
211  this.ResOpenList("Parameter...");
212 
213  for (int i = 0; i < fpsParameter.Length; i += 2)
214  {
215  this.LogPrint(fpsParameter[i] + " = \"" + fpsParameter[i + 1] + "\"");
216  }
217 
218  this.ResCloseList();
219 
220  this.FileClose();
221 
222  return;
223  }
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.Log2HTMLFile.LogKeyWordEnd ( )

Implementiert OKW.Log.ILogger.

Definiert in Zeile 230 der Datei Log2HTMLFile.cs.

231  {
232  this.FileOpen();
233  this.WriteBlockClose();
234  this.FileClose();
235  }
void OKW.Log.Log2HTMLFile.LogKeyWordStart ( string  fps_KeyWordName,
params string[]  fpsParameter 
)

Implementiert OKW.Log.ILogger.

Definiert in Zeile 242 der Datei Log2HTMLFile.cs.

243  {
244  String String2Print = fps_KeyWordName;
245 
246  // Keyword without parameter
247  if (fpsParameter.Length == 0)
248  {
249  // Keyword with one Parameter
250  String2Print = String2Print + "()";
251  }
252  // Keyword with one Parameter
253  else if (fpsParameter.Length == 1)
254  {
255  String2Print = String2Print + ": \"" + fpsParameter[0] + "\"";
256  }
257  // Keyword with two Parameters
258  else if (fpsParameter.Length == 2)
259  {
260  String2Print = String2Print + ": \"" + fpsParameter[0] + "\" = \"" + fpsParameter[1] + "\"";
261  }
262  // Keyword with more then two Parameters
263  else
264  {
265  String2Print = String2Print + "(\"" + fpsParameter[0] + "\"";
266 
267  for (int i = 1; i < fpsParameter.Length; i++)
268  {
269  String2Print = String2Print + ", \"" + fpsParameter[i] + "\"";
270  }
271 
272  String2Print = String2Print + ")";
273  }
274 
275  this.FileOpen();
276 
277  this.WriteBlockOpen(String2Print, "KeyWord");
278 
279  this.FileClose();
280 
281  return;
282  }
void OKW.Log.Log2HTMLFile.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 289 der Datei Log2HTMLFile.cs.

290  {
291  this.FileOpen();
292 
293  this.myFile.WriteLine(this.BlanksBefore + "<p>");
294  this.myFile.WriteLine(this.BlanksBefore + fps_Message);
295  this.myFile.WriteLine(this.BlanksBefore + "</p>");
296 
297  this.FileClose();
298  }

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

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

Implementiert OKW.Log.ILogger.

Definiert in Zeile 305 der Datei Log2HTMLFile.cs.

306  {
307  this.FileOpen();
308 
309  if (fps_Actual == fps_Expected)
310  {
311  this.WriteBlockOpen("Passed", "Passed");
312  }
313  else
314  {
315  this.WriteBlockOpen("Error", "Error");
316  }
317 
318  this.LevelCounter++;
319  this.BlankBefore();
320 
321  this.myFile.WriteLine(this.BlanksBefore + "<p>");
322  this.myFile.WriteLine(this.BlanksBefore + "<code>Expected = " + fps_Expected + "</code><br/>");
323  this.myFile.WriteLine(this.BlanksBefore + "<code> Actual = " + fps_Actual + "</code>");
324  this.myFile.WriteLine(this.BlanksBefore + "</p>");
325 
326  this.LevelCounter--;
327  this.BlankBefore();
328 
329  this.WriteBlockClose();
330 
331  this.FileClose();
332  }

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

void OKW.Log.Log2HTMLFile.LogWarning ( string  fps_Message)

LogWarning Function: Logs a warning to the results file.

Parameter
fps_Message

Implementiert OKW.Log.ILogger.

Definiert in Zeile 339 der Datei Log2HTMLFile.cs.

340  {
341  this.FileOpen();
342 
343  this.WriteBlockOpen("Warning", "Warning");
344  this.LevelCounter++;
345  this.BlankBefore();
346 
347  this.LogPrint(fps_Message);
348 
349  this.LevelCounter--;
350  this.BlankBefore();
351 
352  this.WriteBlockClose();
353  this.FileClose();
354  }
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.Log2HTMLFile.ResCloseList ( )

Closes the outline level.

Implementiert OKW.Log.ILogger.

Definiert in Zeile 361 der Datei Log2HTMLFile.cs.

362  {
363  if (this.LevelCounter > 0)
364  {
365  this.LevelCounter--;
366  }
367  else
368  {
369  this.LevelCounter = 0;
370  throw new System.DivideByZeroException();
371  }
372 
373  this.BlankBefore();
374 
375  this.FileOpen();
376  this.WriteBlockClose();
377  this.FileClose();
378 
379  return;
380  }

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

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

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

Implementiert OKW.Log.ILogger.

Definiert in Zeile 387 der Datei Log2HTMLFile.cs.

388  {
389  this.FileOpen();
390  this.WriteBlockOpen(fps_Name, "Normal");
391  this.FileClose();
392 
393  this.LevelCounter++;
394  this.BlankBefore();
395  return;
396  }

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: