MoblyBinaryHostTest
public class MoblyBinaryHostTest
extends Object
implements IRemoteTest , IDeviceTest , IBuildReceiver , ITestFilterReceiver
java.lang.Object | |
↳ | com.android.tradefed.testtype.mobly.MoblyBinaryHostTest |
Kiểm tra máy chủ có nghĩa là chạy một tệp nhị phân python mobly từ hệ thống Android Build (Soong)
Bản tóm tắt
Các nhà xây dựng công cộng | |
---|---|
MoblyBinaryHostTest () |
Phương pháp công khai | |
---|---|
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) Thêm |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) Thêm |
void | addExcludeFilter (String filter) Thêm một bộ lọc trong đó các thử nghiệm cần loại trừ. |
void | addIncludeFilter (String filter) Thêm một bộ lọc để bao gồm các thử nghiệm. |
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 đang theo dõi. |
ITestDevice | getDevice () Lấy thiết bị đang kiểm tra. |
getExcludeFilters () Trả về | |
getIncludeFilters () Trả về | |
final 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 | setDevice ( ITestDevice device) Tiêm thiết bị đang thử nghiệm. |
Các phương pháp được bảo vệ | |
---|---|
String[] | buildCommandLineArray (String filePath, String configPath) |
void | processYamlTestResults (InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName) Parses Mobly kiểm tra kết quả và báo cáo kết quả. |
void | reportLogs (File logDir, ITestInvocationListener listener) |
void | updateConfigFile (InputStream configInputStream, Writer writer) |
Các nhà xây dựng công cộng
MoblyBinaryHostTest
public MoblyBinaryHostTest ()
Phương pháp công khai
addAllExcludeFilters
public void addAllExcludeFilters (filters)
Thêm ERROR(/Set)
các bộ lọc mà các thử nghiệm cần loại trừ.
Thông số | |
---|---|
filters |
addAllIncludeFilters
public void addAllIncludeFilters (filters)
Thêm ERROR(/Set)
các bộ lọc mà các thử nghiệm sẽ bao gồm.
Thông số | |
---|---|
filters |
addExcludeFilter
public void addExcludeFilter (String filter)
Thêm một bộ lọc trong đó các thử nghiệm cần loại trừ.
Thông số | |
---|---|
filter | String |
addIncludeFilter
public void addIncludeFilter (String filter)
Thêm một bộ lọc để bao gồm các thử nghiệm.
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 đang theo dõi.
getDevice
public ITestDevice getDevice ()
Lấy thiết bị đang kiểm tra.
Lợi nhuận | |
---|---|
ITestDevice | ITestDevice |
getExcludeFilters
publicgetExcludeFilters ()
Trả về ERROR(/Set)
bộ lọc loại trừ hiện tại.
Lợi nhuận | |
---|---|
getIncludeFilters
publicgetIncludeFilters ()
Trả về ERROR(/Set)
hiện tại của các bộ lọc bao gồm.
Lợi nhuận | |
---|---|
chạy
public final 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 |
setDevice
public void setDevice (ITestDevice device)
Tiêm thiết bị đang thử nghiệm.
Thông số | |
---|---|
device | ITestDevice : ITestDevice để sử dụng |
Các phương pháp được bảo vệ
buildCommandLineArray
protected String[] buildCommandLineArray (String filePath, String configPath)
Thông số | |
---|---|
filePath | String |
configPath | String |
Lợi nhuận | |
---|---|
String[] |
processYamlTestResults
protected void processYamlTestResults (InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName)
Parses Mobly kiểm tra kết quả và báo cáo kết quả.
Thông số | |
---|---|
inputStream | InputStream : Một đối tượng InputStream đang đọc trong tệp kết quả kiểm tra Mobly. |
parser | MoblyYamlResultParser : Một đố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 nhiều báo cáo khác nhau. |
runName | String : str, tên của lần chạy nhị phân Mobly test. |
reportLogs
protected void reportLogs (File logDir, ITestInvocationListener listener)
Thông số | |
---|---|
logDir | File |
listener | ITestInvocationListener |
updateConfigFile
protected void updateConfigFile (InputStream configInputStream, Writer writer)
Thông số | |
---|---|
configInputStream | InputStream |
writer | Writer |
Ném | |
---|---|
HarnessRuntimeException |