Kelas bertingkat |
---|
enum | BugreportCollector.Filter |
enum | BugreportCollector.Freq |
enum | BugreportCollector.Noun |
class | BugreportCollector.Predicate Predikat lengkap yang menjelaskan kapan harus menangkap laporan bug. |
enum | BugreportCollector.Relation |
interface | BugreportCollector.SubPredicate |
Konstruktor publik |
---|
BugreportCollector (ITestInvocationListener listener, ITestDevice testDevice) |
Metode publik |
---|
void | addPredicate ( BugreportCollector.Predicate p) |
void | blockUntilIdle () Blokir hingga kolektor tidak mengumpulkan laporan bug apa pun. |
TestSummary | getSummary () |
void | invocationEnded (long elapsedTime) |
void | invocationFailed (Throwable cause) |
void | invocationStarted (IInvocationContext context) |
void | setAsynchronous (boolean asynchronous) Setel apakah kumpulan laporan bug harus mengumpulkan laporan bug di utas berbeda ( asynchronous = true ), atau memblokir pemanggil hingga laporan bug ditangkap ( asynchronous = false ). |
void | setDescriptiveName (String name) Tetapkan nama deskriptif yang akan digunakan saat merekam laporan bug. |
void | setDeviceWaitTime (int waitTime) Atur waktu (dalam detik) untuk menunggu perangkat menjadi Online sebelum kami mencoba menangkap laporan bug. |
void | testAssumptionFailure (TestDescription test, String trace) |
void | testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics) |
void | testFailed (TestDescription test, String trace) |
void | testIgnored (TestDescription test) |
void | testLog (String dataName, LogDataType dataType, InputStreamSource dataStream) |
void | testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics) |
void | testRunFailed (String errorMessage) |
void | testRunStarted (String runName, int testCount) |
void | testRunStopped (long elapsedTime) |
void | testStarted (TestDescription test) |
Fields
AFTER_FAILED_TESTCASES
public static final BugreportCollector.Predicate AFTER_FAILED_TESTCASES
Predikat yang telah ditentukan sebelumnya yang diaktifkan setelah setiap kasus pengujian yang gagal
Konstruktor publik
BugreportCollector
public BugreportCollector (ITestInvocationListener listener,
ITestDevice testDevice)
Parameter |
---|
listener | ITestInvocationListener |
testDevice | ITestDevice |
Metode publik
blockUntilIdle
public void blockUntilIdle ()
Blokir hingga kolektor tidak mengumpulkan laporan bug apa pun. Jika kolektor tidak aktif mengumpulkan laporan bug, segera kembali
getSummary
public TestSummary getSummary ()
invocationEnded
public void invocationEnded (long elapsedTime)
Parameter |
---|
elapsedTime | long |
seruanFailed
public void invocationFailed (Throwable cause)
Parameter |
---|
cause | Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
Parameter |
---|
context | IInvocationContext |
setAsynchronous
public void setAsynchronous (boolean asynchronous)
Setel apakah kumpulan laporan bug harus mengumpulkan laporan bug di utas yang berbeda ( asynchronous = true
), atau memblokir pemanggil sampai laporan bug ditangkap ( asynchronous = false
).
Parameter |
---|
asynchronous | boolean |
setDescriptiveName
public void setDescriptiveName (String name)
Tetapkan nama deskriptif yang akan digunakan saat merekam laporan bug. Jika null
, BugreportCollector
akan kembali ke perilaku default membuat serial nama acara yang menyebabkan pengumpulan laporan bug.
setDeviceWaitTime
public void setDeviceWaitTime (int waitTime)
Atur waktu (dalam detik) untuk menunggu perangkat menjadi Online sebelum kami mencoba menangkap laporan bug. Jika negatif, tidak ada pemeriksaan yang akan dilakukan. Setiap DeviceNotAvailableException
ditemukan selama pemeriksaan ini akan dicatat dan diabaikan.
testAssumptionFailure
public void testAssumptionFailure (TestDescription test,
String trace)
Parameter |
---|
test | TestDescription |
trace | String |
testEnded
public void testEnded (TestDescription test,
testMetrics)
Parameter |
---|
test | TestDescription |
testMetrics | |
testFailed
public void testFailed (TestDescription test,
String trace)
Parameter |
---|
test | TestDescription |
trace | String |
testIabaikan
public void testIgnored (TestDescription test)
Parameter |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Parameter |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
Parameter |
---|
elapsedTime | long |
runMetrics | |
testRunFailed
public void testRunFailed (String errorMessage)
Parameter |
---|
errorMessage | String |
testRunStarted
public void testRunStarted (String runName,
int testCount)
Parameter |
---|
runName | String |
testCount | int |
testRunStopped
public void testRunStopped (long elapsedTime)
Parameter |
---|
elapsedTime | long |
testStarted
public void testStarted (TestDescription test)
Parameter |
---|
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.