testing-samples
testing-samples copied to clipboard
noway to get UiDevice out testcase?
I notice UiDevice.getInstance() maked as "Deprecated", so how can I get UiDevice out test case Instrumentation? we want to implement our automate testing case , not using current testing framework. I googled a lot , thanks !
I notice UiDevice.getInstance() maked as "Deprecated", so how can I get UiDevice out test case Instrumentation? we want to implement our automate testing case , not using current testing framework. I googled a lot , thanks !
You can use it like this:
UiDevice mDevice = UiDevice.getInstance(getInstrumentation())