Idea .http 自动测试

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 自动测试)