不能作为调试机器人junit测试运行 [英] cannot run as debug robotium junit test

查看:286
本文介绍了不能作为调试机器人junit测试运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想这是一个重复的我可以运行Robotium测试但是不能调试它,但没有有效的答案。



我有一个可以用robotium测试的应用程序。 (运行为Android Junit测试测试运行正常)
如果我尝试调试作为Android Junit测试,应用程序不启动,eclipse似乎被卡住启动测试。



你可以告诉我为了在调试模式下运行测试的步骤(我想调试测试而不是应用程序)?

解决方案

所以有两个要求让它工作:
1.你需要在工作空间中设置AUT(应用程序测试)
2. AUT必须可调试= true(清单文件)



我的错误是,因为我只想调试测试,我不认为我也需要AUT项目。


I guess this is a duplicate with I can run Robotium test but cannot debug it but there is no valid answer for it.

I have a application that I can test with robotium. (Run as Android Junit Test the test runs fine) If I try Debug As Android Junit Test, the application does not start, eclipse appears to be stuck launching the tests.

Can you tell me the steps in order to run my test in debug mode (I want to debug the test, not the app)?

解决方案

So there is two requirement to get this to work: 1. you need to have the AUT (App Under Test) setup in your workspace 2. the AUT must be debuggable=true (manifest file)

my mistake was that because I wanted to debug the test only I did not think that I needed the AUT project also.

这篇关于不能作为调试机器人junit测试运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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