MoblyBinaryHostTest

public class MoblyBinaryHostTest
extends Object implements IRemoteTest , IDeviceTest , IBuildReceiver , ITestFilterReceiver , IShardableTest

java.lang.Object
com.android.tradefed.testtype.mobly.MoblyBinaryHostTest


Kiểm tra máy chủ có nghĩa là chạy tệp nhị phân mobly python từ hệ thống Android Build (Soong)

Bản tóm tắt

nhà thầu công cộng

MoblyBinaryHostTest ()

Phương thức công khai

void addAllExcludeFilters ( filters) addAllExcludeFilters ( filters)

Thêm ERROR(/Set) của bộ lọc kiểm tra để loại trừ.

void addAllIncludeFilters ( filters) addAllIncludeFilters ( filters)

Thêm ERROR(/Set) của các bộ lọc bao gồm các bài kiểm tra.

void addExcludeFilter (String filter)

Thêm một bộ lọc để loại trừ các bài kiểm tra.

void addIncludeFilter (String filter)

Thêm bộ lọc bao gồm các bài kiểm tra.

void clearExcludeFilters ()

Xóa tất cả các bộ lọc loại trừ hiện được theo dõi.

void clearIncludeFilters ()

Xóa tất cả các bộ lọc bao gồm hiện được theo dõi.

ITestDevice getDevice ()

Nhận thiết bị được kiểm tra.

getExcludeFilters ()

Trả về ERROR(/Set) hiện tại của bộ lọc loại trừ.

getIncludeFilters ()

Trả về ERROR(/Set) hiện tại của các bộ lọc bao gồm.

final 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 setDevice ( ITestDevice device)

Tiêm thiết bị được kiểm tra.

split (int shardCountHint)

Phiên bản thay thế của split() cũng cung cấp shardCount đang cố chạy.

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

String[] buildCommandLineArray (String filePath, String configPath, tests) buildCommandLineArray (String filePath, String configPath, tests)
String[] buildCommandLineArray (String filePath, String configPath)
filterTests (String[] testListLines, String runName, ITestInvocationListener listener)
String getLogDirAbsolutePath ()
File getLogDirFile ()
boolean processYamlTestResults (InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName)

Phân tích kết quả kiểm tra Mobly và báo cáo kết quả.

void reportLogs (File logDir, ITestInvocationListener listener)
void updateConfigFile (InputStream configInputStream, Writer writer)

nhà thầu công cộng

MoblyBinaryHostTest

public MoblyBinaryHostTest ()

Phương thức công khai

addAllExcludeFilters

public void addAllExcludeFilters ( filters)

Thêm ERROR(/Set) của bộ lọc kiểm tra để loại trừ.

Thông số
filters

addAllIncludeFilters

public void addAllIncludeFilters ( filters)

Thêm ERROR(/Set) của các bộ lọc bao gồm các bài kiểm tra.

Thông số
filters

addExcludeFilter

public void addExcludeFilter (String filter)

Thêm một bộ lọc để loại trừ các bài kiểm tra.

Thông số
filter String

thêmIncludeFilter

public void addIncludeFilter (String filter)

Thêm bộ lọc bao gồm các bài kiểm tra.

Thông số
filter String

ClearExcludeFilters

public void clearExcludeFilters ()

Xóa tất cả các bộ lọc loại trừ hiện được theo dõi.

ClearIncludeFilters

public void clearIncludeFilters ()

Xóa tất cả các bộ lọc bao gồm hiện được theo dõi.

getDevice

public ITestDevice getDevice ()

Nhận thiết bị được kiểm tra.

trả lại
ITestDevice ITestDevice

getExcludeFilters

public  getExcludeFilters ()

Trả về ERROR(/Set) hiện tại của bộ lọc loại trừ.

trả lại

getIncludeFilters

public  getIncludeFilters ()

Trả về ERROR(/Set) hiện tại của các bộ lọc bao gồm.

trả lại

chạy

public final 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

thiết lậpBuild

public void setBuild (IBuildInfo buildInfo)

Thông số
buildInfo IBuildInfo

thiết bị

public void setDevice (ITestDevice device)

Tiêm thiết bị được kiểm tra.

Thông số
device ITestDevice : ITestDevice để sử dụng

tách ra

public  split (int shardCountHint)

Phiên bản thay thế của split() cũng cung cấp shardCount đang cố chạy. Điều này hữu ích cho một số người chạy thử đôi khi không thể tùy ý quyết định.

Thông số
shardCountHint int : số lượng phân đoạn đã thử.

trả lại
một tập hợp các bài kiểm tra con sẽ được thực hiện riêng biệt hoặc null giá trị nếu bài kiểm tra hiện không thể chia nhỏ

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

buildCommandLineArray

protected String[] buildCommandLineArray (String filePath, 
                String configPath, 
                 tests)

Thông số
filePath String

configPath String

tests

trả lại
String[]

buildCommandLineArray

protected String[] buildCommandLineArray (String filePath, 
                String configPath)

Thông số
filePath String

configPath String

trả lại
String[]

bộ lọcTests

protected  filterTests (String[] testListLines, 
                String runName, 
                ITestInvocationListener listener)

Thông số
testListLines String

runName String

listener ITestInvocationListener

trả lại

getLogDirAbsolutePath

protected String getLogDirAbsolutePath ()

trả lại
String

getLogDirFile

protected File getLogDirFile ()

trả lại
File

processYamlTestResults

protected boolean processYamlTestResults (InputStream inputStream, 
                MoblyYamlResultParser parser, 
                ITestInvocationListener listener, 
                String runName)

Phân tích kết quả kiểm tra Mobly và báo cáo kết quả.

Thông số
inputStream InputStream : Một đối tượng InputStream đọc trong tệp kết quả kiểm tra Mobly.

parser MoblyYamlResultParser : Đối tượng MoblyYamlResultParser xử lý kết quả kiểm tra Mobly.

listener ITestInvocationListener : Một phiên bản ITestInvocationListener thực hiện các báo cáo khác nhau.

runName String : str, tên của lần chạy nhị phân thử nghiệm Mobly.

trả lại
boolean

báo cáoNhật ký

protected void reportLogs (File logDir, 
                ITestInvocationListener listener)

Thông số
logDir File

listener ITestInvocationListener

cập nhậtConfigFile

protected void updateConfigFile (InputStream configInputStream, 
                Writer writer)

Thông số
configInputStream InputStream

writer Writer

ném
HarnessRuntimeException