- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前正在尝试从 Visual Studio Community 2017 为 MAC 运行与 Appium 集成的 C# NUnit 测试脚本。软件配置为 MAC OS- 10.12.6、Appium Desktop client 1.4.0、iOS Simulator iPhone 7 (OS version 10.3.1)、xCode -8.3.3。我们的开发团队通过选择目标设备作为模拟器(适用于 x86 架构)提供了一个内置 Debug模式的 iOS 应用程序。当我运行 C# 脚本时,会生成以下 appium 日志:
[info] [Appium] Welcome to Appium v1.7.2
[info] [Appium] Non-default server args:
[info] [Appium] address: 127.0.0.1
[info] [Appium] sessionOverride: true
[info] [Appium] Appium REST http interface listener started on 127.0.0.1:4723[info] [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"PlatformName":"iOS","PlatformVersion":"10.3","deviceName":"iPhone 7","udid":"043A59DD-D537-4E9E-B9FD-FAC5B1CA2FBF","app":"Users//apple//Desktop//IPA//LighthouseApp.iOS//bin//iPhoneSimulator//Debug//LighthouseApp.iOS.app","automationName":"XCUITest","shouldWaitForQuiescence":"true","platformName":"iOS"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"PlatformName":"iOS","PlatformVersion":"10.3","deviceName":"iPhone 7","udid":"043A59DD-D537-4E9E-B9FD-FAC5B1CA2FBF","app":"Users//apple//Desktop//IPA//LighthouseApp.iOS//bin//iPhoneSimulator//Debug//LighthouseApp.iOS.app","automationName":"XCUITest","shouldWaitForQuiescence":"true","platformName":"iOS"},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1520660747951 (11:15:47 GMT+0530 (IST))
[info] [Appium] Creating new XCUITestDriver (v2.70.0) session
[info] [Appium] Capabilities:
[info] [Appium] PlatformName: iOS
[info] [Appium] PlatformVersion: 10.3
[info] [Appium] deviceName: iPhone 7
[info] [Appium] udid: 043A59DD-D537-4E9E-B9FD-FAC5B1CA2FBF
[info] [Appium] app: Users//apple//Desktop//IPA//LighthouseApp.iOS//bin//iPhoneSimulator//Debug//LighthouseApp.iOS.app
[info] [Appium] automationName: XCUITest
[info] [Appium] shouldWaitForQuiescence: true
[info] [Appium] platformName: iOS
[debug] [BaseDriver]
[debug] [BaseDriver] W3C capabilities [] and MJSONWP desired capabilities were provided
[warn] [BaseDriver] Expected W3C "capabilities" to be a JSON Object but was provided with: []
[warn] [BaseDriver] Falling back to MJSONWP desired capabilities
[warn] [BaseDriver] The following capabilities were provided, but are not recognized by appium: PlatformName, PlatformVersion, shouldWaitForQuiescence.
[info] [BaseDriver] Session created with session id: dfc78eed-1152-4c50-95b8-945827c7eaa0[info] [iOSSim] Constructing iOS simulator for Xcode version 8.3.3 with udid '043A59DD-D537-4E9E-B9FD-FAC5B1CA2FBF'
[info] [XCUITest] Determining device to run tests on: udid: '043A59DD-D537-4E9E-B9FD-FAC5B1CA2FBF', real device: false[debug] [XCUITest] Xcode version set to '8.3.3' (tools v9.2.0.0.1.1510905681)[debug] [XCUITest] iOS SDK Version set to '10.3'
[info] [XCUITest] No platformVersion specified. Using device version: '10.3'
[info] [BaseDriver] Using local app 'Users//apple//Desktop//IPA//LighthouseApp.iOS//bin//iPhoneSimulator//Debug//LighthouseApp.iOS.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1520660767421 (11:16:07 GMT+0530 (IST))
[debug] [XCUITest] Checking whether app 'Users//apple//Desktop//IPA//LighthouseApp.iOS//bin//iPhoneSimulator//Debug//LighthouseApp.iOS.app' is actually present on file system
[debug] [XCUITest] App is present[debug] [XCUITest] iOS SDK Version set to '10.3'
[info] [XCUITest] No platformVersion specified. Using device version: '10.3'
[info] [BaseDriver] Using local app 'Users//apple//Desktop//IPA//LighthouseApp.iOS//bin//iPhoneSimulator//Debug//LighthouseApp.iOS.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1520660767421 (11:16:07 GMT+0530 (IST))
[debug] [XCUITest] Checking whether app 'Users//apple//Desktop//IPA//LighthouseApp.iOS//bin//iPhoneSimulator//Debug//LighthouseApp.iOS.app' is actually present on file system
[debug] [XCUITest] App is present
[error] [Support] Error: Could not parse plist file '/Users/apple/Desktop/IPA/LighthouseApp.iOS/bin/iPhoneSimulator/Debug/LighthouseApp.iOS.app/Info.plist' as XML: Cannot read property 'documentElement' of undefined
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-support/lib/logging.js:69:13)
at Object.parsePlistFile$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-support/lib/plist.js:43:11)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
**Error: Could not parse plist file '/Users/apple/Desktop/IPA/LighthouseApp.iOS/bin/iPhoneSimulator/Debug/LighthouseApp.iOS.app/Info.plist' as XML: Cannot read property 'documentElement' of undefined**
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-support/lib/logging.js:69:13)
at Object.parsePlistFile$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-support/lib/plist.js:43:11)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
[error] [iOS] Error: Could not extract Info.plist from application: Could not parse plist file '/Users/apple/Desktop/IPA/LighthouseApp.iOS/bin/iPhoneSimulator/Debug/LighthouseApp.iOS.app/Info.plist' as XML: Cannot read property 'documentElement' of undefined
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-support/lib/logging.js:69:13)
at extractPlist$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-ios-driver/lib/app-utils.js:14:9)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
Error: Could not extract Info.plist from application: Could not parse plist file '/Users/apple/Desktop/IPA/LighthouseApp.iOS/bin/iPhoneSimulator/Debug/LighthouseApp.iOS.app/Info.plist' as XML: Cannot read property 'documentElement' of undefined
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-support/lib/logging.js:69:13)
at extractPlist$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-ios-driver/lib/app-utils.js:14:9)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
[error] [XCUITest] Error: Could not extract Info.plist from application: Could not parse plist file '/Users/apple/Desktop/IPA/LighthouseApp.iOS/bin/iPhoneSimulator/Debug/LighthouseApp.iOS.app/Info.plist' as XML: Cannot read property 'documentElement' of undefined
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-support/lib/logging.js:69:13)
at extractPlist$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-ios-driver/lib/app-utils.js:14:9)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
Error: Could not extract Info.plist from application: Could not parse plist file '/Users/apple/Desktop/IPA/LighthouseApp.iOS/bin/iPhoneSimulator/Debug/LighthouseApp.iOS.app/Info.plist' as XML: Cannot read property 'documentElement' of undefined
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-support/lib/logging.js:69:13)
at extractPlist$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-ios-driver/lib/app-utils.js:14:9)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[error] [MJSONWP] Encountered internal error running command: Error: Could not extract Info.plist from application: Could not parse plist file '/Users/apple/Desktop/IPA/LighthouseApp.iOS/bin/iPhoneSimulator/Debug/LighthouseApp.iOS.app/Info.plist' as XML: Cannot read property 'documentElement' of undefined
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-support/lib/logging.js:69:13)
at extractPlist$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-ios-driver/lib/app-utils.js:14:9)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
[info] [HTTP] <-- POST /wd/hub/session 500 19920 ms - 374
最佳答案
该应用程序构建不适用于模拟器,它以 Release模式编译以部署在真实设备上。因此,在模拟器上启动应用程序存在问题。确保安装 carthage,在功能中包含 udid,设备名称必须保持为“iPhone”,并且还使用功能 AutomationName 作为 XCUITest。
您的 Appium 桌面应用程序必须安装到应用程序文件夹中。
关于c# - 来自应用程序的错误 : Could not extract Info. plist:无法将 plist 文件 '/Pathof.appfile/Info.plist' 解析为 XML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49205911/
警告在块AccessRights〜Groups〜Navigator中[mini-css-extract-plugin] 之间的顺序冲突: css ../node_modules/css-loader?
解决练习问题“对于数据库中的每个月/年组合,交易表的销售日期列中有多少个不同的日期?”我发现一个有效的查询,它显然结合了年份和月份 SELECT DISTINCT (extract(year from
我有一个名为 Student 的 MySQL 表,它有一个名为 entry_date 的列,类型为 date。我想选择以下形式的 entry_date: November, 2014 即它将显示 en
我已经使用 iMacros 很长时间了,我有一个代码可以提取文本并使用它来创建我需要的特定 URL。 事情是这样的: #I can extract the XPath text with this.
我将一个 session 从 Fiddler 导出到 saz 文件。此 session 仅包含 jpg 文件,我想知道 - 如何快速轻松地从 saz 中提取 jpg 文件? 谢谢! 最佳答案 提取 J
应用 FFT 后,我得到了具有多个频率段的频谱。如何使用倒谱方法从该频谱中获取基频? 我做了很多研究,尝试了很多代码,并在 stackoverflow 上问了三遍(这很有帮助),我非常确定倒谱方法是在
我正在寻找一种解压缩或反编译微软代理的方法。 例如梅林代理 我想提取动画/图像。到目前为止我发现的最好方法是。用粉红色背景录制我的屏幕。并分割视频......但这不是一个很好的做法...... 有小费
我只想从youtube链接中提取MP3格式的音频,但是如果不从命令行使用youtube-dl选项调用--extract-audio,就无法弄清楚该如何做。在YoutubeDL类中是否有一种类似于her
我有一个 Azure 管道,应该构建一个项目并将 jar 复制到 Artifactory。这是应该安装节点的 yml: - task: NodeTool@0 inputs: version
例如,如果您有一个如下所示的关联数组: $array = array('first-value' => 'Hello'); 然后你要提取它: extract($array); 由于变量名称中不能使用连
我有大型 pdf 文件(法语的 100 页)描述了我的事件部门的一套规则。 我正在寻找一种服务,允许我一次查询一个 pdf(或我从中提取的文本)以自动获取信息。 (示例:x 的最大授权长度是多少?)
我是 RDF 初学者,我想从 HTML 中提取 RDF我正在使用 GRDDL,但它不太适合我,我每次都会收到安全异常:(您能向我推荐另一个工具吗? 感谢您的帮助。 最佳答案 我通常使用说唱歌手,你可以
我很好奇,PHP 的函数是如何实现的extract有用吗?我想做一个稍微修改的版本。我希望我的函数在从蛇形符号到驼峰式的数组键中提取时生成变量名,例如: 现在 extract 这样做: $array
如果我使用 PHP 的 extract() 函数从数组中导入变量,同名变量会被覆盖吗?我问的原因是因为我正在尝试初始化所有变量。 感谢您的宝贵时间。 最佳答案 默认情况下它将覆盖。 http://ph
我有大型 pdf 文件(法语的 100 页)描述了我的事件部门的一套规则。 我正在寻找一种服务,允许我一次查询一个 pdf(或我从中提取的文本)以自动获取信息。 (示例:x 的最大授权长度是多少?)
我正在尝试在 Python 中运行大量模拟,因此我尝试使用多处理来实现它。 import numpy as np import matplotlib.pyplot as plt import mult
尝试从主机名-rt45_34_we_35 中提取主机名-rt45。我正在使用/(.)_?./g。这似乎不起作用。我已经查看了正则表达式文档。想用?会使它变得贪婪并在第一个下划线处停止。我错过了什么?
我目前正在从事一个数据挖掘项目。我必须阅读 C# 源代码,并且必须找到连接 SQL 语句的位置。我真正想要的是获取连接字符串变量名称的名称。 示例: stat = "SELECT * FROM CUS
我正在订单表上运行查询,以计算每个用户在 6 个月前一个月内的任何一天发出的请求总数(例如:2013 年 8 月)。 这工作正常:- SELECT userid,firstname,surname,s
我对 PHP 很陌生,并且到处都看到不建议使用提取函数。我正在从 mysql 表中获取数据来填充网站的一部分。因此我不知道该表可以有多少行。 所以我使用 extract 函数,它为每行提供一个数组数组
我是一名优秀的程序员,十分优秀!