SpongeUtils
public
final
class
SpongeUtils
extends Object
| java.lang.Object | |
| ↳ | com.google.android.tradefed.result.teststorage.SpongeUtils |
Class to hold helper methods for dealing with Sponge.
Summary
Public constructors | |
|---|---|
SpongeUtils()
|
|
Public methods | |
|---|---|
static
String
|
createInvocationId()
Create a Sponge invocation id. |
static
String
|
createSpongeV1Url(String url, String runName)
Creates a Sponge V1 URL for a test run. |
static
String
|
createSpongeV2Url(String invocationId, String runName)
Creates a Sponge V2 URL for a test run. |
static
String
|
getInvocationUrl(String invocationId)
Gets the https url to the invocation displayed on sponge v2 UI. |
Public constructors
SpongeUtils
public SpongeUtils ()
Public methods
createInvocationId
public static String createInvocationId ()
Create a Sponge invocation id.
| Returns | |
|---|---|
String |
A random Sponge invocation id. |
createSpongeV1Url
public static String createSpongeV1Url (String url,
String runName)Creates a Sponge V1 URL for a test run. It adds target=runName URL parameter to the base Sponge URL.
| Parameters | |
|---|---|
url |
String: - base Sponge URL. |
runName |
String: name of a test run |
| Returns | |
|---|---|
String |
A sponge URL with additional target parameter set to runName. |
createSpongeV2Url
public static String createSpongeV2Url (String invocationId,
String runName)Creates a Sponge V2 URL for a test run. It sets target to runName.
| Parameters | |
|---|---|
invocationId |
String: - Sponge invocation id. |
runName |
String: name of a test run |
| Returns | |
|---|---|
String |
A sponge URL with additional target set to runName. |
getInvocationUrl
public static String getInvocationUrl (String invocationId)
Gets the https url to the invocation displayed on sponge v2 UI.
| Parameters | |
|---|---|
invocationId |
String |
| Returns | |
|---|---|
String |
the https url or null if not available |