ITestInvocation
public
interface
ITestInvocation
| com.android.tradefed.invoker.ITestInvocation |
จัดการการเรียกใช้การทดสอบ TradeFederation 1 ครั้ง
สรุป
ชั้นเรียนที่ซ้อนกัน | |
|---|---|
class |
ITestInvocation.ExitInformation
แสดงข้อมูลการออกบางส่วนสําหรับการเรียกใช้ |
เมธอดสาธารณะ | |
|---|---|
default
ITestInvocation.ExitInformation
|
getExitInfo()
ข้อมูลการออกของคําเรียกที่ระบุ |
abstract
void
|
invoke(IInvocationContext metadata, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)
เรียกใช้การทดสอบ |
default
void
|
notifyInvocationForceStopped(String message, ErrorIdentifier errorId)
แจ้งให้ |
default
void
|
notifyInvocationStopped(String message)
แจ้งให้ |
default
void
|
setClearcutClient(ClearcutClient client)
ส่งต่อไคลเอ็นต์ Clearcut เพื่อรายงานเมตริก |
เมธอดสาธารณะ
getExitInfo
public ITestInvocation.ExitInformation getExitInfo ()
ข้อมูลการออกของคําเรียกที่ระบุ
| คิกรีเทิร์น | |
|---|---|
ITestInvocation.ExitInformation |
|
เรียกใช้
public abstract void invoke (IInvocationContext metadata, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)
เรียกใช้การทดสอบ
| พารามิเตอร์ | |
|---|---|
metadata |
IInvocationContext: IInvocationContext ที่ใช้ทดสอบ |
config |
IConfiguration: IConfiguration ของการทดสอบนี้ |
rescheduler |
IRescheduler: IRescheduler สำหรับกำหนดเวลาการเรียกใช้บางส่วนใหม่เพื่อดำเนินการในทรัพยากรอื่น |
extraListeners |
ITestInvocationListener: ITestInvocationListener ที่จะแจ้งเตือนนอกเหนือจากใน
config |
| การโยน | |
|---|---|
DeviceNotAvailableException |
หากการสื่อสารกับอุปกรณ์ขาดหายไป |
|
Throwable |
notifyInvocationForceStopped
public void notifyInvocationForceStopped (String message,
ErrorIdentifier errorId)แจ้งให้ TestInvocation ทราบว่ามีการขอให้ TradeFed หยุดดำเนินการ
| พารามิเตอร์ | |
|---|---|
message |
String: ข้อความที่เชื่อมโยงกับการหยุดการเรียกใช้ |
errorId |
ErrorIdentifier: ตัวระบุที่เชื่อมโยงกับการหยุดทำงานแบบบังคับ |
notifyInvocationStopped
public void notifyInvocationStopped (String message)
แจ้งให้ TestInvocation ทราบว่า TradeFed จะปิดตัวลงในที่สุด
| พารามิเตอร์ | |
|---|---|
message |
String: ข้อความที่เชื่อมโยงกับการหยุดการเรียกใช้ |
setClearcutClient
public void setClearcutClient (ClearcutClient client)
ส่งต่อไคลเอ็นต์ Clearcut เพื่อรายงานเมตริก
| พารามิเตอร์ | |
|---|---|
client |
ClearcutClient |