url生成无效的字符常量错误

时间:2017-12-19 05:28:19

标签: rest api karate

使用空手道进行API测试:
我尝试在给定方法下传递url

获得无效字符常量错误:
给出了网址' http://localhost:8080'
和标题content-type =" application / json"

1 个答案:

答案 0 :(得分:0)

试试这个简单的例子:

Feature: sample karate script that calls a live www web-service

Background:
* url 'https://jsonplaceholder.typicode.com'

Scenario: test
    Given path 'users'
    When method get
    Then status 200