RecorderClient

public class RecorderClient
extends Object implements IRecorderClient

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


לקוח ResultDB recorder שמעלה תוצאות בדיקה ל-ResultDB.

סיכום

ערכים קבועים

int SERVER_PORT

‫methods ציבוריים

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

משלימים את ההפעלה.

void finalizeUpload()

משלימים את ההעלאה של תוצאות הבדיקה ושל הארטיפקטים.

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

הוספת חפץ לתור להעלאה ל-ResultDB.

void uploadTestResult(TestResult result)

הוספה לתור של תוצאת בדיקה להעלאה אל ResultDB.

ערכים קבועים

SERVER_PORT

public static final int SERVER_PORT

ערך קבוע: 443 (0x000001bb)

‫methods ציבוריים

יצירה

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

פרמטרים
invocationId String

updateToken String

isStaging Boolean

החזרות
IRecorderClient

createWithNewInvocation

public static IRecorderClient createWithNewInvocation (CreateInvocationRequest request, 
                Boolean isStaging)

פרמטרים
request CreateInvocationRequest

isStaging Boolean

החזרות
IRecorderClient

finalizeInvocation

public Invocation finalizeInvocation ()

משלימים את ההפעלה. צריך להפעיל את השיטה הזו אחרי שמעלים את כל התוצאות והארטיפקטים של הבדיקה.

החזרות
Invocation

finalizeUpload

public void finalizeUpload ()

משלימים את ההעלאה של תוצאות הבדיקה ושל הארטיפקטים. צריך להפעיל את השיטה הזו אחרי שמעלים את כל התוצאות והארטיפקטים של הבדיקה. המערכת תתעלם מכל קריאה ל-uploadTestResult ול-uploadArtifact אחרי השיטה הזו.

updateInvocation

public Invocation updateInvocation (UpdateInvocationRequest request)

פרמטרים
request UpdateInvocationRequest

החזרות
Invocation

uploadArtifact

public void uploadArtifact (Artifact artifact)

הוספת חפץ לתור להעלאה ל-ResultDB.

פרמטרים
artifact Artifact: הארטיפקט להעלאה.

uploadTestResult

public void uploadTestResult (TestResult result)

הוספה לתור של תוצאת בדיקה להעלאה אל ResultDB.

פרמטרים
result TestResult: תוצאת הבדיקה להעלאה.