HttpRunner 3.x (四):post请求类型application/x-www-from-urlencoded

config:
    name: www类型
    base_url: http:192.168.9.21/

teststeps:
-
    name: step1
    request:
        method: post
        headers:
            Content-type: application/x-www-form-urlencoded  # 默认带上
        url: /api
        data:    # 用data
            username: test
            password: "123456"

 

posted @ 2021-12-15 19:35  测试-继亮  阅读(175)  评论(0编辑  收藏  举报