空手道 UI 跨浏览器示例
Karate UI cross browser examples
有人有任何关于如何 运行 跨浏览器 UI 空手道测试的例子吗?我从 Peter 的推特提要中知道这是可能的,但有人有一些例子吗?
谢谢
看这个例子:test-01.feature
是一个Scenario Outline
,每行改变* configure driver = config
的值,见最后的Examples
:
Examples:
| config |
| { type: 'chrome' } |
| { type: 'chromedriver' } |
| { type: 'geckodriver' } |
另一种策略可能是使用 karate.env
的不同值重新 运行 测试或使用 call
并循环第二个特征文件。
有人有任何关于如何 运行 跨浏览器 UI 空手道测试的例子吗?我从 Peter 的推特提要中知道这是可能的,但有人有一些例子吗?
谢谢
看这个例子:test-01.feature
是一个Scenario Outline
,每行改变* configure driver = config
的值,见最后的Examples
:
Examples:
| config |
| { type: 'chrome' } |
| { type: 'chromedriver' } |
| { type: 'geckodriver' } |
另一种策略可能是使用 karate.env
的不同值重新 运行 测试或使用 call
并循环第二个特征文件。