s
http://stackoverflow.com/questions/30260150/could-not-pre-launch-appium-and-app-doesnt-get-installed-in-iphone-real-device
appium那些坑
http://blog.csdn.net/mentgmery1/article/details/41645427
在真机上跑APPIUM自动化的那些坑
第一个坑,怎么启动APPIUM,以保证它与APPIUM SERVER通信,
appium -U UDID --app Bundle ID
第二个坑,
selenium.common.exceptions.WebDriverException: Message: u'A new session could not be created. (Original error: Instruments crashed on startup)'
我遇到这个问题两次,简单描述如下:
第一次,是因为developer选项里的 Enable UI Automation木有开启,开启后就OK了。这里解释一下,在真机上跑APPIUM的前提是,手机应该注册成开发者手机,这样就可以在Settings的页面看到 Developer(开发者)这个选项了。
第二次,则是因为,换了手机之后,因为手机不支持我现在使用的APP的签名,导致了Instruments crashed on startup的错误,只要把用这个手机的签名重新编译一个APP,就可以了。
第三坑
switch_to.context测试,老是报错,没有context这个attribute,找乐半天才发现,
from appium import webdriver
from selenium import webdriver
第二条声明把第一条给覆盖了,switch_to是appium里的方法。
第四个坑
打开浏览器操作,http://appium.io/slate/en/v1.2.1/?Python#setup76
第五个坑
Appium v1.3.1 启动IOS测试后报了如下异常,记得之前可以跑的,点里那个诊断的按钮也显示环境正常,请大家帮我看看是哪里出问题了么? 这个文件/Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller我看也有的啊。
2014-11-04 01:26:38:474 - info: [debug] Not pre-launching simulator 2014-11-04 01:26:38:474 - info: [debug] Creating iDevice object with udid 843bb46631ac5c1408af67ae25a48d3b2e2c4888 2014-11-04 01:26:38:475 - info: [debug] Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller 2014-11-04 01:26:38:475 - info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 843bb46631ac5c1408af67ae25a48d3b2e2c4888 --bundle com.terrytest.test 2014-11-04 01:26:40:637 - info: [debug] App is not installed. Will try to install the app. 2014-11-04 01:26:40:637 - info: [debug] Installing ipa found at /Users/sunqingwei/Evan/terrytest/Mobile/test.ipa 2014-11-04 01:26:40:637 - info: [debug] Creating iDevice object with udid 843bb46631ac5c1408af67ae25a48d3b2e2c4888 2014-11-04 01:26:40:638 - info: [debug] Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller 2014-11-04 01:26:40:839 - info: [debug] Cleaning up appium session 2014-11-04 01:26:40:840 - info: [debug] Error: Command failed: dyld: Library not loaded: @executable_path/../lib/libimobiledevice.3.dylib Referenced from: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller Reason: image not found at ChildProcess.exithandler (child_process.js:648:15) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5) 2014-11-04 01:26:40:839 - error: Failed to start an Appium session, err was: Error: Command failed: dyld: Library not loaded: @executable_path/../lib/libimobiledevice.3.dylib Referenced from: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller Reason: image not found 2014-11-04 01:26:40:840 - info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: dyld: Library not loaded: @executable_path/../lib/libimobiledevice.3.dylib\n Referenced from: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller\n Reason: image not found\n)","killed":false,"code":null,"signal":"SIGTRAP","origValue":"Command failed: dyld: Library not loaded: @executable_path/../lib/libimobiledevice.3.dylib\n Referenced from: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller\n Reason: image not found\n"},"sessionId":null} 2014-11-04 01:26:40:841 - info: <-- POST /wd/hub/session 500 4929.943 ms - 668
这个就是你的ideviceinstaller没装好,brew install ideviceinstaller 执行
第五个坑
"message":"A new session could not be created. (Original error: Instruments crashed on startup)","origValue":"Instruments crashed on startup"},"sessionId":null}
一般出现这个问题,都是你的APP的签名跟设备的不一样导致,保持一致就可以了
第六个坑
第七个坑
安装特定版本的APPIUM
npm install -g appium@0.12.3
第八个坑
在真机上生成的APP文件和在模拟器(simulator)上生成的是不一样的,用inspector的时候,只能使用模拟器生成的APP文件
第九个坑
UIAPickerWheel, 比如 picker里面有4个选项, latest day, last 7 days, last 30 days, all, 这个时候只需要UIAPickerWheel.send_keys(latest day),就可以设置picker里的值
第十个坑
通过INSPECTOR,发现有多个元素的名字都是一样的,我们可以通过find_elements_by_name方法(记住是elements)遍历所有相同名字的元素,然后根据INDEX取其中我们想要的,例如,
def getPicker(self):
elements = find_elements_by_name("picker normal")
return elements[1]
appium 真机测试问题 出现 instruments crashed on startup
http://blog.csdn.net/a542551042/article/details/45723415
1.appium 真机测试的时候 instruments crashed on startup,必须在真机上打开UI Automation
在设置里:
Developer—>Enable UI Automation
开启这几即可
ps:
如果在iOS设置里面,没有找到开发这个选项,那么需要连接上Xcode,之后再去查看iOS 设备上的设置,就看到开发者选项了
或者:
App签名包,和本机的Xcode配置的签名不一致,
(在使用真机调试的App的时候,必须保证通过Xcode 的Instrument能够正常的调试真机才可以,否则Appium 无法调试真机的)
2.真机测试的时候,必须确保手机已经安装要测试app
3.确定ios已经绑定开发者证书,并且使用Xcode 能够运行真机
4.运行真机的时候,确保Instrument 已经关闭
Appium [iOS] Instruments crashed on startup
http://stackoverflow.com/questions/33546980/appium-ios-instruments-crashed-on-startup
end
相关推荐
2018年最新的国外英文原版关于Appium的图文实用说明,经过本人的尽心整理,稍微调整了排版使得和书签使得阅读起来更方便。
AppiumAppium is an open-source, cross-platform test automation tool for native,hybrid, and mobile web and desktop apps. We support simulators (iOS), emulators(Android), and real devices (iOS, Android,...
windows系统下appium环境安装步骤、图示,...appium is an open source test automation framework for use with native, hybrid and mobile web apps. It drives iOS and Android apps using the WebDriver protocol.
Appium is an open source test automation framework for use with native and hybrid mobile apps. It drives iOS and Android apps using the WebDriver JSON wire protocol.
欢迎来到Addison Global QA Automation React Native Tech任务。 本练习的主要目的是评估您如何推理自己测试代码的能力。 没有硬性规定或棘手的问题。 我们要求您使用以下语言/工具/框架: javascript ...
这是一个示例测试自动化框架,可使用Experitest Appium Studio入门android和iOS自动化 Experitest Appium Studio Appium Studio是一个IDE,旨在使用Appium \ Selenium WebDriver API开发和执行移动测试自动化。 借助...
Automation Framework 一个基于Appium 1.8.1、TestNG,Page Object模式开发的UI自动化测试框架 本人对公司和个人提供APP UI自动化培训,有意者请加QQ 40690263 介绍文档 (doc目录) Framework-Introduction.pptx ...
f selenium-herokuapp-test/pom.xml来运行特定的子模块如果您想覆盖默认运行设置,则可以使用 #This will run your test on iPhone 6 simulator mvn clean install -Dspring.profiles.active="ios" -Ddevice
Set up iPhone/iPad and Android simulators and devices to test your mobile web application with Appium Set up Selenium Grid for faster and parallel running of tests, increasing test coverage and ...
Set up iPhone/iPad and Android simulators and devices to test your mobile web application with Appium Set up Selenium Grid for faster and parallel running of tests, increasing test coverage and ...
移动自动化测试框架(Android和iOS)-支持Cucumber测试和Testng测试单一代码库框架,可使用appium测试android和iOS应用。 这是样板代码。 克隆它,您就可以开始了!使用testng测试框架的设置和执行() 包:...
测试自动化项目模板描述测试自动化项目模板,具有可立即开始开发的自动脚本功能,可测试WEB UI,Rest-API,移动(iOS,Android)。 不是另一个“包装测试自动化框架”,而是流行的开放源代码工具的“最小外观”:...
Java中的包装器Appium框架,支持移动... :backhand_index_pointing_right: :mobile_phone: 支持Android和iOS真实设备和仿真器。 :backhand_index_pointing_right: :laptop: 能够在运行时启动和停止服务器,还可以连接
TestProject通过使用开源的Selenium和Appium框架,提供了一个统一的测试自动化SDK,该插件支持Android,iOS和Web应用程序。 TestProject与操作系统无关,可以在Windows,Linux或Mac上运行。 它是一个完整的堆栈自动...
Test web applications on mobile platforms such as iOS and Android using Appium Utilize various methods provided by Selenium WebDriver to locate web elements and interact with them Capture ...
Carina是一个基于Java的测试自动化框架,它将所有测试层结合在一起:移动应用程序(Web,本机,混合),WEB应用程序,REST服务,数据库。 Carina框架建立在最流行的开源解决方案(例如Selenium,Appium,TestNG)之...
博客/文章有关在Windows 10 / Azure DevTest Labs上的Microsoft Edge上运行自动化测试(Selenium WebDriver)来加速它的故事Mercari Web版本的UI测试我们针对的自动化世界以及为此目的而创建的Azure Kubernetes ...
淘宝放单源码Java 测试资源整理 在 GitHub 上有各种系列的资源整理库,去帮助大家快速方便地查询该技术的...Web、PC客户端和移动端APP设计自检 应用宝基于Robotium自动化测试 Unittest实现H5页面接口功能测试 Macaca-J
页面工厂2 电报: : Page-Factory-2是用于自动化测试的开源Java框架,允许您以样式开发自动测试,重点是使用PageFactory模式。... Page Factory 2还可与iOs和Android上的应用程序一起使用,为此使用Appium。 为了方