R
R
Rocket-API
Search…
脚本引用
定义调用api接口GET /user/common如下:
1
log.info("print hello msg:{}",name)
2
3
def hello(){
4
log.info("function hello..")
5
}
Copied!
在其他(如:GET /user/list)脚本中引用 GET /user/common脚本如下:
1
name = "hello";
2
Utils.loadAPI("GET:/user/common")
3
hello()
Copied!
将会打印出:
1
print hello msg:hello
2
function hello..
Copied!
Last modified 3mo ago
Copy link