45 using System.Collections.Generic;
67 string BlanksBefore =
string.Empty;
70 int myFileCounter = 0;
80 this.myPathAndFile = PathAndFile;
81 this.myFile =
new StreamWriter(this.myPathAndFile,
false);
85 #endregion Constructors
98 this.myFile.Write(this.BlanksBefore +
"Error: ");
99 this.myFile.WriteLine(fps_Message);
113 this.myFile.Write(this.BlanksBefore +
"Exception: ");
114 this.myFile.WriteLine(fps_Message);
143 this.
LogPrint(
">>" + fps_Return +
"<<");
162 this.
LogPrint(
">>" + fpsBoolean +
"<<");
181 foreach (
string Value
in fpls_Return)
202 if (0 < fpsParameter.Length)
206 for (
int i = 0; i < fpsParameter.Length; i += 2)
208 this.
LogPrint(fpsParameter[i] +
": >>" + fpsParameter[i + 1] +
"<<");
236 String String2Print = fps_KeyWordName;
239 if (fpsParameter.Length == 0)
242 String2Print = String2Print +
"()";
245 else if (fpsParameter.Length == 1)
247 String2Print = String2Print +
": \"" + fpsParameter[0] +
"\"";
250 else if (fpsParameter.Length == 2)
252 String2Print = String2Print +
": \"" + fpsParameter[0] +
"\" = \"" + fpsParameter[1] +
"\"";
257 String2Print = String2Print +
"(\"" + fpsParameter[0] +
"\"";
259 for (
int i = 1; i < fpsParameter.Length; i++)
261 String2Print = String2Print +
", \"" + fpsParameter[i] +
"\"";
264 String2Print = String2Print +
")";
282 this.myFile.WriteLine(this.BlanksBefore + fps_Message);
292 public void LogVerify(
string fps_Actual,
string fps_Expected)
296 if (fps_Actual == fps_Expected)
305 this.myFile.WriteLine(this.BlanksBefore +
"Expected = >>" + fps_Expected +
"<<");
306 this.myFile.WriteLine(this.BlanksBefore +
" Actual = >>" + fps_Actual +
"<<");
322 this.myFile.Write(this.BlanksBefore +
"Warning: ");
323 this.myFile.WriteLine(fps_Message);
335 if (this.LevelCounter > 0)
341 this.LevelCounter = 0;
370 this.BlanksBefore =
new string(
'\t', this.LevelCounter);
373 private void FileClose()
375 this.myFileCounter--;
377 if (this.myFileCounter <= 0)
379 this.myFileCounter = 0;
386 private void FileOpen()
388 if (this.myFileCounter <= 0)
390 this.myFileCounter = 1;
391 this.myFile =
new StreamWriter(this.myPathAndFile,
true);
395 this.myFileCounter++;
void LogKeyWordStart(string fps_KeyWordName, params string[] fpsParameter)
Klasse enthält OKW-Hilfsfunktionen.
void LogError(string fps_Message)
LogError Function: Logs an error message to the results file.
void ResCloseList()
Closes the outline level.
void LogVerify(string fps_Actual, string fps_Expected)
void LogWarning(string fps_Message)
LogWarning Function: Logs a warning to the results file.
void LogPrint(string fps_Message)
LogPrint Function: Prints the values of expressions to the results file.
void LogException(string fps_Message)
LogException Function: Logs a Script Exception to the results file.
void LogFunctionEnd(List< string > fpls_Return)
void ResOpenList(string fps_Name)
Debug Logs are not a part of Interface. This functions are Implemented in Logger.cs a Log*Debug funct...
void LogFunctionEnd(bool fpb_Return)
Klasse zur Ausgabe in eine Datei.
void LogFunctionStart(string fps_FunctionName, params string[] fpsParameter)
void LogFunctionEnd(string fps_Return)
static string Boolean2String(bool fpbTrueOrFalse)
Konvertiert bool true/false nach string "true"/"false".