PushFilePreparer
public class PushFilePreparer
extends BaseTargetPreparer
implements IAbiReceiver , IInvocationContextReceiver , IDiscoverDependencies
ITargetPreparer
ที่พยายามส่งไฟล์จำนวนเท่าใดก็ได้จากพาธโฮสต์ไปยังพาธอุปกรณ์ใดๆ
ควรดำเนินการ *หลัง* บิลด์ใหม่ถูกแฟลช และ *หลัง* DeviceSetup ทำงาน (หากเปิดใช้งาน)
สรุป
ผู้สร้างสาธารณะ
PushFilePreparer
public PushFilePreparer ()
วิธีการสาธารณะ
getAbi
public IAbi getAbi ()
getPushSpecs
public final getPushSpecs (DeviceDescriptor descriptor)
สร้างรายการไฟล์ที่จะพุช
พารามิเตอร์ |
---|
descriptor | DeviceDescriptor |
รายงานการพึ่งพา
public reportDependencies ()
แก้ไขRelativeFilePath
public File resolveRelativeFilePath (IBuildInfo buildInfo,
String fileName)
แก้ไขพาธไฟล์ที่เกี่ยวข้องผ่าน IBuildInfo
และไดเร็กทอรีกรณีทดสอบ
พารามิเตอร์ |
---|
buildInfo | IBuildInfo : ข้อมูลการสร้างสิ่งประดิษฐ์ |
fileName | String : เส้นทางของไฟล์สัมพัทธ์ที่จะแก้ไข |
คืนสินค้า |
---|
File | ไฟล์จากข้อมูลบิลด์หรือไดเร็กทอรีกรณีทดสอบ |
setAbi
public void setAbi (IAbi abi)
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
พารามิเตอร์ |
---|
invocationContext | IInvocationContext |
public void setUp (TestInformation testInfo)
พารามิเตอร์ |
---|
testInfo | TestInformation |
ควรAbortOnFailure
public boolean shouldAbortOnFailure ()
ไม่ว่าจะยกเลิกเมื่อกดล้มเหลว
public void tearDown (TestInformation testInfo,
Throwable e)
พารามิเตอร์ |
---|
testInfo | TestInformation |
e | Throwable |