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)

                                                                     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

            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



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

37 comments:

  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.

    ReplyDelete
    Replies
    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

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

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

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

    ReplyDelete
  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?
    thanks
    i.

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

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

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

    ReplyDelete
  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

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

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

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

      Delete
  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

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

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

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

    ReplyDelete
  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

    ReplyDelete
  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
    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

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

    ReplyDelete

  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

    ReplyDelete
  18. thank you so much

    regard
    rahul@7mcar.com
    www.7mcar.com

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

    ReplyDelete

  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
    akilmanati

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete