TestInvocation
public class TestInvocation
extends Object
implements ITestInvocation
java.lang.Object |
↳ | com.android.tradefed.invoker.TestInvocation |
ITestInvocation
par défaut de ITestInvocation
.
Charge les principaux objets en fonction de
IConfiguration
- récupère la compilation - prépare la cible - exécute les tests - rapporte les résultats
Sommaire
Classes imbriquées |
---|
enum | TestInvocation.RunMode Le mode différent dans lequel une invocation peut s'exécuter. |
enum | TestInvocation.Stage |
Des champs
COMMAND_ARGS_KEY
public static final String COMMAND_ARGS_KEY
Clé des attributs args de la ligne de commande
TRADEFED_END_HOST_LOG
public static final String TRADEFED_END_HOST_LOG
TRADEFED_LOG_NAME
public static final String TRADEFED_LOG_NAME
Constructeurs publics
TestInvocation
public TestInvocation ()
Méthodes publiques
createInvocationExec
public IInvocationExecution createInvocationExec (TestInvocation.RunMode mode)
Créez le chemin d'appel à suivre.
Paramètres |
---|
mode | TestInvocation.RunMode : Le mode dans TestInvocation.RunMode nous fonctionnons actuellement. |
getDeviceLogName
public static String getDeviceLogName (TestInvocation.Stage stage)
Paramètres |
---|
stage | TestInvocation.Stage |
getEmulatorLogName
public static String getEmulatorLogName (TestInvocation.Stage stage)
Paramètres |
---|
stage | TestInvocation.Stage |
invoquer
public void invoke (IInvocationContext context,
IConfiguration config,
IRescheduler rescheduler,
ITestInvocationListener... extraListeners)
Exécutez l'appel de test.
Paramètres |
---|
context | IInvocationContext : le IInvocationContext pour effectuer des tests. |
config | IConfiguration : l' IConfiguration de ce test. |
rescheduler | IRescheduler : l' IRescheduler , pour replanifier des parties de l'appel pour une exécution sur une ou plusieurs autres ressources |
extraListeners | ITestInvocationListener : ITestInvocationListener s à notifier, en plus de ceux de la config |
Jette |
---|
DeviceNotAvailableException | |
notifyInvocationStopped
public void notifyInvocationStopped (String message)
Informez le TestInvocation
que TradeFed a été invité à s'arrêter.
Paramètres |
---|
message | String : le message associé à l'arrêt de l'appel |
printStageDelimiter
public static void printStageDelimiter (TestInvocation.Stage phase,
boolean end)
Imprime un délimiteur pour une étape donnée de l'appel.
Paramètres |
---|
phase | TestInvocation.Stage |
end | boolean |
registerExecutionFiles
public void registerExecutionFiles (ExecutionFiles executionFiles)
Paramètres |
---|
executionFiles | ExecutionFiles |
toString
public String toString ()
Méthodes protégées
addInvocationMetric
protected void addInvocationMetric (InvocationMetricLogger.InvocationMetricKey key,
String value)
Paramètres |
---|
key | InvocationMetricLogger.InvocationMetricKey |
value | String |
addInvocationMetric
protected void addInvocationMetric (InvocationMetricLogger.InvocationMetricKey key,
long value)
Paramètres |
---|
key | InvocationMetricLogger.InvocationMetricKey |
value | long |
applyAutomatedReporters
protected void applyAutomatedReporters (IConfiguration config)
Paramètres |
---|
config | IConfiguration |
setExitCode
protected void setExitCode (CommandRunner.ExitCode code,
Throwable stack)
Aide pour définir le code de sortie. Exposé pour les tests.
Paramètres |
---|
code | CommandRunner.ExitCode |
stack | Throwable |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.