SpongeUtils
public
final
class
SpongeUtils
extends Object
| java.lang.Object | |
| ↳ | com.google.android.tradefed.result.teststorage.SpongeUtils |
Klasa zawierająca metody pomocnicze do obsługi Sponge.
Podsumowanie
Publiczne konstruktory | |
|---|---|
SpongeUtils()
|
|
Metody publiczne | |
|---|---|
static
String
|
createInvocationId()
Utwórz identyfikator wywołania Sponge. |
static
String
|
createSpongeV1Url(String url, String runName)
Tworzy adres URL Sponge V1 na potrzeby testu. |
static
String
|
createSpongeV2Url(String invocationId, String runName)
Tworzy adres URL Sponge V2 na potrzeby testu. |
static
String
|
getInvocationUrl(String invocationId)
Pobiera adres URL HTTPS do wywołania wyświetlanego w interfejsie Sponge v2. |
Publiczne konstruktory
SpongeUtils
public SpongeUtils ()
Metody publiczne
createInvocationId
public static String createInvocationId ()
Utwórz identyfikator wywołania Sponge.
| Zwroty | |
|---|---|
String |
Losowy identyfikator wywołania Sponge. |
createSpongeV1Url
public static String createSpongeV1Url (String url,
String runName)Tworzy adres URL Sponge V1 na potrzeby testu. Dodaje do podstawowego adresu URL Sponge parametr URL target=runName.
| Parametry | |
|---|---|
url |
String: podstawowy adres URL Sponge. |
runName |
String: nazwa testu |
| Zwroty | |
|---|---|
String |
Adres URL gąbki z dodatkowym parametrem docelowym ustawionym na runName. |
createSpongeV2Url
public static String createSpongeV2Url (String invocationId,
String runName)Tworzy adres URL Sponge V2 na potrzeby testu. Ustawia cel na runName.
| Parametry | |
|---|---|
invocationId |
String: - Identyfikator wywołania Sponge. |
runName |
String: nazwa testu |
| Zwroty | |
|---|---|
String |
Adres URL z dodatkowym celem ustawionym na runName. |
getInvocationUrl
public static String getInvocationUrl (String invocationId)
Pobiera adres URL HTTPS do wywołania wyświetlanego w interfejsie Sponge v2.
| Parametry | |
|---|---|
invocationId |
String |
| Zwroty | |
|---|---|
String |
adres https lub null, jeśli nie jest dostępny; |