In Robotium :- I am writing automation scripts using Solo class. Now i have to verify the images in my application.
For texts we can use Assert.assertTrue(solo.searchText("rtf"));
For images, is there any command in Robotium Solo Class?
In Robotium :- I am writing automation scripts using Solo class. Now i have to verify the images in my application.
For texts we can use Assert.assertTrue(solo.searchText("rtf"));
For images, is there any command in Robotium Solo Class?
Not really. Most suggested way to test (its meaning may vary) ImageViews is given by:
Also, you may want to have a look at this discussion on some other method to visually check the image.
You can try this:
assertTrue(solo.getCurrentActivity().getResources().getDrawable(R.drawable.logo).isVisible());
For more: https://stackoverflow.com/a/26114862