JsonHttpTestResultReporter
public
class
JsonHttpTestResultReporter
extends CollectingTestListener
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.CollectingTestListener | |
| ↳ | com.android.tradefed.result.JsonHttpTestResultReporter | |
Test metrikleri sonuçlarını ve şube, cihaz bilgilerini JSON olarak kodlayıp bir HTTP hizmet uç noktasına POST eden bir sonuç raporlayıcı
Özet
Herkese açık kurucular | |
|---|---|
JsonHttpTestResultReporter()
|
|
Herkese açık yöntemler | |
|---|---|
|
getValidMetrics(
Yalnızca sayısal metrikleri ekleyin ve sayısal olmayan metrikleri yayınlamayı atlayın. |
void
|
invocationEnded(long elapsedTime)
|
void
|
invocationFailed(Throwable cause)
|
void
|
invocationStarted(IInvocationContext context)
|
Korunan yöntemler | |
|---|---|
ITestDevice
|
getDevice(IInvocationContext context)
|
void
|
parseAdditionalDeviceDetails(ITestDevice testDevice)
Test cihazından cihaz adını, SDK sürüm numarasını ve derleme kimliğini alır. |
void
|
postResults(JSONObject postData)
Belirtilen HTTP uç noktasına veri gönderme |
Herkese açık kurucular
JsonHttpTestResultReporter
public JsonHttpTestResultReporter ()
Herkese açık yöntemler
getValidMetrics
publicgetValidMetrics ( collectedMetrics)
Yalnızca sayısal metrikleri ekleyin ve sayısal olmayan metrikleri yayınlamayı atlayın.
| Parametreler | |
|---|---|
collectedMetrics |
: Tüm metrikleri içerir. |
| İlerlemeler | |
|---|---|
|
yalnızca sayısal metrikleri. |
invocationEnded
public void invocationEnded (long elapsedTime)
| Parametreler | |
|---|---|
elapsedTime |
long |
invocationFailed
public void invocationFailed (Throwable cause)
| Parametreler | |
|---|---|
cause |
Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
| Parametreler | |
|---|---|
context |
IInvocationContext |
Korunan yöntemler
getDevice
protected ITestDevice getDevice (IInvocationContext context)
| Parametreler | |
|---|---|
context |
IInvocationContext |
| İlerlemeler | |
|---|---|
ITestDevice |
|
parseAdditionalDeviceDetails
protected void parseAdditionalDeviceDetails (ITestDevice testDevice)
Test cihazından cihaz adını, SDK sürüm numarasını ve derleme kimliğini alır.
| Parametreler | |
|---|---|
testDevice |
ITestDevice: Bilgilerin toplanacağı cihaz.
|
postResults
protected void postResults (JSONObject postData)
Belirtilen HTTP uç noktasına veri gönderme
| Parametreler | |
|---|---|
postData |
JSONObject: yayınlanacak veriler
|