How to rotate activity, I mean: screen orientation change using Espresso?

0
0

I have decided that one of the testing criteria for my application tests with Google’s Espresso is:

Test should maintain Activity state after screen orientation rotation

How do I rotate the screen when using Espresso?

I have tried the following Robotium code (Yes I placed Robotium code in my Espresso test so sue me)

solo.setActivityOrientation(solo.LANDSCAPE);
solo
.setActivityOrientation(solo.PORTRAIT);

but It crashes the application when I run it within my Espresso test.

Is there any way to do this?

Thanks in advance for any help

  • You must to post comments
Showing 0 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website