SandboxedInvocationExecution
public
class
SandboxedInvocationExecution
extends InvocationExecution
| java.lang.Object | ||
| ↳ | com.android.tradefed.invoker.InvocationExecution | |
| ↳ | com.android.tradefed.invoker.sandbox.SandboxedInvocationExecution | |
इनवोकेशन को सैंडबॉक्स में खास तौर पर एक्ज़ीक्यूट करना: यह InvocationExection तब होता है, जब हम सैंडबॉक्स में कमांड चला रहे होते हैं. बिल्ड, कॉन्टेक्स्ट में पहले से उपलब्ध होना चाहिए.
खास जानकारी
सार्वजनिक कंस्ट्रक्टर | |
|---|---|
SandboxedInvocationExecution()
|
|
पब्लिक मेथड | |
|---|---|
void
|
cleanUpBuilds(IInvocationContext context, IConfiguration config)
build_provider क्लीन अप चरण को पूरा करें. |
boolean
|
fetchBuild(TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)
इनवॉकेशन के build_provider चरण को लागू करें. |
प्रोटेक्टेड मेथड | |
|---|---|
List<ITargetPreparer>
|
getLabPreparersToRun(IConfiguration config, String deviceName)
इस डिवाइस पर लैब चलाने के लिए, लैब तैयार करने वालों की सूची पाएं. |
List<ITargetPreparer>
|
getTargetPreparersToRun(IConfiguration config, String deviceName)
इस डिवाइस पर चलाने के लिए, टारगेट तैयार करने वालों की सूची पाएं. |
void
|
logHostAdb(IConfiguration config, ITestLogger logger)
$TMPDIR/adb.$UID.log से लॉग इकट्ठा करें. |
सार्वजनिक कंस्ट्रक्टर
SandboxedInvocationExecution
public SandboxedInvocationExecution ()
पब्लिक मेथड
cleanUpBuilds
public void cleanUpBuilds (IInvocationContext context, IConfiguration config)
build_provider क्लीन अप चरण को पूरा करें. यह कुकी, बिल्ड फ़ेच करने से जुड़ी है.
| पैरामीटर | |
|---|---|
context |
IInvocationContext: इनवॉकेशन का IInvocationContext. |
config |
IConfiguration: इस टेस्ट रन का IConfiguration. |
fetchBuild
public boolean fetchBuild (TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)
इनवॉकेशन के build_provider चरण को लागू करें.
| पैरामीटर | |
|---|---|
testInfo |
TestInformation: इनवॉकेशन का TestInformation. |
config |
IConfiguration: इस टेस्ट रन का IConfiguration. |
rescheduler |
IRescheduler: IRescheduler, किसी अन्य संसाधन पर लागू करने के लिए, इनवोकेशन के कुछ हिस्सों को फिर से शेड्यूल करने के लिए |
listener |
ITestInvocationListener: ITestInvocation, जिसका इस्तेमाल बिल्ड डाउनलोड न होने की समस्या की शिकायत करने के लिए किया जाता है. |
| रिटर्न | |
|---|---|
boolean |
अगर हमने बिल्ड को डाउनलोड कर लिया है, तो वैल्यू true होगी. अगर ऐसा नहीं है, तो वैल्यू false होगी. |
| थ्रो | |
|---|---|
BuildRetrievalError |
|
DeviceNotAvailableException |
|
प्रोटेक्टेड मेथड
getLabPreparersToRun
protected List<ITargetPreparer> getLabPreparersToRun (IConfiguration config, String deviceName)
इस डिवाइस पर लैब चलाने के लिए, लैब तैयार करने वालों की सूची पाएं.
सैंडबॉक्स क्लास में इस फ़ंक्शन को बदला जाता है, ताकि लैब तैयार करने वालों को सैंडबॉक्स चाइल्ड में चलाने से रोका जा सके
| पैरामीटर | |
|---|---|
config |
IConfiguration |
deviceName |
String |
| रिटर्न | |
|---|---|
List<ITargetPreparer> |
|
getTargetPreparersToRun
protected List<ITargetPreparer> getTargetPreparersToRun (IConfiguration config, String deviceName)
इस डिवाइस पर चलाने के लिए, टारगेट तैयार करने वालों की सूची पाएं.
सैंडबॉक्स क्लास में इस फ़ंक्शन को बदला जाता है, ताकि लैब तैयार करने वालों को सैंडबॉक्स चाइल्ड में चलाने से रोका जा सके
| पैरामीटर | |
|---|---|
config |
IConfiguration |
deviceName |
String |
| रिटर्न | |
|---|---|
List<ITargetPreparer> |
|
logHostAdb
protected void logHostAdb (IConfiguration config, ITestLogger logger)
$TMPDIR/adb.$UID.log से लॉग इकट्ठा करें.
| पैरामीटर | |
|---|---|
config |
IConfiguration |
logger |
ITestLogger |