-
Couldn't load subscription status.
- Fork 346
Test Cookbook
Diego Torres Milano edited this page Dec 15, 2015
·
7 revisions
Sometimes you want you test to install APK before it starts and possibly fail if installation is not successful.
$ culebra -uU --install-apk "/path/to/file.apk" -o /path/to/test.py
Then the generated test will include a preconditions method like this one.
def preconditions(self):
if not super(CulebraTests, self).preconditions():
return False
if self.vc.installPackage("/path/to/file.apk") != 0:
return False
return True