标签:view conf article -name ebe title target inter tps
{
"webdriver": {
"host": "127.0.0.1", // WebDriver服务host
"port": "4444", // WebDriver服务端口
"browsers": "chrome, ie 11, firefox", // 回归测试浏览器类型/版本
"chromeOptions": {
"w3c": false
}
},
"vars": {}, // 全局变量
"reporter": {
"distDir": "" // 自定义生成报告路径
},
"screenshots": {
"captureAll": true // false 代表只在回归不通过步骤截图
},
"recorder": {
"pathAttrs": "data-id,data-name,type,data-type,role,data-role,data-value",
"attrValueBlack": "",
"classValueBlack": "",
"hideBeforeExpect": ""
}
}
127.0.0.1 localhost
回归测试指定 WebDriver 版本,参考 selenium-standalone 配置 command :https://www.npmjs.com/package/selenium-standalone#command-line-interface ,修改工程目录 package.json 下 installdriver 命令即可。(一般建议使用最新版本,降低后续维护成本)
标签:view conf article -name ebe title target inter tps
原文地址:https://www.cnblogs.com/Lam7/p/13475934.html