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