【问题标题】:Java assertion error in Karate UI automation test空手道 UI 自动化测试中的 Java 断言错误
【发布时间】:2023-01-24 04:37:36
【问题描述】:

我正在尝试在我现有的 BDD 空手道项目中进行基本的 UI 自动化,该项目对于 API 和 UI 自动化测试来说工作得很好。由于这个错误,之前工作的相同 UI 测试已经停止工作。 但是当我尝试用 karate ui test 打开任何网站时,它会抛出一个 Java.lang.AssertionError: org.apache..http.client.utils.URIBuilder.getPathSegments()Ljava/util/List

目前我使用的是空手道 1.2.1.RC2 版本,我尝试将其更新到最新版本 1.3.0,但这也没有用

Background: 
* config driver = { type:'chrome', executable: 'chrome' , showDriverLog: true, executable: 'C://Program Files//Google//Chrome//Application//chrome.exe'

@test
Scenario: to run ui automation
Given driver 'https://www.google.com'

【问题讨论】:

标签: karate ui-automation bdd cucumber-junit


【解决方案1】:

驱动程序配置无处不在。一个典型的语法是

* configure driver = {type:'chrome' , executable: <path to web driver executable>, showDriverLog: true}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-09-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多