android - Parameters to uiAutomator test class -
i new uiautomator. tried passing parameters method, run ignores passed it. wondering whether can pass arguments test class or test method in uiautomator?
you can send in parameters via command line:
adb shell insrument -e <name> <value> <package/runner>
you can access value using bundle available if override oncreatemethod
of instrumentationtestrunner.
public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); value = (string) savedinstancestate.get("name"); }
Comments
Post a Comment