In Jmeter, What would be syntax of parameters in Body Data section of HTTP Request Sampler, if I am using Rest APIs and taking input from CSV files?

后端 未结 2 1984
没有蜡笔的小新
没有蜡笔的小新 2020-12-28 15:24

I am trying to create 10 users at the same time in Jmeter, using REST APIs.

Test Data i.e. input is taken from CSV files (The details of users like user name, last na

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-28 16:06

    Also,if your formparam\ Body data contains multiple parameters like this:

    UserName=abc password=abc123,

    Instead of created two columns for userName and password, it can be given in single column like this:

    UserName=abc&password=abc123

    This way you can loop through multiple\different URL's which takes different numbers of bodydata

    E.g.: If URL1 takes only username as body data and URL2 takes Username & password as body data the above will be an easy solution.

提交回复
热议问题