美文网首页
Idea .http 自动测试

Idea .http 自动测试

作者: lancelot123 | 来源:发表于2022-01-24 17:19 被阅读0次

    POST http://localhost:8080/sys/login
    Content-Type: application/json

    {
    "username": "llf",
    "password": "123456"
    }

    {%
    client.global.set("auth_token", response.body.token);
    client.log("token:"+response.body.token);
    %}

    <> 2022-01-24T171734.200.json
    <> 2022-01-24T171646.200.json
    <> 2022-01-24T171514.200.json

    POST http://localhost:8080/sys/uwbadmin/getOrgnizationTreeData
    token: {{auth_token}}
    Content-Type: application/json

    {}

    <> 2022-01-24T171646-1.200.json
    <> 2022-01-24T171516.200.json

    POST http://localhost:8080/sys/uwbadmin/getUserPageBySelectTreeNode
    token: {{auth_token}}
    Content-Type: application/json;charset=UTF-8

    {
    "page": 1,
    "limit": 10,
    "username": "llf"
    }

    <> 2022-01-24T171647.200.json
    <> 2022-01-24T171516-1.200.json

    相关文章

      网友评论

          本文标题:Idea .http 自动测试

          本文链接:https://www.haomeiwen.com/subject/xawbhrtx.html