类 CaseResult
- java.lang.Object
-
- tech.testnx.cah.common.reports.CaseResult
-
public class CaseResult extends Object
- 作者:
- Yun
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classCaseResult.StatusEnum
-
构造器概要
构造器 构造器 说明 CaseResult(List<String> testIDs, String title, String submodule, String suite, String cls, String method, CaseResult.StatusEnum status, long duration, List<String> description, List<Recordable<?>> records, List<String> notes, List<String> logs, Throwable clue, String screenshotBase64, byte[] screenshotBytes)
-
方法概要
-
-
-
构造器详细资料
-
CaseResult
public CaseResult(List<String> testIDs, String title, String submodule, String suite, String cls, String method, CaseResult.StatusEnum status, long duration, List<String> description, List<Recordable<?>> records, List<String> notes, List<String> logs, Throwable clue, String screenshotBase64, byte[] screenshotBytes)
-
-
方法详细资料
-
getSuite
public String getSuite()
-
setSuite
public CaseResult setSuite(String suite)
-
getCls
public String getCls()
-
getShortCls
public String getShortCls()
-
setCls
public CaseResult setCls(String cls)
-
getMethod
public String getMethod()
-
setMethod
public CaseResult setMethod(String method)
-
getStatus
public CaseResult.StatusEnum getStatus()
-
setStatus
public CaseResult setStatus(CaseResult.StatusEnum status)
-
getDuration
public long getDuration()
-
setDuration
public CaseResult setDuration(long duration)
-
getDescriptionSeparatedWithSemicolon
public String getDescriptionSeparatedWithSemicolon()
-
getDescriptionSeparatedWithLineBreak
public String getDescriptionSeparatedWithLineBreak()
-
getDescriptionSeparatedWithHtmlLineBreak
public String getDescriptionSeparatedWithHtmlLineBreak()
-
setDescription
public CaseResult setDescription(List<String> description)
-
getRecords
public List<Recordable<?>> getRecords()
-
setRecords
public CaseResult setRecords(List<Recordable<?>> records)
-
getNoteSeparatedWithSemicolon
public String getNoteSeparatedWithSemicolon()
-
getNoteSeparatedWithLineBreak
public String getNoteSeparatedWithLineBreak()
-
getNoteSeparatedWithHtmlLineBreak
public String getNoteSeparatedWithHtmlLineBreak()
-
setNotes
public CaseResult setNotes(List<String> notes)
-
setLogs
public CaseResult setLogs(List<String> logs)
-
getLogsSeparatedWithLineBreak
public String getLogsSeparatedWithLineBreak()
-
getLogsSeparatedWithHtmlLineBreak
public String getLogsSeparatedWithHtmlLineBreak()
-
getLogsSeparatedWithHtmlSpanAndColorful
public String getLogsSeparatedWithHtmlSpanAndColorful()
-
getLogsSeparatedWithHtmlLineBreakAndColorful
public String getLogsSeparatedWithHtmlLineBreakAndColorful()
-
getTestIDs
public String getTestIDs()
-
setTestIDs
public CaseResult setTestIDs(List<String> testIDs)
-
getTitle
public String getTitle()
-
setTitle
public CaseResult setTitle(String title)
-
getSubmodule
public String getSubmodule()
-
setSubmodule
public CaseResult setSubmodule(String submodule)
-
getClue
public String getClue()
-
getClueDetail
public String getClueDetail()
-
getThrowable
public Throwable getThrowable()
-
setClue
public CaseResult setClue(Throwable clue)
-
getScreenshotBytes
public byte[] getScreenshotBytes()
-
setScreenshotBytes
public CaseResult setScreenshotBytes(byte[] screenshotBytes)
-
getScreenshotBase64
public String getScreenshotBase64()
-
getScreenshotBase64WithHeader
public String getScreenshotBase64WithHeader()
-
setScreenshotBase64
public CaseResult setScreenshotBase64(String screenshotBase64)
-
newInstance
public static CaseResult newInstance(List<String> testIDs, String title, String submodule, String suite, String cls, String method, CaseResult.StatusEnum status, long duration, List<String> description, List<Recordable<?>> records, List<String> notes, List<String> logs, Throwable clue, String screenshotBase64, byte[] screenshotBytes)
-
newInstance
public static CaseResult newInstance()
-
-