RunCommandTargetPreparer
public class RunCommandTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.RunCommandTargetPreparer |
Résumé
Constructeurs publics | |
---|---|
RunCommandTargetPreparer () |
Méthodes publiques | |
---|---|
final void | addRunCommand (String cmd) Ajoutez une commande qui sera exécutée par le préparateur. |
getCommands () | |
getExecutedCommands () | |
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e) |
Méthodes protégées | |
---|---|
ITestDevice | getDevice ( TestInformation testInfo) Renvoie l'appareil sur lequel appliquer le préparateur. |
Constructeurs publics
RunCommandTargetPreparer
public RunCommandTargetPreparer ()
Méthodes publiques
addRunCommand
public final void addRunCommand (String cmd)
Ajoutez une commande qui sera exécutée par le préparateur.
Paramètres | |
---|---|
cmd | String |
getCommands
publicgetCommands ()
Retour | |
---|---|
getExecutedCommands
publicgetExecutedCommands ()
Retour | |
---|---|
installation
public void setUp (TestInformation testInfo)
Paramètres | |
---|---|
testInfo | TestInformation |
Lance | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
démolir
public void tearDown (TestInformation testInfo, Throwable e)
Paramètres | |
---|---|
testInfo | TestInformation |
e | Throwable |
Lance | |
---|---|
DeviceNotAvailableException |
Méthodes protégées
getDevice
protected ITestDevice getDevice (TestInformation testInfo)
Renvoie l'appareil sur lequel appliquer le préparateur.
Retour | |
---|---|
ITestDevice | L'appareil sur lequel appliquer le préparateur. |
Lance | |
---|---|
| com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |