Запуск DumpRenderTree на устройстве Android

1

Я пытался запустить тест DumpRenderTree в Android (на моем Android-устройстве под управлением ICS), и я не могу понять, как его запустить. Документация очень маленькая, и только один найденный мной поток (близкий к моему вопросу) таков:

Как вы подталкиваете тесты инструментария Android к эмулятору/устройству?

Вот мой вывод ddms, когда я запускаю эту команду:

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)

Должен ли я запускать некоторые тесты, прежде чем запускать это? Любые указатели будут очень благодарны!

Теги:

1 ответ

0

Сложный способ показать дерево рендеринга - это about:debug.render.file в строку URL-адреса броузера Android.

Затем вы можете найти файл, сгенерированный на /mnt/sdcard/renderTree.txt.

Аналогично, about:debug.dom.file приводит к выводу дерева DOM.

  • 0
    К сожалению, они взяли это из нового WebView для 4.4

Ещё вопросы

Сообщество Overcoder
Наверх
Меню