1

I'm using espresso lib for android instrumentation tests. I also need to run precondition before tests (create account on web server, maybe some other data in future.)

I realized, that instrumentation test code actually runs on phone's JVM. I cannot run preconditions from phone, because of I'm planning to use jar-bundled test custom test framework where that precondition already implemented.

I there a way to run preconditions on PC JVM in android instrumentation test?

  • 1
    You could create an api endpoint which runs the preconditions and call it from the instrumentation test. – jeprubio Mar 22 '20 at 07:32

0 Answers0