You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem? 1. create an activity with a button "Play"
2. create a test that does solo.clickOnButton("Play") 3. What is the expected output? What do you see instead? I think I have done all correct, but I see an error saying that the button does not exists.
I have followed instructions on FAQ for these type of problems, but the error remains. What version of the product are you using? On what operating system? I am using robotium-4.0, android version 4.1.1.4 and sdk platform 7 (android 2.1) Please provide any additional information below. I have added a test PlayerScreenTest that uses standard Android utilities and it runs. The test PlayerScreenRobotiumTest uses Robotium and fails. I have commented and uncommented the launcher. I don't undestand what I'm doing wrong...
Sorry, but when I have updated the test and switched to robotium-3.4.1 the test has started to run. Retrying to use robotium-4.0 the test continues to run.
So discard this issue. I do not understand what I was doing wrong a part that the test now is:
public class PlayerScreenRobotiumTest extends ActivityInstrumentationTestCase2 {
private Solo solo;
public PlayerScreenRobotiumTest() {
super("androidample.mobile", PlayerScreen.class);
}
public void testThatPressingPlayButtonShouldChangeItsTextToStop_withRobotium() {
solo.clickOnButton("Play");
Button actionButton = (Button) solo.getCurrentActivity().findViewById(R.id.action);
assertEquals("Stop", actionButton.getText());
}
@Override
protected void setUp() throws Exception {
super.setUp();
solo = new Solo(getInstrumentation(), getActivity());
}
public void tearDown() throws Exception {
solo.finishOpenedActivities();
}
From rsimoni....@gmail.com on April 05, 2013 02:30:50
What steps will reproduce the problem? 1. create an activity with a button "Play"
2. create a test that does solo.clickOnButton("Play") 3. What is the expected output? What do you see instead? I think I have done all correct, but I see an error saying that the button does not exists.
I have followed instructions on FAQ for these type of problems, but the error remains. What version of the product are you using? On what operating system? I am using robotium-4.0, android version 4.1.1.4 and sdk platform 7 (android 2.1) Please provide any additional information below. I have added a test PlayerScreenTest that uses standard Android utilities and it runs. The test PlayerScreenRobotiumTest uses Robotium and fails. I have commented and uncommented the launcher. I don't undestand what I'm doing wrong...
Attachment: androidample.zip
Original issue: http://code.google.com/p/robotium/issues/detail?id=429
The text was updated successfully, but these errors were encountered: