ITestInvocation

public interface ITestInvocation

com.android.tradefed.invoker.ITestInvocation


Xử lý một lệnh gọi kiểm thử TradeFederation.

Tóm tắt

Lớp lồng ghép

class ITestInvocation.ExitInformation

Biểu thị một số thông tin thoát cho lệnh gọi. 

Phương thức công khai

default ITestInvocation.ExitInformation getExitInfo()

Thông tin thoát của lệnh gọi đã cho.

abstract void invoke(IInvocationContext metadata, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)

Thực hiện lệnh gọi kiểm thử.

default void notifyInvocationStopped(String message, ErrorIdentifier errorId)

Thông báo cho TestInvocation rằng TradeFed đã được yêu cầu dừng.

Phương thức công khai

getExitInfo

public ITestInvocation.ExitInformation getExitInfo ()

Thông tin thoát của lệnh gọi đã cho.

Giá trị trả về
ITestInvocation.ExitInformation

gọi

public abstract void invoke (IInvocationContext metadata, 
                IConfiguration config, 
                IRescheduler rescheduler, 
                ITestInvocationListener... extraListeners)

Thực hiện lệnh gọi kiểm thử.

Tham số
metadata IInvocationContext: IInvocationContext để thực hiện kiểm thử.

config IConfiguration: IConfiguration của lần chạy kiểm thử này.

rescheduler IRescheduler: IRescheduler, để lên lịch lại các phần của lệnh gọi để thực thi trên(các) tài nguyên khác

extraListeners ITestInvocationListener: Các ITestInvocationListener cần thông báo, ngoài các ITestInvocationListener trong config

Gửi
DeviceNotAvailableException nếu bị mất kết nối với thiết bị
Throwable

notifyInvocationStopped

public void notifyInvocationStopped (String message, 
                ErrorIdentifier errorId)

Thông báo cho TestInvocation rằng TradeFed đã được yêu cầu dừng.

Tham số
message String: Thông báo liên kết với việc dừng lệnh gọi

errorId ErrorIdentifier