ywinappdriver 服务
这个服务帮助您在使用 WDIO 测试运行器 运行测试时无缝地运行 ywinappdriver 服务器。它在子进程中启动 ywinappdriver。
安装
npm install wdio-ywinappdriver-service --save-dev
关于如何安装 WebdriverIO
的说明可以在这里找到。
配置
为了使用这个服务,您需要将 ywinappdriver
添加到您的服务数组中:
// wdio.conf.js
export.config = {
// ...
services: ['ywinappdriver'],
// ...
};
选项
以下选项可以添加到 wdio.conf.js 文件中。要为服务定义选项,您需要以以下方式将服务添加到 services
列表中:
// wdio.conf.js
export.config = {
// ...
services: [
['ywinappdriver', {
// ywinappdriver 服务选项在这里
// ...
}]
],
// ...
};
logPath
应存储所有来自 ywinappdriver 服务器的日志的路径。
类型:String
示例:
export.config = {
// ...
services: [
['ywinappdriver', {
logPath : './'
}]
],
// ...
}