Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smoke test fails #614

Open
andybalaam opened this issue Mar 3, 2019 · 1 comment
Open

Smoke test fails #614

andybalaam opened this issue Mar 3, 2019 · 1 comment

Comments

@andybalaam
Copy link
Owner

The test `test_Smoke" fails for me with the latest code.

$ adb shell am instrument -w -r   -e debug false -e class 'rabbitescape.ui.android.SmokeTest' net.artificialworlds.rabbitescapefree.test/android.test.InstrumentationTestRunner
Client not ready yet..
Started running tests

junit.framework.ComparisonFailure: expected:<[Medium]> but was:<[${number} Placement]>
at rabbitescape.ui.android.AndroidUiDriver.clickMenuItem(AndroidUiDriver.java:97)
at rabbitescape.ui.android.SmokeTest.test_Smoke(SmokeTest.java:31)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1584)
@andybalaam
Copy link
Owner Author

It complains that the menu item in position 1 is not "Medium", but "Placement". When I watch the test I see that the menu item is indeed "Medium", so I suspect we have a reference to the wrong Activity or ListView somehow,

@andybalaam andybalaam mentioned this issue Mar 4, 2019
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant