mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-05 13:18:19 +08:00
57 lines
880 B
Perl
57 lines
880 B
Perl
=== API
|
|
|
|
--- API test
|
|
|
|
goto "http://localhost:4200"
|
|
|
|
find:
|
|
[select "POST"] = method [input] = input [button "Send"] = sendBtn
|
|
[label "Headers"] = header
|
|
|
|
method -> "GET"
|
|
input -> "https://weibo.com/ajax/side/cards/sideInterested?count=60"
|
|
sendBtn -> click
|
|
wait 5000
|
|
|
|
find:
|
|
[label "Response"]=res
|
|
|
|
res -> click
|
|
|
|
# TODO 查看测试历史
|
|
|
|
capture
|
|
|
|
|
|
--- add New
|
|
|
|
goto "http://localhost:4200"
|
|
|
|
find:
|
|
[input "Search"] [button]=addBtn
|
|
|
|
addBtn -> hover
|
|
|
|
find:
|
|
[label "New API"]=newApi
|
|
[label "New Group"]
|
|
|
|
newApi -> click
|
|
|
|
find:
|
|
[button "Save"]=save
|
|
[select "POST"]=method [input "/"]=path
|
|
[select "Root directory"] [input]=name
|
|
# [input]=paramName [input]=desc [input]=example
|
|
|
|
method -> "GET"
|
|
# TODO path => '/api/data'
|
|
path -> "api/data"
|
|
name -> "yoo"
|
|
# paramName -> 'a'
|
|
# desc -> 'adesc'
|
|
# example -> 'a Example'
|
|
# save -> click
|
|
|
|
capture
|