PushFilePreparer
public class PushFilePreparer
extends BaseTargetPreparer
implements IAbiReceiver , IInvocationContextReceiver , IDiscoverDependencies
Herhangi bir sayıda dosyayı herhangi bir ana bilgisayar yolundan herhangi bir cihaz yoluna göndermeye çalışan bir ITargetPreparer
.
Yeni bir yapı yüklendikten *sonra* ve DeviceSetup çalıştırıldıktan *sonra* gerçekleştirilmelidir (etkinse)
Özet
kamu inşaatçılar
PushFilePreparer
public PushFilePreparer ()
Genel yöntemler
alAbi
public IAbi getAbi ()
getPushSpecs
public final getPushSpecs (ITestDevice device)
Aktarılacak dosyaların listesini oluşturun.
parametreler |
---|
device | ITestDevice |
isCleanUp Etkin
public boolean isCleanUpEnabled ()
rapor Bağımlılıkları
public reportDependencies ()
çözümlemeRelativeFilePath
public File resolveRelativeFilePath (IBuildInfo buildInfo,
String fileName)
Göreceli dosya yolunu IBuildInfo
ve test senaryoları dizinleri aracılığıyla çözün.
parametreler |
---|
buildInfo | IBuildInfo : derleme yapıt bilgisi |
fileName | String : çözülecek göreli dosya yolu |
İadeler |
---|
File | yapı bilgisi veya test senaryoları dizinlerinden dosya |
setAbi
public void setAbi (IAbi abi)
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
parametreler |
---|
invocationContext | IInvocationContext |
public void setUp (TestInformation testInfo)
parametreler |
---|
testInfo | TestInformation |
mustAbortOnFailure
public boolean shouldAbortOnFailure ()
İtme hatası durumunda iptal edilip edilmeyeceği.
gerekirRemountSystem
public boolean shouldRemountSystem ()
gerekirRemountVendor
public boolean shouldRemountVendor ()
public void tearDown (TestInformation testInfo,
Throwable e)
parametreler |
---|
testInfo | TestInformation |
e | Throwable |