|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.unitedinternet.portal.selenium.utils.logging.LoggingUtils
public final class LoggingUtils
Utility Methods to support easy usage from an (junit4 driven) selenium test.
Method Summary | |
---|---|
static java.io.BufferedWriter |
createWriter(java.lang.String resultFileNameAndPath,
java.lang.String resultEncoding)
Deprecated. use the 3 parameters version instead |
static java.io.BufferedWriter |
createWriter(java.lang.String resultFileNameAndPath,
java.lang.String resultEncoding,
boolean replaceExistingFile)
Create an BufferedWriter handling encodings right. |
static java.lang.String |
timeStampForFileName()
Current date-time as string with format "yyyy-MM-dd_HH-mm". |
static java.lang.String |
timeStampForFileName(java.lang.String simpleDateFormat)
Current date-time string with provided format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.io.BufferedWriter createWriter(java.lang.String resultFileNameAndPath, java.lang.String resultEncoding, boolean replaceExistingFile) throws java.lang.RuntimeException
resultFileNameAndPath
- location and filename where to write laterresultEncoding
- any encoding supported by the used jdk. UTF-8 is recommended.replaceExistingFile
- if true try to replace an already existing file.
java.lang.RuntimeException
- if file already exists or file cannot be written or if an IOException occurs during writer
creation@Deprecated public static java.io.BufferedWriter createWriter(java.lang.String resultFileNameAndPath, java.lang.String resultEncoding) throws java.lang.RuntimeException
resultFileNameAndPath
- location and filename where to write laterresultEncoding
- any encoding supported by the used jdk. UTF-8 is recommended.
java.lang.RuntimeException
- if file already exists or file cannot be written or if an IOException occurs during writer
creationpublic static java.lang.String timeStampForFileName()
public static java.lang.String timeStampForFileName(java.lang.String simpleDateFormat)
simpleDateFormat
- string format to be used
SimpleDateFormat
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |