RecorderClient

public class RecorderClient
extends Object implements IRecorderClient

java.lang.Object
   ↳ com.android.tradefed.result.resultdb.RecorderClient


Test sonuçlarını ResultDB'ye yükleyen ResultDB kaydedici istemcisi.

Özet

Sabitler

int SERVER_PORT

Herkese açık yöntemler

static IRecorderClient create(String invocationId, String updateToken, Boolean isStaging)
static IRecorderClient createWithNewInvocation(CreateInvocationRequest request, Boolean isStaging)
Invocation finalizeInvocation()

Çağırma işlemini tamamlayın.

void finalizeUpload()

Test sonuçlarının ve yapay nesnelerin yüklenmesini tamamlayın.

Invocation updateInvocation(UpdateInvocationRequest request)
void uploadArtifact(Artifact artifact)

ResultDB'ye yüklenecek bir yapıyı sıraya alın.

void uploadTestResult(TestResult result)

ResultDB'ye yüklenecek bir test sonucunu sıraya alın.

Sabitler

SERVER_PORT

public static final int SERVER_PORT

Sabit Değer: 443 (0x000001bb)

Herkese açık yöntemler

oluştur

public static IRecorderClient create (String invocationId, 
                String updateToken, 
                Boolean isStaging)

Parametreler
invocationId String

updateToken String

isStaging Boolean

İlerlemeler
IRecorderClient

createWithNewInvocation

public static IRecorderClient createWithNewInvocation (CreateInvocationRequest request, 
                Boolean isStaging)

Parametreler
request CreateInvocationRequest

isStaging Boolean

İlerlemeler
IRecorderClient

finalizeInvocation

public Invocation finalizeInvocation ()

Çağırma işlemini tamamlayın. Bu yöntem, tüm test sonuçları ve yapıtlar yüklendikten sonra çağrılmalıdır.

İlerlemeler
Invocation

finalizeUpload

public void finalizeUpload ()

Test sonuçlarının ve yapay nesnelerin yüklenmesini tamamlayın. Bu yöntem, tüm test sonuçları ve yapılar yüklendikten sonra çağrılmalıdır. Bu yöntemden sonraki tüm uploadTestResult ve uploadArtifact çağrıları yoksayılır.

updateInvocation

public Invocation updateInvocation (UpdateInvocationRequest request)

Parametreler
request UpdateInvocationRequest

İlerlemeler
Invocation

uploadArtifact

public void uploadArtifact (Artifact artifact)

ResultDB'ye yüklenecek bir yapıyı sıraya alın.

Parametreler
artifact Artifact: Yüklenecek yapıt.

uploadTestResult

public void uploadTestResult (TestResult result)

ResultDB'ye yüklenecek bir test sonucunu sıraya alın.

Parametreler
result TestResult: Yüklenecek test sonucu.