Pranil Chaudhari
Pranil Chaudhari

Reputation: 11

Is there way to render HTML and js as a request in jmeter?

I am getting HTML body in response(Please see attached snapshot). It is having a hidden form and a internal java script to submit the same form. enter image description here

Is there any way in jmeter to run java script which will directly submit form.

I am trying to sort out this issue using JSR223 Post processor and sampler. Since response is HTML document, getting challenge to implement the same.

Upvotes: 0

Views: 555

Answers (1)

vins
vins

Reputation: 15400

JMeter is not like Browser. So it can not run the javascript. JMeter can submit the form only if you add the corresponding HTTP Sampler request in your test plan.

That is, Record your actions on the browser like Chrome using JMeter. If you have done the form submission, JMeter would have recorded that as well. Now JMeter can play back and simulate the behavior.

Upvotes: 0

Related Questions