使用空手道进行API测试:
我尝试在给定方法下传递url
获得无效字符常量错误:
给出了网址' http://localhost:8080'
和标题content-type =" application / json"
答案 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