JavaCodeCoverageCollector
public
final
class
JavaCodeCoverageCollector
extends BaseDeviceMetricCollector
implements
IConfigurationReceiver
| java.lang.Object | ||
| ↳ | com.android.tradefed.device.metric.BaseDeviceMetricCollector | |
| ↳ | com.android.tradefed.device.metric.JavaCodeCoverageCollector | |
BaseDeviceMetricCollector שימשוך את נתוני הכיסוי של Java מהמכשיר וירשום אותם כארטיפקטים של בדיקה.
סיכום
ערכים קבועים | |
|---|---|
String |
COVERAGE_DIRECTORY
|
String |
COVERAGE_MEASUREMENT_KEY
|
String |
MERGE_COVERAGE_MEASUREMENTS_TEST_NAME
|
שדות | |
|---|---|
public
static
final
String |
COMPRESS_COVERAGE_FILES
|
public
static
final
String |
FIND_COVERAGE_FILES
|
Constructors ציבוריים | |
|---|---|
JavaCodeCoverageCollector()
|
|
methods ציבוריים | |
|---|---|
void
|
extraInit(IInvocationContext context, ITestInvocationListener listener)
|
void
|
onTestRunEnd(DeviceMetricData runData,
פונקציית Callback כשמסתיימת הרצת בדיקה. |
void
|
setConfiguration(IConfiguration configuration)
הוספת |
ערכים קבועים
COVERAGE_DIRECTORY
public static final String COVERAGE_DIRECTORY
ערך קבוע: "/data/misc/trace"
COVERAGE_MEASUREMENT_KEY
public static final String COVERAGE_MEASUREMENT_KEY
Constant Value: "coverageFilePath"
MERGE_COVERAGE_MEASUREMENTS_TEST_NAME
public static final String MERGE_COVERAGE_MEASUREMENTS_TEST_NAME
ערך קבוע: "mergeCoverageMeasurements"
שדות
COMPRESS_COVERAGE_FILES
public static final String COMPRESS_COVERAGE_FILES
FIND_COVERAGE_FILES
public static final String FIND_COVERAGE_FILES
Constructors ציבוריים
JavaCodeCoverageCollector
public JavaCodeCoverageCollector ()
methods ציבוריים
extraInit
public void extraInit (IInvocationContext context, ITestInvocationListener listener)
| זריקות | |
|---|---|
DeviceNotAvailableException |
|
onTestRunEnd
public void onTestRunEnd (DeviceMetricData runData,runMetrics)
פונקציית Callback כשמסתיימת הרצת בדיקה. זה הזמן לנקות את הנתונים.
| פרמטרים | |
|---|---|
runData |
DeviceMetricData: DeviceMetricData שמכיל את הנתונים של ההרצה. יהיה אותו אובייקט כמו במהלך BaseDeviceMetricCollector.onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData). |
runMetrics |
: המפה הנוכחית של המדדים שמועברים אל ERROR(/#testRunEnded(long,Map)). |
| זריקות | |
|---|---|
DeviceNotAvailableException |
|
setConfiguration
public void setConfiguration (IConfiguration configuration)
הוספת IConfiguration בשימוש.
| פרמטרים | |
|---|---|
configuration |
IConfiguration |