Google cam kết thúc đẩy công bằng chủng tộc cho Cộng đồng người da đen. Xem cách thực hiện.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.

SubprocessTfLauncher

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

java.lang.Object
com.android.tradefed.testtype.SubprocessTfLauncher


Một IRemoteTest để chạy các bài kiểm tra dựa trên cài đặt TF riêng biệt.

Khởi chạy quy trình java bên ngoài để chạy thử nghiệm. Được sử dụng để chạy đơn vị 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

protected IBuildInfo mBuildInfo

protected mCmdArgs

protected IConfiguration mConfig

protected String mRootDir

protected IRunUtil mRunUtil

protected File mTmpDir

Các nhà xây dựng công cộng

SubprocessTfLauncher ()

Phương pháp công khai

void run ( TestInformation testInfo, ITestInvocationListener listener)

Chạy các bài kiểm tra và báo cáo kết quả cho người nghe.

void setBuild ( IBuildInfo buildInfo)

void setConfiguration ( IConfiguration configuration)

IConfiguration đang sử dụng.

void setInvocationContext ( IInvocationContext invocationContext)

Các 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.

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 kết thúc kiểm tra TF.

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 trực tuyến.

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

SUBPROCESS_TAG_NAME

public static final String SUBPROCESS_TAG_NAME

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

mBuildInfo

protected IBuildInfo mBuildInfo

mCmdArgs

protected  mCmdArgs

mConfig

protected IConfiguration mConfig

mRootDir

protected String mRootDir

mRunUtil

protected IRunUtil mRunUtil

mTmpDir

protected File mTmpDir

Các nhà xây dựng công cộng

SubprocessTfLauncher

public SubprocessTfLauncher ()

Phương pháp công khai

chạy

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Chạy các bài kiểm tra 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 các bài kiểm tra.

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

Ném
DeviceNotAvailableException

setBuild

public void setBuild (IBuildInfo buildInfo)

Thông số
buildInfo IBuildInfo

setConfiguration

public void setConfiguration (IConfiguration configuration)

IConfiguration đang sử dụng.

Thông số
configuration IConfiguration

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

Thông số
invocationContext IInvocationContext

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

addJavaArguments

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 vào.

getRunUtil

protected IRunUtil getRunUtil ()

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

Lợi nhuận
IRunUtil

postRun

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

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

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

exception boolean : Đúng nếu ngoại lệ được đưa ra bên trong thử nghiệm.

elapsedTime long : thời gian cần thiết để chạy các bài kiểm tra.

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 trực tuyến. Tiếp xúc để thử nghiệm đơn vị.

Thông số
eventStreaming boolean

setRunUtil

protected void setRunUtil (IRunUtil runUtil)

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

Thông số
runUtil IRunUtil