Đẩy tập tinPreparer
public class PushFilePreparer
extends BaseTargetPreparer
implements IAbiReceiver , IInvocationContextReceiver , IDiscoverDependencies
Một ITargetPreparer
cố gắng đẩy bất kỳ số lượng tệp nào từ bất kỳ đường dẫn máy chủ nào sang bất kỳ đường dẫn thiết bị nào.
Nên được thực hiện *sau* bản dựng mới được flash và *sau* DeviceSetup được chạy (nếu được bật)
Bản tóm tắt
nhà thầu công cộng
Đẩy tập tinPreparer
public PushFilePreparer ()
Phương thức công khai
getAbi
public IAbi getAbi ()
getPushSpecs
public final getPushSpecs (DeviceDescriptor descriptor)
Tạo danh sách các tệp sẽ được đẩy.
Thông số |
---|
descriptor | DeviceDescriptor |
isCleanUpEnabled
public boolean isCleanUpEnabled ()
báo cáo phụ thuộc
public reportDependencies ()
giải quyếtRelativeFilePath
public File resolveRelativeFilePath (IBuildInfo buildInfo,
String fileName)
Giải quyết đường dẫn tệp tương đối thông qua IBuildInfo
và các thư mục trường hợp thử nghiệm.
Thông số |
---|
buildInfo | IBuildInfo : thông tin tạo tác xây dựng |
fileName | String : đường dẫn tệp tương đối sẽ được giải quyết |
trả lại |
---|
File | tệp từ thư mục thông tin bản dựng hoặc trường hợp thử nghiệm |
setAbi
public void setAbi (IAbi abi)
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
Thông số |
---|
invocationContext | IInvocationContext |
public void setUp (TestInformation testInfo)
Thông số |
---|
testInfo | TestInformation |
nên hủy bỏ khi thất bại
public boolean shouldAbortOnFailure ()
Có hay không hủy bỏ lỗi đẩy.
nênRemountSystem
public boolean shouldRemountSystem ()
nênRemountVendor
public boolean shouldRemountVendor ()
public void tearDown (TestInformation testInfo,
Throwable e)
Thông số |
---|
testInfo | TestInformation |
e | Throwable |