2012-05-23 3 views
1

안드로이드에서 ICS를 실행하는 안드로이드 장치에서 DumpRenderTree 테스트를 실행하려고 시도했지만 실행 방법을 알아 내지 못했습니다.안드로이드 장치에서 DumpRenderTree 실행하기

05-23 11:59:07.118: INFO/TestRunner(10253): started: warning(junit.framework.TestSuite$1) 
05-23 11:59:07.118: INFO/TestRunner(10253): failed: warning(junit.framework.TestSuite$1) 
05-23 11:59:07.118: INFO/TestRunner(10253): ----- begin exception ----- 
05-23 11:59:07.118: INFO/TestRunner(10253): junit.framework.AssertionFailedError: No tests found in com.android.dumprendertree.LayoutTestsAutoTest 
05-23 11:59:07.118: INFO/TestRunner(10253):  at junit.framework.Assert.fail(Assert.java:47) 
05-23 11:59:07.118: INFO/TestRunner(10253):  at junit.framework.TestSuite$1.runTest(TestSuite.java:263) 
05-23 11:59:07.118: INFO/TestRunner(10253):  at junit.framework.TestCase.runBare(TestCase.java:127) 
05-23 11:59:07.118: INFO/TestRunner(10253):  at junit.framework.TestResult$1.protect(TestResult.java:106) 
05-23 11:59:07.118: INFO/TestRunner(10253):  at junit.framework.TestResult.runProtected(TestResult.java:124) 
05-23 11:59:07.118: INFO/TestRunner(10253):  at junit.framework.TestResult.run(TestResult.java:109) 
05-23 11:59:07.118: INFO/TestRunner(10253):  at junit.framework.TestCase.run(TestCase.java:118) 
05-23 11:59:07.118: INFO/TestRunner(10253):  at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) 
05-23 11:59:07.118: INFO/TestRunner(10253):  at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) 
05-23 11:59:07.118: INFO/TestRunner(10253):  at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:537) 
05-23 11:59:07.118: INFO/TestRunner(10253):  at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551) 
05-23 11:59:07.118: INFO/TestRunner(10253): ----- end exception ----- 
05-23 11:59:07.126: INFO/TestRunner(10253): finished: warning(junit.framework.TestSuite$1) 
05-23 11:59:07.126: INFO/TestRunner(10253): started: warning(junit.framework.TestSuite$1) 
05-23 11:59:07.126: INFO/TestRunner(10253): failed: warning(junit.framework.TestSuite$1) 
05-23 11:59:07.126: INFO/TestRunner(10253): ----- begin exception ----- 
05-23 11:59:07.126: INFO/TestRunner(10253): junit.framework.AssertionFailedError: No tests found in com.android.dumprendertree.LoadTestsAutoTest 
05-23 11:59:07.126: INFO/TestRunner(10253):  at junit.framework.Assert.fail(Assert.java:47) 
05-23 11:59:07.126: INFO/TestRunner(10253):  at junit.framework.TestSuite$1.runTest(TestSuite.java:263) 
05-23 11:59:07.126: INFO/TestRunner(10253):  at junit.framework.TestCase.runBare(TestCase.java:127) 
05-23 11:59:07.126: INFO/TestRunner(10253):  at junit.framework.TestResult$1.protect(TestResult.java:106) 
05-23 11:59:07.126: INFO/TestRunner(10253):  at junit.framework.TestResult.runProtected(TestResult.java:124) 
05-23 11:59:07.126: INFO/TestRunner(10253):  at junit.framework.TestResult.run(TestResult.java:109) 
05-23 11:59:07.126: INFO/TestRunner(10253):  at junit.framework.TestCase.run(TestCase.java:118) 
05-23 11:59:07.126: INFO/TestRunner(10253):  at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) 
05-23 11:59:07.126: INFO/TestRunner(10253):  at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) 
05-23 11:59:07.126: INFO/TestRunner(10253):  at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:537) 
05-23 11:59:07.126: INFO/TestRunner(10253):  at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551) 
05-23 11:59:07.126: INFO/TestRunner(10253): ----- end exception ----- 
05-23 11:59:07.126: INFO/TestRunner(10253): finished: warning(junit.framework.TestSuite$1) 

:이 명령을 실행할 때

다음

How do you push Android Instrumentation Tests to Emulator/Device?

내 DDM의 출력입니다 : 아주 작은 문서 및 I (즉 내 질문에 가까운) 볼 수있는 유일한 다른 스레드가이입니다 이걸 실행하기 전에 몇 가지 테스트를해야합니까? 모든 포인터가 크게 감사하겠습니다!

답변

0

렌더 트리를 표시하는 까다로운 방법은 about:debug.render.file을 안드로이드 브라우저의 URL 표시 줄에 입력하는 것입니다.

/mnt/sdcard/renderTree.txt에서 생성 된 파일을 찾을 수 있습니다.

마찬가지로, about:debug.dom.file은 DOM 트리 출력을 생성합니다.

+0

슬프게도 4.4의 새로운 WebView에서이 기능을 제거했습니다. –

관련 문제