os x升级到10.10后appium不能测试通过的解决办法
2014-10-26 11:04
302 查看
IOSChecker.prototype.getMacOSXVersion = function (cb) {
exec("sw_vers -productVersion", function (err, stdout) {
if (err === null) {
if (stdout.match('10.8') !== null) {
this.osVersion = '10.8';
cb(null, "Mac OS X 10.8 is installed.");
} else if (stdout.match('10.9') !== null) {
this.osVersion = '10.9';
cb(null, "Mac OS X 10.9 is installed.");
} else if (stdout.match('10.10') !== null){
this.osVersion = '10.10';
cb(null, "Mac OS X 10.10 is installed.");
} else {
this.log.fail("Could not detect Mac OS X Version", cb);
}
} else {
this.log.fail("Unknown SW Version Command: " + err, cb);
}
}.bind(this));
};
修改下这个文件,加入10.10版本即可
/usr/local/lib/node_modules/appium/lib/doctor/ios.js
exec("sw_vers -productVersion", function (err, stdout) {
if (err === null) {
if (stdout.match('10.8') !== null) {
this.osVersion = '10.8';
cb(null, "Mac OS X 10.8 is installed.");
} else if (stdout.match('10.9') !== null) {
this.osVersion = '10.9';
cb(null, "Mac OS X 10.9 is installed.");
} else if (stdout.match('10.10') !== null){
this.osVersion = '10.10';
cb(null, "Mac OS X 10.10 is installed.");
} else {
this.log.fail("Could not detect Mac OS X Version", cb);
}
} else {
this.log.fail("Unknown SW Version Command: " + err, cb);
}
}.bind(this));
};
修改下这个文件,加入10.10版本即可
/usr/local/lib/node_modules/appium/lib/doctor/ios.js
相关文章推荐
- 利用wireshark 通过mac os网络共享 抓取 移动设备上发起的 http 网络请求报文 (附:升级 10.10 以后 wireshark启动闪退解决办法)
- ubuntu 14.04 安装英伟达驱动界面不能显示解决办法 泰坦和k10通过测试
- 某些App通过appium进行安装时安装测试时报Error: packageAndLaunchActivityFromManifest failed. Original error的解决办法
- 网站不能通过W3C验证的十个原因(附解决办法)
- 从0904升级到910导致声卡不能识别的解决办法
- 我把一个VC6的工程转换为VS2008的工程后,编译总是出现找不到而且不能升级vc90.pdb文件的问题,error C2471--解决办法 2010-9-16 15:01
- 解决本地调试时不能通过IE直接浏览aspnet页面的办法
- 关于android的adt升级到22以后unity不能编译的解决办法~
- McAfee8.5不能升级之解决办法
- 2003 server不能升级SP1的解决办法
- 索尼XL39H【ZUltra】【C6802】固件532不能正常升级的,有解决办法了……
- Archlinux从3.6.9-1-ARCH升级到3.6.11-1-ARCH后vmware 9不能启动的解决办法
- WIN7不能启动oracle-EM解决办法(york在64位旗舰版win7,oracle 11g x64系统测试通过)
- asp.net TextBox只读时不能通过后台赋值取值解决办法
- Ubantu10.04 不能升级解决办法
- 阅读器关闭时READ的尝试无效 真正原因 测试通过解决办法
- 网站不能通过W3C验证的十个原因(附解决办法)
- asp.net textbox只读时不能通过javascript赋值、采值解决办法
- ubuntu不能升级和安装软件的解决办法(E: Sub-process /usr/bin/dpkg returned an error code (1) )
- ubuntu升级软件后bumblebee不能正常工作的解决办法