简体   繁体   English

使用Gatling工具进行REST API调用

[英]REST API calls using Gatling tools

Actually am new to Gatling tool, just i want to make REST API using the Gatling tools.So any one suggest how to do and some related links about Gatling tool API calls. 实际上我是Gatling工具的新手,只是我想使用Gatling工具制作REST API。所以任何人都建议如何做以及有关Gatling工具API调用的一些相关链接。

Thanks in Advance!!! 提前致谢!!!

hi few example below for reference :- 您好以下示例供参考:-

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

or 要么

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM