WRK的使用-lua脚本POST请求(静态数据)
HTTP_prot = { "/gateway/services", "/gateway/services", } --接口类型 HTTP_type ...
HTTP_prot = { "/gateway/services", "/gateway/services", } --接口类型 HTTP_type ...
原理:在脚本开始之前将准备好的数据添加至数组内,每次请求根据顺序调用 wrk.method = "GET" -- 循环列表 local queries = { -- API与参数 ...