httprunner call other test cases

Test call log, prompt return value cookie, cookie verification code and put under a request

-   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]

Here Insert Picture Description
Here Insert Picture Description

Here only call a single test case, when there will be more of an error

Guess you like

Origin blog.csdn.net/qq1105273619/article/details/90720069