安卓uiautomator的runTest错误没有找到班组长 [英] android uiautomator runtest error didn't find classs

查看:972
本文介绍了安卓uiautomator的runTest错误没有找到班组长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我tryied开始使用机器人uiautomation测试。

recent i tryied getting started with android uiautomation testing.

从开发者的网站我已经经历了几次,有一些问题,现在解决这些问题我有一个更大的问题我解决不了我自己的工作后,本教程...

The tutorial from the developer site i've worked through a few times and after having some problems and solving them now i have got a bigger issue i can't solve on my own...

我创建了一个项目,引进两个jar文件和建造一个java测试用例场景(一本教程。) 从那以后,我创建了一个uitest PROJEKT使用shell命令行。更新build.xml文件创建一个jar文件,并把它推到我的设备。

I created a project, imported the two jar files and builded a java testcase scenario (the one from the tutorial.) after that i created an uitest projekt with shell command line. updated the build.xml created a jar file and pushed it onto my device.

据好一切很好地后,这一点的工作。

As far as good everything worked nicely upon this point.

不过,试着运行我的测试用命令行: 亚行-s壳uiautomator的runTest DeviceUnlocker.jar -c cddDeviceUnlocker

But tryin to run my tests with the command line : adb -s shell uiautomator runtest DeviceUnlocker.jar -c c.d.d.DeviceUnlocker

我只得到了错误:

INSTRUMENTATION_RESULT:shortMsg = java.lang.RuntimeException的
INSTRUMENTATION_RESULT:longMsg =没有找到类cddDeviceUnlockingPseudo codeTEST的路径:/system/framework/android.test.runner.jar:/system/framework/uiautomator.jar :: /数据/本地的/ tmp / DeviceUnlocker的.jar

INSTRUMENTATION_RESULT: shortMsg = java.lang.RuntimeException
INSTRUMENTATION_RESULT: longMsg=Didn't find class "c.d.d.DeviceUnlockingPseudoCodeTest on Path: /system/framework/android.test.runner.jar: /system/framework/uiautomator.jar:: /data/local/tmp/DeviceUnlocker.jar

INSTRUMENTATION_ code:0

INSTRUMENTATION_CODE: 0

我已经googeling了几天,现在我已经发现了这个问题无解。 没有任何人有一个想法,我的问题?

i've been googeling for a few days now and i've found no solution for this problem. does anyone have an idea for my problem?

问候

推荐答案

没关系的最简单的方法是只创建在Eclipse中一个新的Andr​​oid的JUnit PROJEKT。

okay the easiest way is to only create inside eclipse a new android junit projekt.

我认为这是或多或少等于uiau​​tomator。 我想你可能具有相同的oportunities ...纠正我,如果我错了......

i think this is more or less equal to uiautomator. and i think you might have the same oportunities ... correct me if i'm wrong...

uiautomator仍没有运行......我也发现了一些错误,从机器人本身uibuild.xml

uiautomator is still not running... and i also found some bugs in the uibuild.xml from android itself

<目标名称=测试描述=运行测试>         !< - TODO:解决这个问题 - >         <不合格不支持启动从蚂蚁的测试,但消息= />

<target name="test" description="Runs tests"> <!-- todo: fix this --> <fail message="Launching tests from Ant not supported yet" />

     <exec executable="${adb}" failonerror="true">
        <arg line="${adb.device.arg}" />
        <arg value="shell" />
        <arg value="uiautomator" />
        <arg value="runtest" />
        <arg value="${out.filename}" />
        <arg value="-e" />
        <arg value="class" />
        <arg value="com.android.uiautomator.samples.skeleton.DemoTestCase" />
    </exec>
</target>`

感谢您的帮助。对我来说uiautomator不再是别无选择。 关于

thanks for your help. for me uiautomator is no option anymore. regards

这篇关于安卓uiautomator的runTest错误没有找到班组长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆