android-junit-report.jar

robotium+ant+android-junit-report

独自空忆成欢 提交于 2019-11-28 11:37:42
根据此链接的步骤为现有的robotium项目自动生成ant的build.xml文件:http://xiaomaozi.blog.51cto.com/925779/932284/ 根据此链接的步骤将android-junit-report.jar导入项目并根据链接上的内容操作:http://www.xuebuyuan.com/2148574.html http://www.tuicool.com/articles/Rzayie 将如下代码加入到build.xml文件中去: < target name = "fetch-test-report" > < xpath input = "${tested.project.dir}/AndroidManifest.xml" expression = "/manifest/instrumentation/ @android :targetPackage" output = "tested.package" /> < echo > Downloading XML test report... </ echo > < mkdir dir = "${reports.dir}" /> < exec executable = "${adb}" failonerror = "true" > < arg line = "${adb.device.arg}"