如何测试Android应用程序;的UI使用猴 [英] How to test Android Application;s UI using Monkey

查看:129
本文介绍了如何测试Android应用程序;的UI使用猴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用来测试我的Andr​​oid应用程序。在那里,他们说,使用此命令,

I am trying to test my Android app using Monkey. There they say use this command,

$亚行外壳猴子-p your.package.name -v 500

在我的应用程序,我有作为travelceylon \\客户端软件包的名称,所以如果我给了命令:

In my app, I have package name as travelceylon\client so if I give the command as:

ADB -e外壳猴子-p travelceylon \\客户-v 1000年

...,它会显示这样的错误:

...it will show errors like this:

:Monkey: seed=0 count=1000
:AllowPackage: travelceylonclient
:IncludeCategory: android.intent.category.LAUNCHER
:IncludeCategory: android.intent.category.MONKEY
** No activities found to run, monkey aborted.

所以我在做什么错在这里?

So what I am doing wrong here?

推荐答案

您应该将包名称的部分用点分隔:

You should separate the parts of your package name with dots:

adb -e shell monkey -p travelceylon.client -v 1000

你可以在错误看到,它省略了 \\ 从包名称:

AllowPackage: travelceylonclient :IncludeCategory: 
                          ^ ???

这篇关于如何测试Android应用程序;的UI使用猴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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