ParentSandboxInvocationExecution

public class ParentSandboxInvocationExecution
extends InvocationExecution

java.lang.Object
com.android.tradefed.inviver.InvocationExecution
com.android.tradefed.inviver.sandbox.ParentSandboxInvocationExecution


เวอร์ชันของ InvocationExecution สำหรับการดำเนินการพิเศษของการเรียกใช้พาเรนต์เมื่อเรียกใช้ Sandbox

สรุป

ผู้รับเหมาก่อสร้างสาธารณะ

ParentSandboxInvocationExecution ()

วิธีการสาธารณะ

void doCleanUp ( IInvocationContext context, IConfiguration config, Throwable exception)

ดำเนินการขั้นตอนการล้างข้อมูล target_preparer และ multi_target_preparer

void doSetup ( TestInformation testInfo, IConfiguration config, ITestLogger listener)

ดำเนินการขั้นตอนการตั้งค่า target_preparer และ multi_target_preparer

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)

เรียกใช้ ITestDevice#postInvocationTearDown(Throwable) สำหรับแต่ละส่วนของการเรียกใช้อุปกรณ์

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)) สำหรับแต่ละส่วนของอุปกรณ์ของการเรียกใช้

void runTests ( TestInformation info, IConfiguration config, ITestInvocationListener listener)

ดำเนินการทดสอบ

วิธีการที่ได้รับการป้องกัน

IConfigurationFactory getFactory ()

ส่งคืน IConfigurationFactory ที่ใช้ในการสร้างการกำหนดค่า

getLabPreparersToRun ( IConfiguration config, String deviceName)

รับรายชื่อผู้จัดเตรียมห้องปฏิบัติการเพื่อใช้งานบนอุปกรณ์นี้

IRunUtil getRunUtil ()
getTargetPreparersToRun ( IConfiguration config, String deviceName)

รับรายชื่อผู้จัดเตรียมเป้าหมายเพื่อเรียกใช้บนอุปกรณ์นี้

boolean prepareAndRunSandbox ( TestInformation info, IConfiguration config, ITestInvocationListener listener)

ส่งกลับสถานะผลลัพธ์ของการรันแซนด์บ็อกซ์

ผู้รับเหมาก่อสร้างสาธารณะ

ParentSandboxInvocationExecution

public ParentSandboxInvocationExecution ()

วิธีการสาธารณะ

ทำ CleanUp

public void doCleanUp (IInvocationContext context, 
                IConfiguration config, 
                Throwable exception)

ดำเนินการขั้นตอนการล้างข้อมูล target_preparer และ multi_target_preparer อุปกรณ์ทำความสะอาดหรือไม่

พารามิเตอร์
context IInvocationContext : IInvocationContext ของการร้องขอ

config IConfiguration : IConfiguration ของการทดสอบการทำงานนี้

exception Throwable : ข้อยกเว้นดั้งเดิมที่เกิดขึ้นจากการทดสอบการทำงาน

ทำการตั้งค่า

public void doSetup (TestInformation testInfo, 
                IConfiguration config, 
                ITestLogger listener)

ดำเนินการขั้นตอนการตั้งค่า target_preparer และ multi_target_preparer จำเป็นต้องตั้งค่าอุปกรณ์ทั้งหมดเพื่อให้การทดสอบทำงานหรือไม่

พารามิเตอร์
testInfo TestInformation : TestInformation ของการร้องขอ

config IConfiguration : IConfiguration ของการทดสอบการทำงานนี้

listener ITestLogger : ITestLogger เพื่อรายงานบันทึกความล้มเหลวในการตั้งค่า

ขว้าง
BuildError
DeviceNotAvailableException
TargetSetupError

ทำการรื้อถอน

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 : ข้อยกเว้นดั้งเดิมที่เกิดขึ้นจากการทดสอบการทำงาน

ดึงข้อมูล Build

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 เป็นจริงหากเราดาวน์โหลดบิลด์สำเร็จ มิฉะนั้นจะเป็นเท็จ

ขว้าง
BuildRetrievalError
DeviceNotAvailableException

รายงานบันทึก

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

รันการทดสอบ

public void runTests (TestInformation info, 
                IConfiguration config, 
                ITestInvocationListener listener)

ดำเนินการทดสอบ

พารามิเตอร์
info TestInformation : TestInformation เพื่อทำการทดสอบด้วย

config IConfiguration : IConfiguration ที่จะรัน

listener ITestInvocationListener : ITestInvocationListener ของผลการทดสอบ

วิธีการที่ได้รับการป้องกัน

รับโรงงาน

protected IConfigurationFactory getFactory ()

ส่งคืน IConfigurationFactory ที่ใช้ในการสร้างการกำหนดค่า

การส่งคืน
IConfigurationFactory

getLabPreparersToRun

protected  getLabPreparersToRun (IConfiguration config, 
                String deviceName)

รับรายชื่อผู้จัดเตรียมห้องปฏิบัติการเพื่อใช้งานบนอุปกรณ์นี้

ถูกแทนที่ในคลาสแซนด์บ็อกซ์เพื่อจำกัดไม่ให้ผู้จัดเตรียมห้องปฏิบัติการถูกเรียกใช้ภายในแซนด์บ็อกซ์ชายด์

พารามิเตอร์
config IConfiguration

deviceName String

การส่งคืน

getRunUtil

protected IRunUtil getRunUtil ()

การส่งคืน
IRunUtil

getTargetPreparersToRun

protected  getTargetPreparersToRun (IConfiguration config, 
                String deviceName)

รับรายชื่อผู้จัดเตรียมเป้าหมายเพื่อเรียกใช้บนอุปกรณ์นี้

ถูกแทนที่ในคลาสแซนด์บ็อกซ์เพื่อจำกัดไม่ให้ผู้จัดเตรียมห้องปฏิบัติการถูกเรียกใช้ภายในแซนด์บ็อกซ์ชายด์

พารามิเตอร์
config IConfiguration

deviceName String

การส่งคืน

เตรียม AndRunSandbox

protected boolean prepareAndRunSandbox (TestInformation info, 
                IConfiguration config, 
                ITestInvocationListener listener)

ส่งกลับสถานะผลลัพธ์ของการรันแซนด์บ็อกซ์

พารามิเตอร์
info TestInformation

config IConfiguration

listener ITestInvocationListener

การส่งคืน
boolean