-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: loveqianool <[email protected]>
- Loading branch information
1 parent
f698c30
commit adb4a80
Showing
3 changed files
with
180 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
[ | ||
{ | ||
"request": { | ||
"method": "POST", | ||
"url": "https://bbs.pcbeta.com/member.php?mod=logging&action=login&loginsubmit=yes&inajax=1", | ||
"headers": [], | ||
"cookies": [], | ||
"data": "username={{username}}&password={{password}}" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [] | ||
} | ||
}, | ||
{ | ||
"comment": "", | ||
"request": { | ||
"method": "POST", | ||
"url": "https://bbs.pcbeta.com/member.php?mod=logging&action=login&loginsubmit=yes&inajax=1", | ||
"headers": [], | ||
"cookies": [], | ||
"data": "username={{username}}&password={{password}}" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "欢迎", | ||
"from": "content" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [] | ||
} | ||
}, | ||
{ | ||
"comment": "任务页", | ||
"request": { | ||
"method": "GET", | ||
"url": "https://i.pcbeta.com/home.php?mod=task", | ||
"headers": [], | ||
"cookies": [] | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [] | ||
} | ||
}, | ||
{ | ||
"comment": "领取任务", | ||
"request": { | ||
"method": "GET", | ||
"url": "https://i.pcbeta.com/home.php?mod=task&do=apply&id=149", | ||
"headers": [], | ||
"cookies": [] | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "302", | ||
"from": "status" | ||
}, | ||
{ | ||
"re": "200", | ||
"from": "content" | ||
} | ||
], | ||
"failed_asserts": [ | ||
{ | ||
"re": "您需要先登录才能继续本操作", | ||
"from": "content" | ||
} | ||
], | ||
"extract_variables": [] | ||
} | ||
}, | ||
{ | ||
"comment": "完成任务", | ||
"request": { | ||
"method": "GET", | ||
"url": "https://i.pcbeta.com/home.php?mod=task&do=draw&id=149", | ||
"headers": [], | ||
"cookies": [] | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "成功完成", | ||
"from": "content" | ||
}, | ||
{ | ||
"re": "不是进行中", | ||
"from": "content" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [] | ||
} | ||
}, | ||
{ | ||
"comment": "积分页", | ||
"request": { | ||
"method": "GET", | ||
"url": "https://i.pcbeta.com/home.php?mod=spacecp&ac=credit", | ||
"headers": [], | ||
"cookies": [] | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "nickName", | ||
"re": "访问我的空间\">(.+?)<", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "f", | ||
"re": "<em> PB币[\\s\\S]+?</ul>", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "Unicode转换", | ||
"request": { | ||
"method": "POST", | ||
"url": "api://util/unicode", | ||
"headers": [], | ||
"cookies": [], | ||
"data": "html_unescape=false&content={{nickName}} {{f | striptags}}" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
}, | ||
{ | ||
"re": "\"状态\": \"200\"", | ||
"from": "content" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "__log__", | ||
"re": "\"转换后\": \"(.*)\"", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters