Stefan Kuhn
unread,Jul 9, 2013, 8:08:30 AM7/9/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to robotium-...@googlegroups.com
Hello,
I'm currently stuck with a similar problem. I'm trying to take screenshots while the Calculator example is running on my Android-Phone. But I don't get any screenshots saved to my sdcard. I have added "android.permission.WRITE_EXTERNAL_STORAGE" to the AUT and the JUnit test job, but to no avail.
I have also tried: adb pull /sdcard/Robotium-Screenshots/ C:\Temp
But the tool keeps telling me: remote object '/sdcard/Robotium-Screenshots/' does not exist
I must admit that I'm new to Android and Robotium, so maybe I'm doing something wrong. Here is the code I've changed from the Calculator-Example:
public void testDisplayBlackBox() {
//
solo.takeScreenshot("01_start.png");
// Enter 10 in first edit-field
solo.enterText(0, "10");
// Enter 20 in first edit-field
solo.enterText(1, "20");
//
solo.takeScreenshot("02_before_click.png");
// Click on Multiply button
solo.clickOnButton("Multiply");
// Verify that resultant of 10 x 20
assertTrue(solo.searchText("200"));
//
solo.takeScreenshot("03_result.png");
}