-
Notifications
You must be signed in to change notification settings - Fork 347
Test Cookbook
Diego Torres Milano edited this page Dec 15, 2015
·
7 revisions
Requires version 11.0.7 or greater
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