类 FailureResult
- java.lang.Object
-
- tech.testnx.cah.common.reports.FailureResult
-
public class FailureResult extends Object
- 作者:
- Yun
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetCls()StringgetClue()StringgetClueDetail()List<String>getLogs()StringgetLogsSeparatedWithHtmlLineBreak()StringgetLogsSeparatedWithHtmlLineBreakAndColorful()StringgetLogsSeparatedWithHtmlSpanAndColorful()StringgetLogsSeparatedWithLineBreak()StringgetMethod()StringgetScreenshotBase64()StringgetScreenshotBase64WithHeader()byte[]getScreenshotBytes()StringgetShortCls()ThrowablegetThrowable()static FailureResultnewInstance()static FailureResultnewInstance(String cls, String method, Throwable clue, List<String> logs, String screenshotBase64, byte[] screenshotBytes)FailureResultsetCls(String cls)FailureResultsetClue(Throwable clue)FailureResultsetLogs(List<String> logs)FailureResultsetMethod(String method)FailureResultsetScreenshotBase64(String screenshotBase64)FailureResultsetScreenshotBytes(byte[] screenshotBytes)
-
-
-
方法详细资料
-
getCls
public String getCls()
-
getShortCls
public String getShortCls()
-
setCls
public FailureResult setCls(String cls)
-
getMethod
public String getMethod()
-
setMethod
public FailureResult setMethod(String method)
-
getClue
public String getClue()
-
getClueDetail
public String getClueDetail()
-
getThrowable
public Throwable getThrowable()
-
setClue
public FailureResult setClue(Throwable clue)
-
getLogsSeparatedWithLineBreak
public String getLogsSeparatedWithLineBreak()
-
getLogsSeparatedWithHtmlLineBreak
public String getLogsSeparatedWithHtmlLineBreak()
-
getLogsSeparatedWithHtmlSpanAndColorful
public String getLogsSeparatedWithHtmlSpanAndColorful()
-
getLogsSeparatedWithHtmlLineBreakAndColorful
public String getLogsSeparatedWithHtmlLineBreakAndColorful()
-
setLogs
public FailureResult setLogs(List<String> logs)
-
getScreenshotBase64
public String getScreenshotBase64()
-
getScreenshotBase64WithHeader
public String getScreenshotBase64WithHeader()
-
setScreenshotBase64
public FailureResult setScreenshotBase64(String screenshotBase64)
-
getScreenshotBytes
public byte[] getScreenshotBytes()
-
setScreenshotBytes
public FailureResult setScreenshotBytes(byte[] screenshotBytes)
-
newInstance
public static FailureResult newInstance()
-
-