用脚本启动instruments脚本

上一篇 / 下一篇  2014-04-01 10:54:44 / 个人分类:移动端

使用模拟器跑
instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate "/Users/jimzhang/Library/Application Support/iPhone Simulator/7.1/Applications/C6811F31-DBE2-40C0-8AB7-29C9F38EAC03/im4ps-teacher.app" -e UIASCRIPT. /Users/jimzhang/mobileautotest/testIm4ps/testAxtTeacher.js


使用真机跑
instruments -w e3864fb6f17ff47be8c01e001fe861c63ee88c06 -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate "/Users/jimzhang/Library/Application Support/iPhone Simulator/7.1/Applications/C6811F31-DBE2-40C0-8AB7-29C9F38EAC03/im4ps-teacher.app" -e UIASCRIPT. /Users/jimzhang/mobileautotest/testIm4ps/testAxtTeacher.js

-w为真机id,-e UIASCRIPT为要执行的脚本

TAG:

 

评分:0

我来说两句

我的栏目

日历

« 2024-04-25  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

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

RSS订阅

Open Toolbar