Thursday, December 1, 2011

Recording a Test Plan

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.

1] Go to jakarta-jmeter-2.5.1 > bin > ApacheJMeter (Executable Jar File)


    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

            A HTTP Request element will be added below Thread Group in element tree and now Add the Server Name or IP as “

4] Add Recording Controller to the Thread Group
                     Right Click on Thread Group > Add > Logic Controller > Recording Controller

5] Add Proxy Server to the Workbench
                  Right Click on Workbench > Add > Non-test Elements > HTTP Proxy Server

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

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 :
            Select Thread Group
            Number of threads – enter 5
            Ramp up period – do not change
            Loop count – 5

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:
            Run menu > Start          OR
            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.


  1. I booked a rail ticket for me using irctc vide PNR no. 2562870011 (Transaction ID: 0480387060) for journey from DMO-LTT on September 2, 2012 for the journey on September 22, 2012 in Train No. 11072, the only train plying to Mumbai from nearest station from my home town. Unfortunately, I could not travel and i had to file TDR on 16/09/2012. I was informed by irctc that refund will come within 90 days.

    After 4 months of follow up, the status of TDR is showing as regretted. Please hold to get the refund.
    I filed the complaint in Consumer Court also but. Still not got any response. Please help me to get some solution.

    1. Machine Learning Projects for Final Year machine learning projects for final year

      Deep Learning Projects assist final year students with improving your applied Deep Learning skills rapidly while allowing you to investigate an intriguing point. Furthermore, you can include Deep Learning projects for final year into your portfolio, making it simpler to get a vocation, discover cool profession openings, and Deep Learning Projects for Final Year even arrange a more significant compensation.

      Python Training in Chennai Python Training in Chennai Angular Training Project Centers in Chennai

  2. How to get lower berth for all passengers travelling together...because irctc allocate only one person to LB ?

  3. what d hale is this ....its a example steps not an irctc complaint center.

  4. Latest 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 - by default - "proxy.excludes.suggested=.*\.js;.*\.css;.*\.swf;.*\.gif;.*\.png;.*\.jpg;.*\.bmp"
    Some other updates desribed in post Jmeter 2.9 - What's new?

  5. Hey,
    first 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?

  6. Hey,

    Superb tutorial. But i am pretty advanced user. want an advanced tutorial on this. please can you post a tutorial for advanced user.

    1. Hi What kind of advance you want to know buddy??

  7. How to get side berth . Please help me..

  8. Having Online booking ticket in mobile.. TTE is saying not a valid ticket. Please help me what to do..

    Thanks in Advance.
    Nagarjuna Kommuri

  9. 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.
    My Details, are : Name : Deepak S, Coach No: S3, Berth No: 49,PNR No : 4159461619.

    1. Install jmeter and book your complaint .........

    2. First Check your log files and then install Jmeter....

  10. 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.
    My Details, are : Name : Deepak Surthi , Coach No: S3, Berth No: 49,PNR No : 4159461619.
    Mobile No: 919704382122

  11. this is an apache-jmeter website. not an IRCTC website. Nobody from IRCTC will be able to see these complaints.

  12. No, online booking does not work for me. Please help! Thanks in advance!

  13. kaun chutiya hai jo IRCTC ki complaint yahan post kar raha hai

  14. My friend Suggest me this blog and I can say this is the best blog to get the basic knowledge.Thank you so much for this Selenium Training in Chennai

  15. A Pioneer Institute owned by industry professionals to impart vibrant, innovative and global education in the field of Hospitality to bridge the gap of 40 lakh job vacancies in the Hospitality sector. The Institute is contributing to the creation of knowledge and offer quality program to equip students with skills to face the global market concerted effort by dedicated faculties, providing best learning environment in fulfilling the ambition to become a Leading Institute in India.

    cha jaipur
    hotel management college in jaipur
    management of hospitality administration jaipur
    cha management jaipur
    Hotel management in jaipur
    Best hotel management college in jaipur
    College of Hospitality Administration, Jaipur
    Top 10 hotel management in jaipur
    Hotel management collegein Rajasthan
    College of Hospitality Administration
    premier hotel management institute in india

  16. nice blog
    Great Information.
    Skin Course
    VLCC Institute believes in providing students with opportunities to learn from the real world experience, even during their student life.
    Through Internship programmes and Industry interactions, students learn and practise in the real world environment.


  17. Nice 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

  18. thank you so much


  19. The article is so appealing. You should read this article before choosing the Hadoop consulting services you want to learn.


  20. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    welcome to akilmanati

  21. 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.

    Best SEO Services in Chennai | digital marketing agencies in chennai | Best seo company in chennai | digital marketing consultants in chennai | Website designers in chennai

  22. I just loved your article on the beginners guide to starting a blog.If somebody take this blog article seriously
    in their life, he/she can earn his living by doing blogging.Thank you for this article.
    best tibco sportfire online training

  23. I just loved your article on the beginners guide to starting a blog.If somebody take this blog article seriously
    in their life, he/she can earn his living by doing blogging.Thank you for this article.
    best blueprism online training

  24. Hey.. I have read your blog its very attractive and impressive. Nice information. It helped me alot. this blog information is awesome,thanks for sharing this. IF ou are searching some knowledegable Information then visit our website..

    Hindi Main Jankari
    DM Full Form
    What is the BE Full Form
    What is the HR Full Form
    Depression Meaning in Hindi
    Full Form of INDIA / INDIA Full Form
    Govt jobs sites list 2021
    Raksha Bandhan 2021 Rakhi Shubh Muhurat