httprunner他のテストケースを呼び出します

テストコールログ、プロンプトの戻り値のクッキー、クッキーの検証コードと要求の下に置きます

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

ここに画像を挿入説明
ここに画像を挿入説明

ここでは、単一のテストケースを呼び出す、ときにエラーの詳細があるでしょう

おすすめ

転載: blog.csdn.net/qq1105273619/article/details/90720069