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?

reference

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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -