0

My app having six modules for each modules having separate URLs:

1)http://church/wpApp/api.php?mod=gallery&method=get Videos&format=json -- with this URL, I can be done the load test Using JMeter.

My another Sub- category Url having ID-based URL. Here it is possible to apply load test Why because this URL having id this ID based Test only for particular ID.

2) http://felda/wpApp/api.php?mod=posts&method=ratetopost&post_id=510&comment_author_email=t_content=hello&user_id=28. ( "ID=28")--

It is possible to do LOAD test "ID "Based URLs.

2 Answers 2

2

Sure, it can be done, just add a HTTP Request sampler and configure it like:

JMeter HTTP User ID

Where this user_id parameter can be:

  • something static, i.e. 28
  • something data-driven, i.e. JMeter Variable originating from CSV Data Set Config like ${userid}
  • something random i.e. between 1 and 100 using __Random() function like ${__Random(1,100)}
0

There are two options.

  1. In your URL add a random function. This will pick a random Id in each iteration and use it in URL.

http://felda/wpApp/api.php?mod=posts&method=ratetopost&post_id=510&comment_author_email=t_content=hello&user_id=${__Random(10000, 99999, id)}

  1. Similarly you can use counter method.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.