对于Android Junit测试用例,在src中添加包时,在Gen中我得到了package.test.test?

发布于 2024-12-18 19:47:36 字数 514 浏览 2 评论 0原文

测试应用程序 - 需要测试的原始应用程序..

示例应用程序 - 我正在创建它来调用测试应用程序包..

  1. 我有 .apk (处于测试版本,即我们应用程序的 apk)没有去Android Market。我可以使用robotium来测试测试环境apk还是仅使用android market apk?我没有源代码。

  2. 创建应用程序时,我需要选择 android 项目还是 junit 测试用例吗?

  3. 在 Eclipse 中创建项目时,当我为示例应用程序添加包时(从该应用程序中我将调用我的测试应用程序的包),在 gen [生成的 java 文件] 文件夹中,我得到的包名称为 [package .测试.测试]。这是正确的行为吗?

  4. 我的测试应用程序有 debug.keystore。我已通过此调试导入,通过首选项 à android à 构建路径导入..所以我的测试应用程序和示例应用程序都具有相同的签名?

问候,

钱德拉

Test app - Original App which need to be tested..

Sample app - which I am creating to call the package of test app..

  1. I am having .apk (which is in beta version i.e it is our application's apk) which did not go to Android Market.can i use robotium for testing the test environment apk or only the android market apk? I dont have the source code.

  2. While creating app, do I need to go for android project or junit test case?

  3. While creating project in eclipse, when I add package for my sample app (from that app I will call my test app’s package), in the gen [Generated java files] folder I am getting the name of the package is [package.test.test]. Is it right behavior?

  4. I have debug.keystore for my test app. I have imported through this debug,keystor through preferences à android à Build path..So my test app and sample app both having same signature?

Regards,

Chandra

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

裸钻 2024-12-25 19:47:36

您需要实际阅读 Robotium 常见问题解答和设置文档。他们将所有内容都非常清晰地展示出来,并且可以在一小时内轻松启动并运行。
Robotium 主页面
Robotium 维基和教程

You need to actually read the Robotium FAQ and Setup documents. They lay out everything very clearly and make it easy to get up and running within an hour.
Main Robotium Page
Robotium Wiki and Tutorials

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文