Karate 空手道用户界面-如何在测试结束时断言url?
我正在尝试空手道UI测试工具。 我认为如果url不匹配,“waitForUrl”命令应该测试失败。但是我的测试是绿色的,即使url不匹配。我是否必须使用两个命令(“waitForUrl”和“match”)才能通过测试 我的功能文件:Karate 空手道用户界面-如何在测试结束时断言url?,karate,Karate,我正在尝试空手道UI测试工具。 我认为如果url不匹配,“waitForUrl”命令应该测试失败。但是我的测试是绿色的,即使url不匹配。我是否必须使用两个命令(“waitForUrl”和“match”)才能通过测试 我的功能文件: Feature: web-browser automation Background: * configure driver = { type: 'chrome' } Scenario: Search for Karate on Google Given
Feature: web-browser automation
Background:
* configure driver = { type: 'chrome' }
Scenario: Search for Karate on Google
Given driver 'https://www.google.com'
And maximize()
And delay(2000)
And input("input[name=q]", 'Karate')
And click("input[name=btnK]")
When click("/(//div//a/h3)[1]")
Then retry(5, 2000).waitForUrl('https://github.com/intuit/karate')
这是一个bug,感谢您找到它。它固定在
develope
中:
如果您能够遵循开发指南并查看其是否有效,那就太好了: