Trình chuẩn bị PushFile
public class PushFilePreparer
extends BaseTargetPreparer
implements IAbiReceiver , IInvocationContextReceiver , IDiscoverDependencies
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 khi* bản dựng mới được cài đặt và *sau khi* Thiết lập thiết bị được chạy (nếu được bật)
Bản tóm tắt
Nhà thầu xây dựng công cộng
Trình chuẩn bị PushFile
public PushFilePreparer ()
Phương pháp công khai
getAbi
public IAbi getAbi ()
getPushSpecs
public final getPushSpecs (ITestDevice device)
Tạo danh sách các tập tin sẽ được đẩy.
Thông số |
---|
device | ITestDevice |
isCleanUpEnabled
public boolean isCleanUpEnabled ()
báo cáoPhụ 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 phẩm bản dựng |
fileName | String : đường dẫn tệp tương đối cần đượ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ênAbortOnFailure
public boolean shouldAbortOnFailure ()
Có hay không hủy bỏ khi đẩy thất bại.
nênRemountSystem
public boolean shouldRemountSystem ()
nênRemountNhà cung cấp
public boolean shouldRemountVendor ()
public void tearDown (TestInformation testInfo,
Throwable e)
Thông số |
---|
testInfo | TestInformation |
e | Throwable |