首页 新闻 搜索 专区 学院

robotium 问题Instrumentation

0
[待解决问题]

ble@able  ~  Adb shell am instrument  -r -e class com.test.rec.TestCaseRecorder#testRecord -w com.test.tester/com.tester.TestRunner
INSTRUMENTATION_STATUS: numtests=1
INSTRUMENTATION_STATUS: stream=
com.test.rec.TestCaseRecorder:
INSTRUMENTATION_STATUS: id=InstrumentationTestRunner
INSTRUMENTATION_STATUS: test=testRecord
INSTRUMENTATION_STATUS: class=com.test.rec.TestCaseRecorder
INSTRUMENTATION_STATUS: current=1
INSTRUMENTATION_STATUS_CODE: 1
INSTRUMENTATION_STATUS: numtests=1
INSTRUMENTATION_STATUS: stream=
Error in testRecord:
java.lang.VerifyError: Verifier rejected class com.robotium.solo.ExtSolo: android.webkit.WebView com.robotium.solo.ExtSolo.getBestWebView() failed to verify: android.webkit.WebView com.robotium.solo.ExtSolo.getBestWebView(): [0x8] 'this' argument 'Reference: com.robotium.solo.ViewFetcher' not instance of 'Reference: com.robotium.solo.ViewFetcher'
boolean com.robotium.solo.ExtSolo.isViewSufficientlyShown(android.view.View) failed to verify: boolean com.robotium.solo.ExtSolo.isViewSufficientlyShown(android.view.View): [0x4] 'this' argument 'Reference: com.robotium.solo.ViewFetcher' not instance of 'Reference: com.robotium.solo.ViewFetcher' (declaration of 'com.robotium.solo.ExtSolo' appears in /data/app/com.testin.itestin.tester-1/base.apk)
at com.testin.itestin.TestCase.setUp(TestCase.java:83)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:198)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:183)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:560)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1977)

INSTRUMENTATION_STATUS: id=InstrumentationTestRunner
INSTRUMENTATION_STATUS: test=testRecord
INSTRUMENTATION_STATUS: class="com".testin.itestin.rec.TestCaseRecorder
INSTRUMENTATION_STATUS: stack=java.lang.VerifyError: Verifier rejected class com.robotium.solo.ExtSolo: android.webkit.WebView com.robotium.solo.ExtSolo.getBestWebView() failed to verify: android.webkit.WebView com.robotium.solo.ExtSolo.getBestWebView(): [0x8] 'this' argument 'Reference: com.robotium.solo.ViewFetcher' not instance of 'Reference: com.robotium.solo.ViewFetcher'
boolean com.robotium.solo.ExtSolo.isViewSufficientlyShown(android.view.View) failed to verify: boolean com.robotium.solo.ExtSolo.isViewSufficientlyShown(android.view.View): [0x4] 'this' argument 'Reference: com.robotium.solo.ViewFetcher' not instance of 'Reference: com.robotium.solo.ViewFetcher' (declaration of 'com.robotium.solo.ExtSolo' appears in /data/app/com.testin.itestin.tester-1/base.apk)
at com.testin.itestin.TestCase.setUp(TestCase.java:83)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:198)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:183)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:560)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1977)

INSTRUMENTATION_STATUS: current=1
INSTRUMENTATION_STATUS_CODE: -1
INSTRUMENTATION_RESULT: stream=
Test results for TestRunner=.E
Time: 120.133

FAILURES!!!
Tests run: 1, Failures: 0, Errors: 1

 

 

18:36:44.724 I/TrafficMonitor( 1329): count:788,rx_sum:3,tx_sum:15,rxBytes:182,during_ms:2002,rx_speed:90.90909090909092,tx_speed:355.6443556443557,rto:0.2
10-17 18:36:44.876 E/WifiConfigManager( 1329): updateConfiguration freq=2472 BSSID=74:3e:2b:2a:92:88 RSSI=-57 "testin"WPA_PSK
10-17 18:36:45.164 I/MQoS ( 1329): onSignal: mSubId=0,currDataSubID=0
10-17 18:36:45.164 I/MQoS ( 1329): received cell-signal:5
10-17 18:36:45.164 I/SendBroadcastPermission( 1329): action:android.intent.action.SIG_STR, mPermissionType:0
10-17 18:36:45.730 I/TrafficMonitor( 1329): update:rxPkts:2,txPkts:10,rxBytes:277,txBytes:432
10-17 18:36:45.730 I/TrafficMonitor( 1329): start expired. level:-1
10-17 18:36:45.730 I/TrafficMonitor( 1329): gettimer:interval=2000
10-17 18:36:45.736 E/ServiceManager( 488): try to find service failed, not allowed access from isolated processes.
10-17 18:36:45.736 I/ServiceManager(26881): Waiting for service SurfaceFlinger...
10-17 18:36:46.737 E/ServiceManager( 488): try to find service failed, not allowed access from isolated processes.
10-17 18:36:46.737 I/ServiceManager(26881): Waiting for service SurfaceFlinger...
10-17 18:36:47.694 E/REC-1017.6(26643): RECEIVE CMD: viewfetcher with args.
10-17 18:36:47.694 E/REC-1017.6(26643): An error occurred with the command: viewfetcher
10-17 18:36:47.694 I/REC-1017.6(26643): extsolo = null,testcase = testRecord(com.testin.itestin.rec.TestCaseRecorder)
10-17 18:36:47.694 I/art (26643): Rejecting re-init on previously-failed class java.lang.Class<com.robotium.solo.ExtSolo>: java.lang.VerifyError: Verifier rejected class com.robotium.solo.ExtSolo: android.webkit.WebView com.robotium.solo.ExtSolo.getBestWebView() failed to verify: android.webkit.WebView com.robotium.solo.ExtSolo.getBestWebView(): [0x8] 'this' argument 'Reference: com.robotium.solo.ViewFetcher' not instance of 'Reference: com.robotium.solo.ViewFetcher'
10-17 18:36:47.694 I/art (26643): boolean com.robotium.solo.ExtSolo.isViewSufficientlyShown(android.view.View) failed to verify: boolean com.robotium.solo.ExtSolo.isViewSufficientlyShown(android.view.View): [0x4] 'this' argument 'Reference: com.robotium.solo.ViewFetcher' not instance of 'Reference: com.robotium.solo.ViewFetcher' (declaration of 'com.robotium.solo.ExtSolo' appears in /data/app/com.testin.itestin.tester-1/base.apk)
10-17 18:36:47.694 I/art (26643): at void com.testin.itestin.fetcher.ViewServer$ViewServerWorker.run() (ViewServer.java:332)
10-17 18:36:47.694 I/art (26643): at java.lang.Object java.util.concurrent.Executors$RunnableAdapter.call() (Executors.java:428)
10-17 18:36:47.695 I/art (26643): at void java.util.concurrent.FutureTask.run() (FutureTask.java:237)
10-17 18:36:47.695 I/art (26643): at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1133)
10-17 18:36:47.695 I/art (26643): at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:607)
10-17 18:36:47.695 I/art (26643): at void java.lang.Thread.run() (Thread.java:776)
10-17 18:36:47.695 I/art (26643):
10-17 18:36:47.730 I/TrafficMonitor( 1329): update:rxPkts:0,txPkts:6,rxBytes:0,txBytes:240
10-17 18:36:47.730 I/TrafficMonitor( 1329): start expired. level:-1
10-17 18:36:47.731 I/TrafficMonitor( 1329): gettimer:interval=2000
10-17 18:36:47.738 E/ServiceManager( 488): try to find service failed, not allowed access from isolated processes.
10-17 18:36:47.738 I/ServiceManager(26881): Waiting for service SurfaceFlinger...
10-17 18:36:47.885 E/WifiConfigManager( 1329): updateConfiguration freq=2472 BSSID=74:3e:2b:2a:92:88 RSSI=-56 "testin"WPA_PSK
10-17 18:36:48.739 E/ServiceManager( 488): try to find service failed, not allowed access from isolated processes.
10-17 18:36:48.739 I/ServiceManager(26881): Waiting for service SurfaceFlinger...
10-17 18:36:49.030 W/KeyguardUpdateMonitor( 1786): ACTION_BATTERY_CHANGED AMP: 0; Volt: 0
10-17 18:36:49.033 W/KeyguardUpdateMonitor( 1786): ChargingSpeed Wattage: -1 ST: 5000000 --> 7500000
10-17 18:36:49.033 I/KgBattery( 1786): BatteryInfo updated: 5lPC-1

亲福的主页 亲福 | 初学一级 | 园豆:40
提问于:2017-10-16 17:44
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册