Reputation: 796
I am newbie to the jmeter, currently working on a project where i have to write a jmeter script for complete flow of web-application. i have wrote using the recording feature of the Jmeter but the project requirement has been change to web browser type of execution. Need information how to convert a jmeter project to web browser type of execution
Upvotes: 0
Views: 1060
Reputation: 168157
It is not possible to convert JMeter tests into "web browser" execution type, the only thing you can do is to add HTTP Header Manager to your Test Plan and configure it to send User-Agent header of browser(s) you need to mimic, check out i.e. List of User Agent Strings for exact details.
If you need to perform GUI-based testing i.e. kick off a real browser and perform user operations you will need to switch to another tool, like:
There are also "headless" browsers which don't have GUI however they are fully functional web browsers which can be automated:
Upvotes: 1
Reputation: 13995
JMeter records script on HTTP level, not UI level (i.e. HTTP requests browser sends to server, and responses received from server). So it's mostly the same for all types of browser, except where your application behavior differs, based on browser.
Such recorded script also runs on HTTP level and you cannot convert it back to browser / UI level.
You can record Selenium script on UI level though, and run it in JMeter. See similar question answered here: How to integrate JMeter with Selenium WebDriver for Load testing?
If you simply need to record your script while using application in Chrome, then set proxy to Jmeter in Chrome as described here and re-record your scenario.
Upvotes: 1