In this post we will learn how to record a test plan in JMeter.
Follow the steps below. I have kept it in simple and interactive way, so follow each step following the screen to cross-check with yours.
A HTTP Request element will be added below Thread Group in element tree and now Add the Server Name or IP as “ http://www.irctc.co.in “
Right Click on Thread Group > Add > Logic Controller > Recording Controller
Right Click on Workbench > Add > Non-test Elements > HTTP Proxy Server
Select Thread Group Loop count – 5
Run menu > Start OR
This is the way we record a test plan in JMeter. I hope you will not get any problems in recording if you follow all steps in flow.
Follow the steps below. I have kept it in simple and interactive way, so follow each step following the screen to cross-check with yours.
1] Go to jakarta-jmeter-2.5.1 > bin > ApacheJMeter (Executable Jar File)
OR
Go to jakarta-jmeter-2.5.1 > bin > jmeter.bat (Windows Batch File)
You will get started to JMeter Screen.
2] Add Thread Group
Right Click on Test Plan > Add > Threads (Users) > Thread Group
3] Add HTTP Request to the Thread Group
Right Click on Thread Group > Add > Sampler > HTTP Request
4] Add Recording Controller to the Thread Group
5] Add Proxy Server to the Workbench
6] On HTTP Proxy Server, click 3 times the “Add” button in “URL Patterns to Exclude”. This will create 3 blank entries.
Enter “.*\.png” pattern, “.*\.gif” pattern and “.*\.ico” pattern
Add Listener View Results Tree
Click on Thread Group > Add > Listener > View Results Tree
7] Now Start the HTTP Proxy Server
8] Now go to Mozilla Firefox and type http://www.irctc.co.in
9] Now Login in as a user and do some actions on the Mozilla Firefox and just logout and Stop the recording from proxy server in JMeter and then the recordings would be generated as a script in the JMeter Window.
10] Applying Load :
Number of threads – enter 5
Ramp up period – do not change
11] At this point, we are ready to run our test plan and see what happens. But first Save the test plan. When you're ready to run the test, there's two ways:
Ctrl + R
While the test is running, in the upper right-hand corner, there should be a green square.
When the test is done, the box should be grey.12] Now check the results of the script which we just run in the “View Results Tree” element below Thread Group element.
This is the way we record a test plan in JMeter. I hope you will not get any problems in recording if you follow all steps in flow.
How to get lower berth for all passengers travelling together...because irctc allocate only one person to LB ?
ReplyDeletewhat d hale is this ....its a example steps not an irctc complaint center.
ReplyDeleteLatest JMeter 2.9 has some updated in HTTP Proxy: now there is no need to add manually URL Patterns to exclude. HTTP Proxy has button "Add suggested Excludes", which are configured in jmeter.properties - by default - "proxy.excludes.suggested=.*\.js;.*\.css;.*\.swf;.*\.gif;.*\.png;.*\.jpg;.*\.bmp"
ReplyDeleteSome other updates desribed in post Jmeter 2.9 - What's new?
Hey,
ReplyDeletefirst let me thank you for your blog, very nice for a beginner like me
i did until step 9 (not included) when i needed to login as a user i needed to register first
there is a mandatory field - mobile
i cant insert it - i am from a different country +91 not good for me
any suggestions?
thanks
i.
Hey,
ReplyDeleteSuperb tutorial. But i am pretty advanced user. want an advanced tutorial on this. please can you post a tutorial for advanced user.
Hi What kind of advance you want to know buddy??
DeleteHow to get side berth . Please help me..
ReplyDeleteHaving Online booking ticket in mobile.. TTE is saying not a valid ticket. Please help me what to do..
ReplyDeleteThanks in Advance.
Nagarjuna Kommuri
I have boarded the train and forgot to bring ticket. Ticket Collector(TC) misbehaved with me and I want to file an complaint again him. Please help.
ReplyDeleteMy Details, are : Name : Deepak S, Coach No: S3, Berth No: 49,PNR No : 4159461619.
Install jmeter and book your complaint .........
DeleteFirst Check your log files and then install Jmeter....
Delete:) ha ha
DeleteI have boarded the train and forgot to bring ticket. Ticket Collector(TC) misbehaved with me and I want to file an complaint again him. Please help.
ReplyDeleteMy Details, are : Name : Deepak Surthi , Coach No: S3, Berth No: 49,PNR No : 4159461619.
Mobile No: 919704382122
this is an apache-jmeter website. not an IRCTC website. Nobody from IRCTC will be able to see these complaints.
ReplyDeleteNo, online booking does not work for me. Please help! Thanks in advance!
ReplyDeletekaun chutiya hai jo IRCTC ki complaint yahan post kar raha hai
ReplyDelete
ReplyDeleteNice blog..! I really loved reading through this article. Thanks for sharing such a amazing post with us and keep blogging...
ABiNitio online training in Hyderabad
ABiNitio training in Hyderabad
online ABiNitio training in Hyderabad
thank you so much
ReplyDeleteregard
rahul@7mcar.com
www.7mcar.com
thanks for sharing great article blog keeps posting like this with us. Fuel Digital Marketing is a house of the most talented content writers in Tamil Nadu, editors, and creative minds in Chennai.
ReplyDeleteBest SEO Services in Chennai | digital marketing agencies in chennai | Best seo company in chennai | digital marketing consultants in chennai | Website designers in chennai
you have written an excellent blog.. keep sharing your knowledge...
ReplyDeleteJMeter Training in Chennai
JMeter Training Institute in Chennai
JMeter Certification
ReplyDeleteAwesome blog. Thanks for sharing such a worthy information....
Angularjs Training in Bangalore
Angularjs classes in pune
Angularjs Training in hyderabad
Angularjs Training in Gurgaon
Angularjs Training in delhi
Angular Training in Trivandrum
Angular Training in Kochi
Angularjs Training in Ahmedabad
Angularjs Training in Kolkata
Best AngularJS classes in Mumbai
Wonderful post and more informative!keep sharing Like this!
ReplyDeletePHP Training in Bangalore
php classes in pune
php training in hyderabad
PHP Training in Gurgaon
php training in delhi