How to handle pop-ups in Jmeter automation tool?

787 views Asked by At

I am trying to perform load testing on particular application form of a portal using JMeter tool. I have recorded the whole scenario using blazemeter tool and exported it into .jmx file. In the JMeter tool, I have imported the file, able to login to the portal through JMeter, and parameterized the whole fields required to fill the application form.The problem is at last, request of all the data against those field is going but in the response I am getting "Data Failed", ultimately unable to submit the form through JMeter.This can be due to the pop-up which can not be recorded by blazemeter but it pops up at the time of submission on the actual portal, so **how to handle that pop up in JMeter to submit the form?**I am using apache-JMeter 5.2.1.I am also attaching the screenshots for reference. I am looking forward for help.pop up shown on windowrequest data shown in imagePop-up shown on actual windowLogged in successfully

2

There are 2 answers

0
Dmitri T On

Cross-check the request from the real browser and from JMeter using a 3rd-party sniffer tool like Fiddler or Wireshark, the requests must be the same (apart from dynamic data which needs to be correlated)

If you're using parameterization - ensure that JMeter Variables have their anticipated values using Debug Sampler

Given you send the same request you should be getting the same response.

If you will not be able to figure out the cause yourself - consider adding .har files for requests from the real browser and from JMeter to your question so we could take a look.

0
Harshita Gupta On

link for the har file of real browser: [https://drive.google.com/file/d/1_zopIDpOjniqBsXtcDs53Zujzv62UxYt/view?usp=sharing][1]

link for .jmx file: [https://drive.google.com/file/d/1sZWeN3OfXxjvHlGn8bAjzGyP4Kq0TqwV/view?usp=sharing][1]

I am unable to handle confirmation pop-up (in javascript) through JMeter tool.