Performance Testing – Flow or Step by Step Performance testing process – Jmeter or any tool

Performance Testing – Flow or Step by Step Performance testing process

  1. REQUIREMENT GATHERING FROM PO OR STAKE HOLDERS FOR PERFORMANCE TESTING OF
    API OR WEB APPLICATION or providing suggestion for performance testing for newly developed APIs or user side applications based on requirement and usage.
  2. BENCHMARK DEFINITION FOR API/WEB, Matrix creation for Threads and Rampup for creating Test scenarios PO & Tech leads
  3. TEST SCRIPT CREATION IN JMETER WITH MANUAL & RECORD & Playback
  4. Script modification for multiple data/parameterization of load.
  5. Test Server Setup with help of Infra team for separate execution of Jmeter script & enhancing servers requirement from Infra – Server capacity, memory
  6. Test execution with multiple loads & monitoring the response in multiple listeners. e.g. summary report, graphs etc.
  7. Server capacity increment to achieve desired load. (Including Jmeter running machine & Application server)
  8. Reporting with multiple listeners – excel report creations for errors.
  9. Presentation of report & conclusion to stakeholders/PO.

Simple steps to learn HP Performance center or Load runner recording. Load runner tutorial in parallel to Jmeter concept.

Hi Friends,

Hope you all are doing well in your fields πŸ™‚ and wish for more success in your life πŸ™‚
Today’s our post is not for non-technical readers 😦 (Sorry for that 😦 ).

Today we are going to learn HP performance center or load runner or Vugen or Vugen scripts or you can say performance testing πŸ™‚ .
Guys we have written many post for Jmeter previously and you can search those on our website and Jmeter is one of the best tool for doing performance testing.
But when you go to bigger or CMMi level companies then those people has a mentality that JMETER is a freeware and anybody can learn that – No big deal !! but they do not know what efforts it takes to use Jmeter. 😦 (Only Jmeter users know this πŸ™‚ It is not that easy when it throws exceptions πŸ˜€ !!).
So today’s agenda is clear to you right ? We are going to use Load runner/performance center which is a license version software.
By reading this post, you will easily crack your interviews and even you can clear practical rounds too πŸ˜‰ . If somebody has used Jmeter then this will be easier for them. So let’s start :-
[Some things will be high level in this post so please ask if you do not understand anything)

There are 2 component in HP load runner :-
1. Vugen (Virtual User generator) (To record and debug script using basic play).
2. Controller (to run Vugen scripts and get performance reports in detail)

We will learn How to create scripts in Vugen using record feature.

1. Install Vugen (Virtual user generator) for recording script and open it (I thought installation and setup will have no problem to anyone if you have purchased it πŸ˜‰ ). Select File > New script and solution.
This is basic like we do in any of our tool.

2. Select Single protocol in left panel and click “Web- HTTP/HTML” request for web recording. (This is like we select HTTP request from Sampler in JMETER). Below is the image (Our mind captures images more faster that boring text πŸ˜‰ for example if I right “Shakira” here in text or I show a pic of Shakira then what will be more sexy for you. LOL , come on the topic now πŸ™‚ )

Load runner initial Vugen script creation

Load runner initial Vugen script creation

3. Now after selecting web http request, fill the name and some basic details and click OK. See below. Your screen should look like below πŸ™‚

In above image, you will see that there are three nodes. Init, action and end. If you have used Jmeter properly or systematically πŸ˜‰
then you have used simple controller to put login requests and close requests. Not getting my point πŸ˜€ . That’s why I used word Systematically :D.
Let me explain you – In Jmeter we use recording controller to capture our all requests, but what I generally do is I extract login requests from recording controller and put them in a simple controller and rename it Login request. Similarily I extract logout request and put them in another simple controller and rename it Logout requests. So all the time login and logout will be same so you do not need bother about their handling.
Similarly, in Load runner Init, Action and End will work. Init will take login or initial setup script, Action will contain main actions or main steps of script and End will contain logout or requests which you want to run after your main test. [I know you got my point now πŸ™‚ and if not then stop reading here and use Jmeter first πŸ˜€ LOL, go ahead I will help you more].

4. Now what we do in Jmeter for recording ? We setup Http recorder in Work bench, then we take recording controller, then set proxy and bla bla bla….. right ? (asking to Jmeter users only πŸ˜€ ).
Here we have advantage, we do not have to setup that kind of stuff in Vugen script. Here just click and red button and enter what you want to record and where like your website URL and browser name. See below guys :-

load runner recording

5. Now we are almost ready to record. You have to click start recording button and you are ready. New browser will be opened with your application URL and a recording tool bar. See below :-
recording toolbar

6. Stop the recording after all your actions and new popup will open. User can replay and debug the script in Vugen also.

7. You can replay whole script as well as step by step individually. See below :-

8. Script will be seen as below after successful run –

So guys, you have successfully learned Load runner Vugen recording by above steps (Hope so πŸ˜‰ ).

We are not streching this post because you may get bored in one day πŸ™‚ . In our next post, we will learn how to run this above Vugen created script in HP- Controller.

Thanks for patiently reading the post and it is very easy to learn HP-Load runner. We will help you. (Some of load runner experts were thinking that what a boring post or what new you have done in this article, these are already mentioned in Load runner guide. πŸ˜€ but the new comers will love me after reading this as I have blended it with love of Jmeter πŸ˜‰ ).

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]. We will be really grateful to you πŸ™‚ and still we are πŸ˜‰ .

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/

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/

Thanks!!
KnowledgeWorldforYou Team πŸ™‚

Jmeter : FTP performance testing full understanding and practical example

FTP(File transfer protocol) –  By using this protocol, you can easily transfer files. Transfer means you can uploadΒ  or download a file to and from of a FTP server.

Now what is FTP serverΒ  ? FTP server is a server, which stores file s so that specific or all the users can access them.Access means if they have only download rights then they only can download and if they have upload rights then they can only download the files. If they have both the rights then they can do both actions(Upload and download). It is just similar like we share a folder in our network to specific or all the people so that they can read/write or read write both to the files present/put in the folder.

Now here in Jmeter if you want to test that what is the performance of a FTP site when there are a large number of users access to it for uploading and downloading the files on FTP, so we can test it using Jmeter.

The general concept is that if we download the file from a server means you only have read/download rights.So in jmeter when you download a file from a FTP server to your system or any system then you only have to access the FTP server and enter credentials if any(generally usernameΒ  – Anonymous Password – Anonymous). Now you can easily download the file by specifying FTP server IP or nameΒ  and specifying the folder path of the FTP server from where you want to download the file.

Now but in case you want to upload(Put) a file to any FTP server then you not only have to get access of that server using credentials but also you should have access of write permission to the folder in which you want to upload a file in FTP server. Like if you want to upload a file onΒ  FTP server 192.168.1.22 and the folder is XYZ named, then you have to check or the folder XYZ should be shared and write permission should be there to all or your user from which you want to upload the file.

Means if you get any error that no login then you require credentials or check your credentials are correct you have entered.

Now if you get operation not completed error then you should check the permission of folder in which you want to upload file in FTP server(Full control permission should be assigned to that folder)

  1. Open the Jmeter and add thread groups in test plan. Test plan>thread group
  2. Now add a FTP request sampler using Thread group>Sampler>FTP request
  1. Now in above snap, the server name or IP is from where I want to download the file and remote file is the name of file which I want to download. You can also specify the path of folders if file is in folders like /foldername/filename.txt or extension.
  2. Do not forget to mention the correct file extension as it is mandatory otherwise you will get errors and if you have write file .xls while it was .xlsx then it will corrupt your file
  3. Now local file is the file path where in your system you want to download the file
  4. You have to mention a file name with extension(same as remote file extension) in the local file
  5. Now you want to download or get so select the get request and enter credentials in login configuration and save the test plan and run it. You can check your result in any listener or you can check your specified folder in above local file. If success, you will get the file.

Now if you want to upload any file then firstly go to the FTP server(I have installed a Golden FTP server for my testing).

  1. Now go to your FTP server and create a folder or add a folder in your FTP server and allow full control rights on your folder.
  2. You can also do this. Go to your FTP server>Create a folder >Share it to every body because you should have read and write rights to upload the file.
  3. Now add this shared folder in your FTP management tool so that it will grab a location and upload it because you cannot upload any file on any FTP server if you do not have write permission to do so.
  4. Here in below image, the backup work folder is shared by 192.168.2.161 server.
  5. Now I want to upload a file name new questions.xlsx to ftp server’s folder named Backup work
  6. I have to use POST method to do this

You will get the success as below and you can go and check the folder for uploaded files.

Jmeter  FTP performance testing full

Jmeter  FTP performance testing full 2

 

Please like us on facebook for more to connect
https://www.facebook.com/pages/Knowledge-World-For-You/1660665640835573

http://www.knowledgeworldforyou.com/

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