How to use Badboy tool for Recording Jmeter load testing scripts ?

Hey Friends,

During my work, I found someone saying that this SSL techniques of Jmeter for recording the load testing script is someway hard to understand and apply, so one of my friend suggested me to use Badboy tool, it is free to use.

So How to use Badboy script in Jmeter ?

Here are the steps for beginners and smart people –

1. Install the badboy tool from linkΒ http://www.badboy.com.au/download.

2. Now open the bad boy tool from your startup menu

badboy1

3. This will open your bad boy tool with a cool boy icon.

badboy2

4. Now you will see an address Bar on the top of the application

badboy3

5. Enter your Application (which you want to test for load or performance) URL in the address bar and Click Green icon or directly press enter button. It will load your URL of application.

badboy4

6. Now a good point for those who are thinking that My application is working on Local IP so is it work for that ? So don’t worry my friends, it will work for those also.

You can check screenshot in above point 4, there I had used an IP address on which my application was running, so dont worry…. πŸ™‚

7. Now after entering URL of application, you can see that there is a dark red button on the tool bar of this application… Yes you got it right….. πŸ™‚ Click on that red button.

badboy5

8. Now your script recording is started, now click on the pages or actions which you seems to be performed for load testing like search records, listing pages, data grid.

9.Now export this file to Jmeter by going into File>Export to jmeter

HOW TO LOGIN IN A SITE WITH USERNAME AND PASSWORD USING SELENIUM WEBDRIVER

 

10. Now you can use this .Jmx file into your Jmeter tool and run this.

So this is all about use of badboy to create jmeter script.

You can also see the results in Badboy tool on left hand side of tool by clicking on samples

It will give you graph view etc.

I personally suggests to use Jmeter proxy recording.

Thank you guys n girls. Keep posting your responses…

Thanks for reading….See you in next post. πŸ™‚

Thank you for your appreciation and donations πŸ™‚ and if you really feel happy by reading this, then you can help us by donation using donation box or using paypal link https://www.paypal.me/knowledgeworldforyou πŸ™‚ [Donation box is in the left side bar on our website (http://www.knowledgeworldforyouteam.com/ ) ]. We will be really grateful to you πŸ™‚ and still we are πŸ˜‰ .

donation-box

Please visit us and like on social media to encourage us more for writing and sharing with You.
http://www.knowledgeworldforyouteam.com/
https://www.facebook.com/Knowledge-World-For-You-1660665640835573/timeline/
https://twitter.com/you_knowledge

JMETER – PERFORMANCE OF CPU AND MEMORY USAGE USING PERFMON PLUGIN

  1. Β Open the Jmeter Application by clicking Jmeter.bat file in your Jmeter>bin folder-jmeter 12. Right click on test plan>Thread groud>Add thread (Number of users you want to test for)jmeter 23. Right click on thread group >Logic controller> Recording controller –

    jmeter 3

    4. Right click thread group>Config elements and add all four requests

    4.1 HTTP default request, HTTP Cache manager, HTTP Cookie manager,HTTP header manager

    jmeter 4

    5. Now click on HTTP requests default and in right side enter server name like (jmeter.apache.org or 192.168.1.xx)and PortΒ number (default 8080).

    jmeter 5

    6. Enter your system’s IP and default port in bottom of the HTTP requests.But remember – Remove this IP of your system when you start to run your recorded script.I will explain in last why this is?

    jmeter 6

    7. Now right click on workbench > Non test element> HTTP test script recorder

    jmeter 7

    8. Now click start at bottom of the test script recorder –

    jmeter 8

    It will show a certificate message like below –1

    9. Now you have to configure your browser and will import this generated certificate in your browser in which you want to record script – Open any browser>go to settings>Manage certificate>Import certificate >Select the generated certificate in Jmeter>Bin folder

    jmeter 10

    11. Now after import successful of this certificate, you can check it into your browser and verify the certificate details –

    jmeter 11

    12. Now you have to set your browser for Proxy . For this Go to browser>Settings>Network>Change proxy settings – You will open this popup

    jmeter 12

    13. Now Click on Lan Settings> Uncheck all check boxes and only Check Proxy server >Use a proxy server for your LAN >Enter your System IP address and Port (default 8080)

    jmeter 13

    14. Now Your browser is ready for recording. You can check this by entering any site like http://www.xxxyyy.com- It will show you page not available

    15. Now come to the Jmeter and click on Start button(If it is already stop) of HTTP recorder and enter your testing site in your currently configured browser (In above steps) –

    You will see the recording script working under recording controller node –

    jmeter 15

    16. Now after your recording is done – Save this recording before running your test – File >Save as

    17. Now you want to see your performance result so that you have to add listener before running test.You can right click on Thread group

    jmeter 16

    17.1 Now Click on run button (Green button >) and then select your added listener jmeter 17(Here is Result tree )

    18. After running you will see warnings in your test.It means your recorded test script is not working correctly.Now go to “HTTP Request default” by clicking in thread group tree and remove your system IP and port.

    jmeter 18

    19. Now save it and run again – Now your test will be passed and will show green status

    Jmeter 19

    1. For Checking the CPU performance, Memory Usage of the server, You have to Integrate Perfmon Plugin in your Jmeter.

    You can download perfmon plugin from universal Jmeter link-

    http://jmeter-plugins.org/downloads/all/

    Installation or integrate Plugin with Jmeter –

    1. JMeterPlugins-x.x.x.zip – contains plugins, must be unpacked intoΒ lib/extdirectory inside JMeter
    2. Restart JMeter to load new plugins
    1. Now you will see something new in your JMETER – like below image

    jmeter perfmon

    1. Now you have to configure your Perfmon Metrics collector (listener) for your server on which you want to perform load.

    For this You have to enter your server IP or server name like (google.com) in your Host Name and default Port should be 4444(Do not change this for all the hosts)

    jmeter perf2

    1. Now Save the Test Plan and do not run right now as there is one important step remained. L

    Your server will not send directly its CPU usage and also you do not know what amount of memory is installed on your Testing server.

    For this you have to run a simple server agent Batch file for windows (For linux .sh file)

    You can download this file (ServerAgent-2.2.1.zip,)from –

    http://jmeter-plugins.org/downloads/all/

    1. Now copy this Zip file on your server on which you want to test load.(In my case I have told to my Project manager as he had the rights of testing server on which my application is running)
    2. Extract the file in the C driver or Project folder of which IP you are using the application.

    Like in my case I was testing the application on 192.168.x.xx/projectname/login

    So I have installed the server agent on 192.168.x.xxΒ  system folder where all the project files resides.

    1. Now come to the point and after copying server agent files. Open the folder and click on startagent.bat file on your testing server.

    It will run like in command prompt black screen. Do not close this command window on your testing server until your testing is not completed for performance of CPU and memory,because this agent will send the information to the Perfmon plugin on which you are using your jmeter (Testing server and Jmeter can be on same machine. In my case I was using jmeter on my machine and testing server was installed on other machine so…..)

    Now come to the machine on which you are running Jmeter.

    1. Now click to Run button on jmeter (Before starting if you see the chart by clicking perfmon listener, it will show message Waiting for samples….)
    2. After startup , it will show the grap like below –

    jmeter perf3

    1. Your graph will show readings in Percentage on Y axis and in seconds on X axis so do not be confused.
    2. You can also save this graph in Image format as well as in CSV or excel format simply by right clicking on the graph.

    jmeter perf4

    1. One thing to remember which I had mistaken – Server will not send its reading without Samples. So you have to record samples and side by side check their green status like below

    So this is completed your Perfmon plugin CPU performance reading and Memory usage.

    Thanks for reading …:)

    See you guys in next……. πŸ™‚

    Thank you for your appreciation and donations πŸ™‚ and if you really feel happy by reading this, then you can help us by donation using donation box or using paypal link https://www.paypal.me/knowledgeworldforyou πŸ™‚ [Donation box is in the left side bar on our website (http://www.knowledgeworldforyouteam.com/ ) ] . We will be really grateful to you πŸ™‚ and still we are πŸ˜‰ .

    donation-box

    Please visit us and like on social media to encourage us more for writing and sharing with You.
    http://www.knowledgeworldforyouteam.com/
    https://www.facebook.com/Knowledge-World-For-You-1660665640835573/timeline/
    https://twitter.com/you_knowledge

    Thanks!!
    KnowledgeWorldforYou Team πŸ™‚