Any idea? I really need your help to clarify this issue. Thanks in advance~~
On Nov 26, 5:30 pm, JC <[email protected]> wrote: > Hi all, > > I'm run defaultCTStest plan on emulator and my device but it always > gets failure on those two test cases of CtsTextTestCases test package: > (1).android.text.method.cts.BaseKeyListenerTest - testBackspace > (2).android.text.method.cts.BaseKeyListenerTest - testPressKey > > Below are error log information from DDMS: > (1). > android.text.method.cts.BaseKeyListenerTest#testBackspace...(fail) > junit.framework.ComparisonFailure: expected:<1...> but was:<...> at > android.text.method.cts.BaseKeyListenerTest.testBackspace(BaseKeyListenerTe > st.java: > 131) > at > android.text.method.cts.BaseKeyListenerTest.testBackspace(BaseKeyListenerTe > st.java: > 131) > at java.lang.reflect.Method.invokeNative(Native Method) > at > android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java : > 204) > at > android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java: > 194) > at > android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentati > onTestCase2.java: > 186) > at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) > at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) > at > android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.ja > va: > 520) > at android.app.Instrumentation > $InstrumentationThread.run(Instrumentation.java:1447) > at > android.text.method.cts.BaseKeyListenerTest.testBackspace(BaseKeyListenerTe > st.java: > 131) > at java.lang.reflect.Method.invokeNative(Native Method) > at > android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java : > 204) > at > android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java: > 194) > at > android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentati > onTestCase2.java: > 186) > at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) > at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) > at > android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.ja > va: > 520) > at android.app.Instrumentation > $InstrumentationThread.run(Instrumentation.java:1447) > > (2). > android.text.method.cts.BaseKeyListenerTest#testPressKey...(fail) > junit.framework.ComparisonFailure: expected:<1...> but was:<...> at > android.text.method.cts.BaseKeyListenerTest.testPressKey(BaseKeyListenerTes > t.java: > 223) > at > android.text.method.cts.BaseKeyListenerTest.testPressKey(BaseKeyListenerTes > t.java: > 223) > at java.lang.reflect.Method.invokeNative(Native Method) > at > android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java : > 204) > at > android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java: > 194) > at > android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentati > onTestCase2.java: > 186) > at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) > at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) > at > android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.ja > va: > 520) > at android.app.Instrumentation > $InstrumentationThread.run(Instrumentation.java:1447) > at > android.text.method.cts.BaseKeyListenerTest.testPressKey(BaseKeyListenerTes > t.java: > 223) > at java.lang.reflect.Method.invokeNative(Native Method) > at > android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java : > 204) > at > android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java: > 194) > at > android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentati > onTestCase2.java: > 186) > at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) > at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) > at > android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.ja > va: > 520) > at android.app.Instrumentation > $InstrumentationThread.run(Instrumentation.java:1447) > > On first test case, I found when it ran on line 131 > assertEquals("1456", mTextView.getText().toString()) and the value of > mTextView.getText().toString() is equal to "456" not "1456" on > BaseKeyListenerTest class. But it could be passed sometimes. > The same situation could be found on second test case. > > JC -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

