GTestListTestParser
public
class
GTestListTestParser
extends MultiLineReceiver
java.lang.Object | ||
↳ | com.android.ddmlib.MultiLineReceiver | |
↳ | com.android.tradefed.testtype.GTestListTestParser |
Trình phân tích cú pháp kết quả cho chế độ chạy thử gtest với tham số "--gtest_list_tests".
Tóm tắt
Trường | |
---|---|
protected
|
mTests
|
Hàm khởi tạo công khai | |
---|---|
GTestListTestParser(String testRunName, ITestInvocationListener listener)
Tạo GTestListTestParser cho một trình nghe. |
|
GTestListTestParser(String testRunName, ITestInvocationListener listener, boolean shouldCollectDisabledTest)
Tạo GTestListTestParser cho một trình nghe. |
Phương thức công khai | |
---|---|
void
|
done()
|
boolean
|
getPrependFileName()
|
boolean
|
isCancelled()
|
void
|
processNewLines(String[] lines)
|
void
|
setPrependFileName(boolean prepend)
|
Trường
mTests
protectedmTests
Hàm khởi tạo công khai
GTestListTestParser
public GTestListTestParser (String testRunName, ITestInvocationListener listener)
Tạo GTestListTestParser cho một trình nghe.
Tham số | |
---|---|
testRunName |
String : tên lần chạy kiểm thử để cung cấp cho ITestLifeCycleReceiver.testRunStarted(String, int) |
listener |
ITestInvocationListener : được thông báo về kết quả kiểm thử khi kiểm thử đang thực thi |
GTestListTestParser
public GTestListTestParser (String testRunName, ITestInvocationListener listener, boolean shouldCollectDisabledTest)
Tạo GTestListTestParser cho một trình nghe.
Tham số | |
---|---|
testRunName |
String : tên lần chạy kiểm thử để cung cấp cho ITestLifeCycleReceiver.testRunStarted(String, int) |
listener |
ITestInvocationListener : được thông báo về kết quả kiểm thử khi kiểm thử đang thực thi |
shouldCollectDisabledTest |
boolean : có thu thập các kiểm thử bị tắt hay không |
Phương thức công khai
done
public void done ()
getPrependFileName
public boolean getPrependFileName ()
Giá trị trả về | |
---|---|
boolean |
isCancelled
public boolean isCancelled ()
Giá trị trả về | |
---|---|
boolean |
processNewLines
public void processNewLines (String[] lines)
Tham số | |
---|---|
lines |
String |
setPrependFileName
public void setPrependFileName (boolean prepend)
Tham số | |
---|---|
prepend |
boolean |