简体   繁体   English

如何测试Robotium测试项目apk文件

[英]how to test robotium test project apk file

i am using robotium to create a test project. 我正在使用Robotium创建测试项目。 Suppose my app name is MyApp and test project name is MyAppTest.i am giving both MyApp.apk and MyAppTest.apk to a QA tester (not giving the source code of app and test project). 假设我的应用程序名称为MyApp,测试项目名称为MyAppTest.i,我同时将MyApp.apk和MyAppTest.apk都交给了质量检查测试人员(未提供应用程序和测试项目的源代码)。 As per my knowledge tester can run the testcase using these two apks with the help of command prompt.but i need to know whether there is any other tools or anything like that to run the testcases only with these two apks.please help me 据我所知,测试人员可以在命令提示符下使用这两个apk运行测试用例。但是我需要知道是否有其他工具或类似的东西仅可以通过这两个apk运行测试用例。请帮助我

If you are using Robotium with an apk and without the source code, the apk has to be unsigned and signed with the keystore of the user who would be testing it. 如果您将Robotium与apk一起使用且没有源代码,则必须对apk进行取消签名,并与将对其进行测试的用户的密钥库进行签名。 This link on Robotium's wiki explains about testing apks without source : http://code.google.com/p/robotium/wiki/RobotiumForAPKFiles Robotium Wiki上的此链接说明了有关无源测试apk的信息: http : //code.google.com/p/robotium/wiki/RobotiumForAPKFiles

re-sign.jar provides an easy drag & drop way to unsign the apk: http://www.troido.de/en/downloadslsmallgsoftware-a-driverslsmallg re-sign.jar提供了一种轻松的拖放方式来取消apk的签名: http : //www.troido.de/en/downloadslsmallgsoftware-a-driverslsmallg

For signing an unsigned apk refer to this blogpost : http://dimitar.me/how-to-sign-an-unsigned-android-package-apk-file/ 要签署未签名的APK,请参阅以下博客文章: http : //dimitar.me/how-to-sign-an-unsigned-android-package-apk-file/

I thinks this helps you , 我认为这对您有帮助,

  1. Install both MyApp & MyAppTest apk in the emulator 在模拟器中同时安装MyApp和MyAppTest apk
  2. Goto,Dev Tools -> Instrumentation -> (select your package name) The test project will start run. Goto,Dev Tools-> Instrumentation->(选择程序包名称)测试项目将开始运行。

if u wany do same in the device install developer tools APK.( i haven't tried that..) 如果您要在设备中执行相同的操作,请安装开发人员工具APK。(我没有尝试过。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM