Sub processTfLauncher

public abstract class SubprocessTfLauncher
extends Object implements IBuildReceiver , IInvocationContextReceiver , IRemoteTest , IConfigurationReceiver

java.lang.Object
com.android.tradefed.testtype.Sub processTfLauncher


Một IRemoteTest để chạy thử nghiệm đối với cài đặt TF riêng biệt.

Khởi chạy một quy trình java bên ngoài để chạy thử nghiệm. Được sử dụng để chạy thiết bị TF hoặc kiểm tra chức năng liên tục.

Bản tóm tắt

Lĩnh vực

public static final String ANDROID_SERIAL_VAR

env.

public static final String PARENT_PROC_TAG_NAME

public static final String SUBPROCESS_TAG_NAME

Thẻ sẽ được chuyển đến quy trình con TF để phân biệt nó

protected IBuildInfo mBuildInfo

protected mCmdArgs

protected IConfiguration mConfig

protected String mRootDir

protected IRunUtil mRunUtil

protected File mTmpDir

nhà thầu công cộng

SubprocessTfLauncher ()

Phương thức công khai

void run ( TestInformation testInfo, ITestInvocationListener listener)

Chạy thử nghiệm và báo cáo kết quả cho người nghe.

void setBuild ( IBuildInfo buildInfo)

void setConfiguration ( IConfiguration configuration)

Tiêm IConfiguration đang sử dụng.

void setInvocationContext ( IInvocationContext invocationContext)

phương pháp được bảo vệ

void addJavaArguments ( args) addJavaArguments ( args)

Cho phép thêm các tham số java bổ sung vào lệnh gọi quy trình con.

String getJava ()
IRunUtil getRunUtil ()

Trả về IRunUtil sẽ được sử dụng cho lệnh quy trình con.

void postRun ( ITestInvocationListener listener, boolean exception, long elapsedTime)

Các hành động cần thực hiện sau khi kiểm tra TF kết thúc.

void preRun ()

Thiết lập trước khi chạy thử nghiệm.

void setEventStreaming (boolean eventStreaming)

Đặt sử dụng-sự kiện-truyền phát.

void setProtoReporting (boolean protoReporting)
void setRunUtil ( IRunUtil runUtil)

Đặt IRunUtil.

Lĩnh vực

ANDROID_SERIAL_VAR

public static final String ANDROID_SERIAL_VAR

env. biến ảnh hưởng đến lựa chọn adb.

PARENT_PROC_TAG_NAME

public static final String PARENT_PROC_TAG_NAME

QUY TRÌNH SUB_TAG_NAME

public static final String SUBPROCESS_TAG_NAME

Thẻ sẽ được chuyển đến quy trình con TF để phân biệt nó

mBuildInfo

protected IBuildInfo mBuildInfo

mCmdArgs

protected  mCmdArgs

mConfig

protected IConfiguration mConfig

mRootDir

protected String mRootDir

mRunUtil

protected IRunUtil mRunUtil

mTmpDir

protected File mTmpDir

nhà thầu công cộng

Sub processTfLauncher

public SubprocessTfLauncher ()

Phương thức công khai

chạy

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Chạy thử nghiệm và báo cáo kết quả cho người nghe.

Thông số
testInfo TestInformation : Đối tượng TestInformation chứa thông tin hữu ích để chạy thử nghiệm.

listener ITestInvocationListener : ITestInvocationListener của kết quả kiểm tra

ném
DeviceNotAvailableException

thiết lậpBuild

public void setBuild (IBuildInfo buildInfo)

Thông số
buildInfo IBuildInfo

thiết lập cấu hình

public void setConfiguration (IConfiguration configuration)

Tiêm IConfiguration đang sử dụng.

Thông số
configuration IConfiguration

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

Thông số
invocationContext IInvocationContext

phương pháp được bảo vệ

thêmJavaArguments

protected void addJavaArguments ( args)

Cho phép thêm các tham số java bổ sung vào lệnh gọi quy trình con.

Thông số
args : danh sách các đối số hiện tại mà chúng ta cần thêm các đối số bổ sung.

getJava

protected String getJava ()

trả lại
String

getRunUtil

protected IRunUtil getRunUtil ()

Trả về IRunUtil sẽ được sử dụng cho lệnh quy trình con.

trả lại
IRunUtil

postRun

protected void postRun (ITestInvocationListener listener, 
                boolean exception, 
                long elapsedTime)

Các hành động cần thực hiện sau khi kiểm tra TF kết thúc.

Thông số
listener ITestInvocationListener : ITestInvocationListener ban đầu nơi báo cáo kết quả.

exception boolean : Đúng nếu ngoại lệ được đưa ra trong bài kiểm tra.

elapsedTime long : thời gian cần thiết để chạy thử nghiệm.

chạy trước

protected void preRun ()

Thiết lập trước khi chạy thử nghiệm.

setEventStreaming

protected void setEventStreaming (boolean eventStreaming)

Đặt sử dụng-sự kiện-truyền phát. Tiếp xúc với thử nghiệm đơn vị.

Thông số
eventStreaming boolean

setProtoReporting

protected void setProtoReporting (boolean protoReporting)

Thông số
protoReporting boolean

setRunUtil

protected void setRunUtil (IRunUtil runUtil)

Đặt IRunUtil. Tiếp xúc với thử nghiệm đơn vị.

Thông số
runUtil IRunUtil