PushFilePreparer
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 đến bất kỳ đường dẫn thiết bị nào.
Nên thực hiện * sau khi * một bản dựng mới được hiển thị và * sau khi * Thiết lập thiết bị được chạy (nếu được bật)
Bản tóm tắt
Các nhà xây dựng công cộng
PushFilePreparer
public PushFilePreparer ()
Phương pháp 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 |
reportDependencies
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 bản dựng |
fileName | String : đường dẫn tệp tương đối sẽ được giải quyết |
Lợi nhuận |
---|
File | tệp từ thông tin bản dựng hoặc thư mụ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 |
shouldAbortOnFailure
public boolean shouldAbortOnFailure ()
Có hay không hủy bỏ khi đẩy thất bại.
public void tearDown (TestInformation testInfo,
Throwable e)
Thông số |
---|
testInfo | TestInformation |
e | Throwable |