使用Gatling工具调用REST API

时间:2017-11-16 05:15:01

标签: performance-testing gatling

实际上我是Gatling工具的新手,只是我想使用Gatling工具制作REST API。所以任何人都建议如何做以及一些关于Gatling工具API调用的相关链接。

提前致谢!!!

1 个答案:

答案 0 :(得分:0)

以下几个例子供参考: -

          exec(
              http("Poll")
                .get(Configuration._URL + "/getData").check(status.is(200))
              )

        exec(
          http("Request")
            .put(Configuration.URL + "/createData").check(status.is(200))
            .body(("${xmlRequest}"))
           )