TestSuiteInfo
public
class
TestSuiteInfo
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.suite.TestSuiteInfo |
Una classe che risolve il caricamento dei metadati correlati alla build per la suite di test
Per esporre correttamente le informazioni correlate, una suite di test deve includere un file
test-suite-info.properties nelle risorse JAR
Riepilogo
Metodi pubblici | |
|---|---|
boolean
|
didLoadFromProperties()
Restituisce true se i valori sono stati caricati da un file di proprietà, false in caso contrario. |
String
|
get(String name)
Recupera le informazioni del test identificate con il nome fornito. |
String
|
getBuildNumber()
Restituisce il numero build della suite di test |
String
|
getFullName()
Restituisce il nome completo della suite di test |
static
TestSuiteInfo
|
getInstance()
Recupera l'istanza singleton, che attiva anche il caricamento delle informazioni della suite di test correlata dai file di risorse incorporati |
String
|
getName()
Restituisce il nome breve della suite di test |
List<String>
|
getTargetArchs()
Recupera le architetture di destinazione supportate dalla suite di test |
String
|
getVersion()
Ottiene il nome della versione della suite di test |
Metodi protetti | |
|---|---|
Properties
|
loadSuiteInfo(InputStream is)
Esegue il caricamento effettivo delle proprietà |
Metodi pubblici
didLoadFromProperties
public boolean didLoadFromProperties ()
Restituisce true se i valori sono stati caricati da un file di proprietà, false in caso contrario.
| Resi | |
|---|---|
boolean |
|
get
public String get (String name)
Recupera le informazioni del test identificate con il nome fornito. o null se non è associata alcuna proprietà.
| Parametri | |
|---|---|
name |
String |
| Resi | |
|---|---|
String |
|
getBuildNumber
public String getBuildNumber ()
Restituisce il numero build della suite di test
| Resi | |
|---|---|
String |
|
getFullName
public String getFullName ()
Restituisce il nome completo della suite di test
| Resi | |
|---|---|
String |
|
getInstance
public static TestSuiteInfo getInstance ()
Recupera l'istanza singleton, che attiva anche il caricamento delle informazioni sulla suite di test correlata dai file di risorse incorporati
| Resi | |
|---|---|
TestSuiteInfo |
|
getName
public String getName ()
Restituisce il nome breve della suite di test
| Resi | |
|---|---|
String |
|
getTargetArchs
public List<String> getTargetArchs ()
Recupera le architetture di destinazione supportate dalla suite di test
| Resi | |
|---|---|
List<String> |
|
getVersion
public String getVersion ()
Ottiene il nome della versione della suite di test
| Resi | |
|---|---|
String |
|
Metodi protetti
loadSuiteInfo
protected Properties loadSuiteInfo (InputStream is)
Esegue il caricamento effettivo delle proprietà
| Parametri | |
|---|---|
is |
InputStream |
| Resi | |
|---|---|
Properties |
|
| Genera | |
|---|---|
IOException |
|