类 Recorder
- java.lang.Object
-
- tech.testnx.cah.common.reports.Recorder
-
public class Recorder extends Object
- 作者:
- Yun
-
-
构造器概要
构造器 构造器 说明 Recorder()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static org.testng.ITestResultgetCurrentTestResult()Get Current Test Resultstatic List<String>getNotes(org.testng.ITestResult result)Get all text notes of a specific test which include both tech.testnx.cah.common.reports.Recorder and org.testng.Reporterstatic List<Recordable<?>>getRecords(org.testng.ITestResult result)Get all records of a specific test.static voidlog(String note)log a text note to current teststatic voidlog(Recordable<?> record)log a record to current teststatic voidsetCurrentTestResult(org.testng.ITestResult result)Set Current Test Result
-
-
-
方法详细资料
-
log
public static void log(String note)
log a text note to current test- 参数:
note-
-
log
public static void log(Recordable<?> record)
log a record to current test- 参数:
record-
-
getCurrentTestResult
public static org.testng.ITestResult getCurrentTestResult()
Get Current Test Result
-
setCurrentTestResult
public static void setCurrentTestResult(org.testng.ITestResult result)
Set Current Test Result- 参数:
result-
-
getNotes
public static List<String> getNotes(org.testng.ITestResult result)
Get all text notes of a specific test which include both tech.testnx.cah.common.reports.Recorder and org.testng.Reporter- 参数:
result-
-
getRecords
public static List<Recordable<?>> getRecords(org.testng.ITestResult result)
Get all records of a specific test. Return new and empty list if does not have- 参数:
result-
-
-