




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Appium在物理计算机上运行IOS实例时需要注意的事项:包括python和Java执行日志以及一些密钥代码最近研究了appium对IOS的自动化测试,发现了在实际机器上运行appium提供的开源的例子,遇到了几个block,总结了这个拉面高手和在网上搜索的帖子。app ium在模拟器上运行,只需注意:1:app=path查找编译的app所在的位置(例如,Release-iphonesimulator这是模拟器编译的文件夹)final file appdir=new file(system . get property( user . dir )、./././apps/testapp/buil
2、d/release-iphone simulator );Final file app=new file (appdir,“testapp . app”);capabilities . set capabilities( app ,app . getabsolutpath();app ium真实机器运行:运行1:时,必须在实际机器上安装应用程序运行23360时,无法重新打开instrument从3:命令行启动时,参数写入无效,如以下示例所示:capabilities . set capabilities( app , io . app ium . testapp );appium-u64a 9
3、8 a 2 cc F2 cddd 1c-appio . appium。不是那条长路径,在-u参数后,物理计算机的uuid可以打开xcode并在windows下的organise中找到,通常在将ipad连接到MAC时,会显示绿点,以便在物理计算机上运行python实例:kingsons-macbook : study kingson $ app ium-u 1a 601 F5 CD 791 bcfc 81 CD 69 ba 3-appcom . telen av software . doudouyinfo : welcome to app ium v 0 . 11 . 4(rev b04 de
4、 CDC 88e 9 bfda 1d04 a 036)info : app ium rest http interface listener started on 0 . 0 . 033369723Info-socket.io starteddebug : app ium request initiated at/wd/hub/sessiondebug : request received with params : session id : null, desired capabilities : device Info : app is an IOs bundle,will attempt
5、 to run as pre-existinginfo 3360 creating new app ium session a 36 fdf 63-9 b22-48 a4-bb01-4b 44 DDB 54 AFFFinfo : remaining any remaining instruments socketsinfo : clean ud up instruments socket/tmp/instruments _ sockinfo : cleaning up any trace dirsInfo: No tracedirs to clean upinfo : localisable
6、. strings is not currently supported when using real : not setting device type since were connected to a deviceinfo : starting IOs device log capture via idea syslogdebug : real device specified but no IPA,assuming bundle id is on deviceDebug: Creating instrumentsinfo 3360 instruments i
7、s :/applications/xcode . app/contents/developer/usr/bin/instrumentsinfo :inst serverinstruments socket server started at/tmp/instruments _ sockinfo : attempting to run app on real device with udid 1a 601 F5 CD 791 BCF c81 CD 69 ba 3info : spawning instruments with command :/Applications/xcode . app/
8、contents/developer/usr/bin/instrumentsinfo : and extra without-delay env : info : and launch time out : 9000 msinfo 3360inststderr2013-12-10 1033604336622.536 instruments53424333690507connection to the remote 3360inststderr2013-12-10 1033604336622.539 instruments53424333690507recording
9、cancelled : at llAborting runinfo :INST STDERRInstruments trace error 3360 error domain=com . apple . Instruments code=1 error starting recordsAborting runinstruments trace error : failed to start :instserverinstruments exited with code 253error : instruments did not launch successfully,f
10、ailing sessioninfo : cleaning up app ium sessionerror : failed to start an app ium session,err was : error : instruments did not launch successfully-please check your app pathsinfo : responding to client with error : status :33,Value : message : a new sessing(original error : instruments did not lau
11、nch successfully-please check your app pat Hs or bundle ids and try again),“orig vaapost/wd/hub/会话500 6015ms-342b 我的代码片段部分: pythonclass testsequencections(unit test . test case):Def setUp(self):# set up appiumapp= com . telenav software . doudoudoudouy # app=OS . path . join(OS . path . dirname(_ _
12、file _),#././apps/DDY/build/,# DouDouY.app)#app=os.path.abspath(app)Self.driver=webdriver。Remote(command _ executor=3358127 . 0 . 13360123/wd/hub,Desired_capabilities=BrowserName: iOS、Device: iPhone Simulator、平台: MAC、: 7.0版,App: app) 1.启动Appium时保证Real设备的UDID和应用程序的绑定ID正确确保应用程序可以安装在物理机上。3.安装后断开与Xcode的
13、连接4.确保Instruments工具未在Mac上启动。以下是JAVA true machine running log:dev exus-IMAC 3360 build dev exu $app ium-u 3d 2 CAD 7288 a64 a 5445 aa 98 a2 cc F2 cddd 1c-app io . app iuminfo : welcome to app ium v 1 . 1 . 0(rev e 433 BBC 313111 fdb 7724 E1 ce 692 BCB 3217)info : app ium rest http interface listener
14、started on 0 . 0 . 033369723Info: socket.io startedInfo :非预设伺服器args : app : io.app ium , udid : 3d 2 CAD 7288 a64a 5445 aa 98 a2 CCCSdebug : app ium request initiated at/wd/hub/sessiondebug : request received with params : desired capabilities : platform version : 7.1 ,7.1Info : app is an IOs bundle
15、,will attempt to run as pre-existinginfo 3360 creating new app ium session 2 BCD 619 B- b7f B- 45f 5-b20c-79 caf 8 CD 24finfo : remaining any remaining instruments socketsinfo : clean ud up instruments socket/tmp/instruments _ sockinfo : cleaning up any trace dirsInfo: No tracedirs to clean upInfo: Set
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 医疗设备采购及安装调试合同
- 农村区域农业合作项目协议
- 现代农业综合发展区域合作协议
- 春天来了小学作文300字13篇范文
- 软件测试及质量控制合作协议
- 车队运营与管理服务协议
- 二零二五年度玻璃隔断安全性能检测与安装合同
- 2025年高科技产业补偿贸易与知识产权保护协议
- 2025版ISO三体系认证咨询合同针对医药行业的质量管理体系
- 2025版智能数据中心UPS不间断电源服务合同细则
- 《无人机航迹规划》课程标准(高职)
- 养老院健康档案模板
- 夏季高温期间建筑施工安全注意事项
- 双人徒手心肺复苏培训
- 2024年中小学教师职称审定答辩题目
- 钢丝绳吊装时最大允许吊装重物对应表
- 《金融反欺诈与大数据风控研究报告(2023)》
- 传播学概论课件
- 2023年吕梁市文水县社区工作者招聘考试真题
- 国开2023秋《习近平总书记教育重要论述研究》形考任务一参考答案
- 2023年广西公需科目关于人才工作的重要论述答案
评论
0/150
提交评论