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

c# - OpenXML hanging while writing elements -

php - regexp cyrillic filename not matches -

sql - Select Query has unexpected multiple records (MS Access) -