调用登录的测试用例,返回值提示cookie,并将cookie放到下一个请求的验证码中
- config:
base_url: "http://192.168.1.100:8093"
- test:
name: 调用其他用例测试
testcase: E:\untitled2\demo\testcases\login.yaml
output:
- cookie
- test:
name: 登录
api: api/login.yaml
variables:
password: '800001'
username: '800001'
vercode: $cookie
validate:
- eq: ["content.success", True]
这里只能调用单个的测试用例,当出现多个的时候会报错