SandboxedInvocationExecution
public class SandboxedInvocationExecution
extends InvocationExecution
java.lang.Object | ||
↳ | com.android.tradefed.invoker.InvocationExecution | |
↳ | com.android.tradefed.invoker.sandbox.SandboxedInvocationExecution |
Spezielle Sandbox-Ausführung des Aufrufs: Dies ist die InvocationExection, wenn wir uns in der Sandbox befinden und den Befehl ausführen. Der Build sollte bereits im Kontext verfügbar sein.
Zusammenfassung
Öffentliche Konstrukteure | |
---|---|
SandboxedInvocationExecution () |
Öffentliche Methoden | |
---|---|
void | cleanUpBuilds (IInvocationContext context, IConfiguration config) Führen Sie den Bereinigungsschritt build_provider aus. |
boolean | fetchBuild (TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener) Führen Sie den Schritt build_provider des Aufrufs aus. |
void | runDevicePostInvocationTearDown (IInvocationContext context, IConfiguration config, Throwable exception) Rufen Sie das |
void | runDevicePreInvocationSetup (IInvocationContext context, IConfiguration config, ITestLogger logger) Rufen Sie das |
Geschützte Methoden | |
---|---|
getPreparersToRun ( IConfiguration config, String deviceName) Rufen Sie eine Liste der Vorbereitungen ab, die auf diesem Gerät ausgeführt werden sollen. | |
void | logHostAdb ( IConfiguration config, ITestLogger logger) Sammeln Sie die Protokolle von $TMPDIR/adb.$UID.log. |
Öffentliche Konstrukteure
SandboxedInvocationExecution
public SandboxedInvocationExecution ()
Öffentliche Methoden
cleanUpBuilds
public void cleanUpBuilds (IInvocationContext context, IConfiguration config)
Führen Sie den Bereinigungsschritt build_provider aus. Verbunden mit dem Build-Abruf.
Parameter | |
---|---|
context | IInvocationContext : die IInvocationContext des Aufrufs. |
config | IConfiguration : die IConfiguration dieses Testlaufes. |
fetchBuild
public boolean fetchBuild (TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)
Führen Sie den Schritt build_provider des Aufrufs aus.
Parameter | |
---|---|
testInfo | TestInformation : die TestInformation des Aufrufs. |
config | IConfiguration : die IConfiguration dieses Testlaufes. |
rescheduler | IRescheduler : die IRescheduler , für Teile des Aufrufs für die Ausführung auf einer anderen Ressource Neuplanung (n) |
listener | ITestInvocationListener : die ITestInvocation zum Bericht build herunterladen Ausfälle. |
Kehrt zurück | |
---|---|
boolean | True, wenn der Build erfolgreich heruntergeladen wurde, andernfalls false. |
Würfe | |
---|---|
BuildRetrievalError | |
DeviceNotAvailableException |
runDevicePostInvocationTearDown
public void runDevicePostInvocationTearDown (IInvocationContext context, IConfiguration config, Throwable exception)
Rufen Sie das ITestDevice#postInvocationTearDown(Throwable)
für jedes Gerät ein Teil des Aufrufs.
Parameter | |
---|---|
context | IInvocationContext : die IInvocationContext des Aufrufs. |
config | IConfiguration : die IConfiguration dieses Testlaufes. |
exception | Throwable : die ursprüngliche Ausnahme durch den Testlauf ausgelöst , wenn überhaupt. |
runDevicePreInvocationSetup
public void runDevicePreInvocationSetup (IInvocationContext context, IConfiguration config, ITestLogger logger)
Rufen Sie das ERROR(ITestDevice#preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice#preInvocationSetup(IBuildInfo))
für jedes Gerät ein Teil des Aufrufs.
Parameter | |
---|---|
context | IInvocationContext : die IInvocationContext des Aufrufs. |
config | IConfiguration : die IConfiguration dieses Testlaufes. |
logger | ITestLogger : die ITestLogger zu berichten Protokolle. |
Würfe | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
Geschützte Methoden
getPreparersToRun
protectedgetPreparersToRun (IConfiguration config, String deviceName)
Rufen Sie eine Liste der Vorbereitungen ab, die auf diesem Gerät ausgeführt werden sollen.
In Sandbox-Klassen überschrieben, um die Ausführung von Lab-Vorbereitern im Sandbox-Kind einzuschränken
Parameter | |
---|---|
config | IConfiguration |
deviceName | String |
Kehrt zurück | |
---|---|
logHostAdb
protected void logHostAdb (IConfiguration config, ITestLogger logger)
Sammeln Sie die Protokolle von $TMPDIR/adb.$UID.log.
Parameter | |
---|---|
config | IConfiguration |
logger | ITestLogger |