ParentSandboxInvocationExecution
public
class
ParentSandboxInvocationExecution
extends InvocationExecution
| java.lang.Object | ||
| ↳ | com.android.tradefed.invoker.InvocationExecution | |
| ↳ | com.android.tradefed.invoker.sandbox.ParentSandboxInvocationExecution | |
सैंडबॉक्स चलाने के दौरान, पैरंट इनवोकेशन की खास कार्रवाइयों के लिए InvocationExecution का वर्शन.
खास जानकारी
सार्वजनिक कंस्ट्रक्टर | |
|---|---|
ParentSandboxInvocationExecution()
|
|
पब्लिक मेथड | |
|---|---|
void
|
doCleanUp(IInvocationContext context, IConfiguration config, Throwable exception)
target_preparer और multi_target_preparer के cleanUp चरण को लागू करें. |
void
|
doSetup(TestInformation testInfo, IConfiguration config, ITestLogger listener)
target_preparer और multi_target_preparer के setUp चरण को लागू करें. |
void
|
doTeardown(TestInformation testInfo, IConfiguration config, ITestLogger logger, Throwable exception)
target_preparer और multi_target_preparer के टियरडाउन चरण को पूरा करें. |
boolean
|
fetchBuild(TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)
इनवॉकेशन के build_provider चरण को लागू करें. |
void
|
reportLogs(ITestDevice device, ITestLogger logger, TestInvocation.Stage stage)
डिवाइस के कुछ लॉग को अलग-अलग स्टेज पर रिपोर्ट करें. |
void
|
runDevicePostInvocationTearDown(IInvocationContext context, IConfiguration config, Throwable exception)
इनवॉकेशन में शामिल हर डिवाइस के लिए, |
void
|
runDevicePreInvocationSetup(IInvocationContext context, IConfiguration config, ITestLogger logger)
इनवॉकेशन में शामिल हर डिवाइस के लिए, |
void
|
runTests(TestInformation info, IConfiguration config, ITestInvocationListener listener)
इस कुकी का इस्तेमाल टेस्ट चलाने के लिए किया जाता है. |
प्रोटेक्टेड मेथड | |
|---|---|
IConfigurationFactory
|
getFactory()
कॉन्फ़िगरेशन बनाने के लिए इस्तेमाल किए गए |
List<ITargetPreparer>
|
getLabPreparersToRun(IConfiguration config, String deviceName)
इस डिवाइस पर लैब चलाने के लिए, लैब तैयार करने वालों की सूची पाएं. |
IRunUtil
|
getRunUtil()
|
List<ITargetPreparer>
|
getTargetPreparersToRun(IConfiguration config, String deviceName)
इस डिवाइस पर चलाने के लिए, टारगेट तैयार करने वालों की सूची पाएं. |
boolean
|
prepareAndRunSandbox(TestInformation info, IConfiguration config, ITestInvocationListener listener)
सैंडबॉक्स चलाने की स्थिति का नतीजा दिखाता है. |
सार्वजनिक कंस्ट्रक्टर
ParentSandboxInvocationExecution
public ParentSandboxInvocationExecution ()
पब्लिक मेथड
doCleanUp
public void doCleanUp (IInvocationContext context, IConfiguration config, Throwable exception)
target_preparer और multi_target_preparer के cleanUp चरण को लागू करें. क्या डिवाइस का स्टोरेज खाली हो जाता है.
| पैरामीटर | |
|---|---|
context |
IInvocationContext: इनवॉकेशन का IInvocationContext. |
config |
IConfiguration: इस टेस्ट रन का IConfiguration. |
exception |
Throwable: यह टेस्ट के दौरान जनरेट हुआ ओरिजनल अपवाद है. |
doSetup
public void doSetup (TestInformation testInfo, IConfiguration config, ITestLogger listener)
target_preparer और multi_target_preparer के setUp चरण को लागू करें. क्या सभी डिवाइसों को टेस्ट चलाने के लिए सेटअप किया गया है.
| पैरामीटर | |
|---|---|
testInfo |
TestInformation: इनवॉकेशन का TestInformation. |
config |
IConfiguration: इस टेस्ट रन का IConfiguration. |
listener |
ITestLogger: सेटअप से जुड़ी गड़बड़ियों के लॉग की रिपोर्ट करने के लिए इस्तेमाल किया जाने वाला ITestLogger. |
| थ्रो | |
|---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
|
doTeardown
public void doTeardown (TestInformation testInfo, IConfiguration config, ITestLogger logger, Throwable exception)
target_preparer और multi_target_preparer के टियरडाउन चरण को पूरा करें. क्या डिवाइस सेटअप से जुड़े सभी कॉम्पोनेंट को अलग कर दिया गया है.
| पैरामीटर | |
|---|---|
testInfo |
TestInformation: इनवॉकेशन का TestInformation. |
config |
IConfiguration: इस टेस्ट रन का IConfiguration. |
logger |
ITestLogger: लॉग की रिपोर्ट करने के लिए ITestLogger. |
exception |
Throwable: यह टेस्ट के दौरान जनरेट हुआ ओरिजनल अपवाद है. |
| थ्रो | |
|---|---|
Throwable |
|
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 |
|
reportLogs
public void reportLogs (ITestDevice device, ITestLogger logger, TestInvocation.Stage stage)
डिवाइस के कुछ लॉग को अलग-अलग स्टेज पर रिपोर्ट करें. उदाहरण के लिए: logcat.
| पैरामीटर | |
|---|---|
device |
ITestDevice: वह डिवाइस जिससे लॉग की रिपोर्ट करनी है. |
logger |
ITestLogger: लॉग के लिए लॉगर. |
stage |
TestInvocation.Stage: यह इनवोकेशन का मौजूदा स्टेज है. |
runDevicePostInvocationTearDown
public void runDevicePostInvocationTearDown (IInvocationContext context, IConfiguration config, Throwable exception)
इनवॉकेशन में शामिल हर डिवाइस के लिए, ITestDevice.postInvocationTearDown(Throwable) को कॉल करें.
| पैरामीटर | |
|---|---|
context |
IInvocationContext: इनवॉकेशन का IInvocationContext. |
config |
IConfiguration: इस टेस्ट रन का IConfiguration. |
exception |
Throwable: अगर कोई टेस्ट चल रहा है, तो उससे जनरेट हुआ ओरिजनल अपवाद. |
runDevicePreInvocationSetup
public void runDevicePreInvocationSetup (IInvocationContext context, IConfiguration config, ITestLogger logger)
इनवॉकेशन में शामिल हर डिवाइस के लिए, ERROR(ITestDevice.preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice.preInvocationSetup(IBuildInfo)) को कॉल करें.
| पैरामीटर | |
|---|---|
context |
IInvocationContext: इनवॉकेशन का IInvocationContext. |
config |
IConfiguration: इस टेस्ट रन का IConfiguration. |
logger |
ITestLogger: लॉग की रिपोर्ट करने के लिए ITestLogger. |
| थ्रो | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|
runTests
public void runTests (TestInformation info, IConfiguration config, ITestInvocationListener listener)
इस कुकी का इस्तेमाल टेस्ट चलाने के लिए किया जाता है.
| पैरामीटर | |
|---|---|
info |
TestInformation: टेस्ट चलाने के लिए TestInformation. |
config |
IConfiguration: IConfiguration को चलाने के लिए |
listener |
ITestInvocationListener: जांच के नतीजों का ITestInvocationListener |
| थ्रो | |
|---|---|
Throwable |
|
प्रोटेक्टेड मेथड
getFactory
protected IConfigurationFactory getFactory ()
कॉन्फ़िगरेशन बनाने के लिए इस्तेमाल किए गए IConfigurationFactory दिखाता है.
| रिटर्न | |
|---|---|
IConfigurationFactory |
|
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> |
|
prepareAndRunSandbox
protected boolean prepareAndRunSandbox (TestInformation info, IConfiguration config, ITestInvocationListener listener)
सैंडबॉक्स चलाने की स्थिति का नतीजा दिखाता है.
| पैरामीटर | |
|---|---|
info |
TestInformation |
config |
IConfiguration |
listener |
ITestInvocationListener |
| रिटर्न | |
|---|---|
boolean |
|
| थ्रो | |
|---|---|
Throwable |
|