【问题标题】:REST API calls using Gatling tools使用 Gatling 工具调用 REST API
【发布时间】:2017-11-16 05:15:01
【问题描述】:

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

提前致谢!!!

【问题讨论】:

    标签: performance-testing gatling


    【解决方案1】:

    下面几个例子供参考:-

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

    或

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

    【讨论】:

    • .check(status.is(200)) 可以删除,因为它是默认设置
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-04
    • 2023-03-18
    • 1970-01-01
    • 2016-06-12
    • 1970-01-01
    相关资源
    最近更新 更多