BaseballCardTracker / bbct-android

BBCT
GNU General Public License v3.0
7 stars 17 forks source link

BaseballCardListWithDataTest.testOnListItemClick() fails #203

Open ghost opened 10 years ago

ghost commented 10 years ago
<?xml version="1.0" encoding="UTF-8"?>
<testrun name="BaseballCardListWithDataTest.testOnListItemClick" project="bbct-common-tests" tests="1" started="1" failures="1" errors="0" ignored="0">
  <testsuite name="AVD_for_Nexus_S_by_Google [emulator-5554]" time="9.287">
    <testsuite name="bbct.android.common.activity.test.BaseballCardListWithDataTest" time="9.286">
      <testcase name="testOnListItemClick " classname="bbct.android.common.activity.test.BaseballCardListWithDataTest" time="9.286">
        <failure>junit.framework.AssertionFailedError
at bbct.android.common.test.BBCTTestUtil.clickCardDetailsDone(BBCTTestUtil.java:220)
at bbct.android.common.activity.test.BaseballCardListWithDataTest.testOnListItemClick(BaseballCardListWithDataTest.java:266)
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)

</failure>
      </testcase>
    </testsuite>
  </testsuite>
</testrun>
codeguru42 commented 10 years ago

For the AVD configuration you use, do you have to scroll down to see the "Save" and "Done" buttons in BaseballCardDetails?

ghost commented 10 years ago

The "Save" and "Done" buttons are visible without having to scroll down.

codeguru42 commented 10 years ago

I am unable to duplicate this result. This test passes for me on both the emulator and on a device.

@tmatek Do you get this same result every time you run the test suite? From my experience some tests behave differently from one test run to the next.

codeguru42 commented 10 years ago

@tmatek Can you run the test suite against the current version to see if this test still fails for you?