使用athrun实现ios自动化

上一篇 / 下一篇  2013-09-29 20:50:56 / 个人分类:移动端

1、首先需要导入project "InstrumentDriver"
2、新建一个java project,build path中,在Project中add "InstrumentDriver"项目;Lib中添加junit-4.8.1.jar,点完成
3、src目录下,新建aturun.properties文件,内容为:
target_app=/Users/jim/Public/workspace/athrun_ios/InstrumentDriver/demo_app/build/Debug-iphonesimulator/TaoTest.app
isRunSimulator=true
udid=923fad72b8e6d395405c563d495f9928e7faf703
isDebug = true
timeout = 60

其中target_app为待测试应用。
isRunSimulator=true是用模拟器,如果要用真机,设置为false,且udid设置为设备id。

然后编写测试类,run as junit执行测试


TAG:

 

评分:0

我来说两句

我的栏目

日历

« 2024-05-15  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 32029
  • 日志数: 22
  • 建立时间: 2013-08-19
  • 更新时间: 2014-04-01

RSS订阅

Open Toolbar