# 创建测试用例
$ vim case.frank
url="https://httpbin.org"
// 一个 POST 请求
POST /post Post json data
header["Accept"] = "application/json"
header["Content-Type"] = "application/json"
json.key0 = "value0"
json.key1 = "value1"
list=[]
list.push("value3")
list.push("value4")
json.key2 = list
Response
must(status==200)
j = JSON.parse(body)
myip = j.origin // 创建个新变量
// 一个 GET 请求
GET /etag/:myip Just a GET request
query.key0 = myip // 使用之前创建的变量
Response
must(status==200)
# 运行测试用例
$ frank