ネストされたクラス |
---|
enum | BugreportCollector.Filter |
enum | BugreportCollector.Freq |
enum | BugreportCollector.Noun |
class | BugreportCollector.Predicate バグレポートをキャプチャするタイミングを説明する完全な述語。 |
enum | BugreportCollector.Relation |
interface | BugreportCollector.SubPredicate |
パブリックコンストラクター |
---|
BugreportCollector (ITestInvocationListener listener, ITestDevice testDevice) |
田畑
パブリックコンストラクター
BugreportCollector
public BugreportCollector (ITestInvocationListener listener,
ITestDevice testDevice)
パラメーター |
---|
listener | ITestInvocationListener |
testDevice | ITestDevice |
パブリックメソッド
blockUntilIdle
public void blockUntilIdle ()
コレクターがバグレポートを収集しなくなるまでブロックします。コレクターがバグレポートを積極的に収集していない場合は、すぐに戻ってください
getSummary
public TestSummary getSummary ()
invocationEnded
public void invocationEnded (long elapsedTime)
invocationFailed
public void invocationFailed (Throwable cause)
invocationStarted
public void invocationStarted (IInvocationContext context)
パラメーター |
---|
context | IInvocationContext |
setAsynchronous
public void setAsynchronous (boolean asynchronous)
バグレポートコレクションがバグレポートを別のスレッドで収集するか( asynchronous = true
)、バグレポートがキャプチャされるまで呼び出し元をブロックするか( asynchronous = false
)を設定します。
パラメーター |
---|
asynchronous | boolean |
setDescriptiveName
public void setDescriptiveName (String name)
バグレポートを記録するときに使用するわかりやすい名前を設定します。 null
場合、 BugreportCollector
は、 BugreportCollector
収集を引き起こしたイベントの名前をシリアル化するデフォルトの動作にフォールバックします。
setDeviceWaitTime
public void setDeviceWaitTime (int waitTime)
バグレポートをキャプチャする前に、デバイスがオンラインになるまで待機する時間(秒単位)を設定します。負の場合、チェックは実行されません。このチェック中に発生したDeviceNotAvailableException
はすべてログに記録され、無視されます。
testAssumptionFailure
public void testAssumptionFailure (TestDescription test,
String trace)
パラメーター |
---|
test | TestDescription |
trace | String |
testEnded
public void testEnded (TestDescription test,
testMetrics)
パラメーター |
---|
test | TestDescription |
testMetrics | |
testFailed
public void testFailed (TestDescription test,
String trace)
パラメーター |
---|
test | TestDescription |
trace | String |
testIgnored
public void testIgnored (TestDescription test)
パラメーター |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
パラメーター |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
パラメーター |
---|
elapsedTime | long |
runMetrics | |
testRunFailed
public void testRunFailed (String errorMessage)
パラメーター |
---|
errorMessage | String |
testRunStarted
public void testRunStarted (String runName,
int testCount)
パラメーター |
---|
runName | String |
testCount | int |
testRunStopped
public void testRunStopped (long elapsedTime)
testStarted
public void testStarted (TestDescription test)
パラメーター |
---|
test | TestDescription |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.