Monday, July 30, 2012

JMeter Installation and Configuration

JMeter is OpenSource performance testing tool. It's developed by 100% Java. It's very powerful, enable full multithreading capability and flexible for testing various technologies.

Out of the box, it support following technologies:
  • Web - HTTP, HTTPS
  • FTP
  • WebServices SOAP
  • Database via JDBC
  • LDAP
  • JMS
  • Mail (SMTP, POP3, IMAP)
  • Native Command or Shell Scripts
However, with plugins, it can support many more technologies.

You only need to make sure Java version is 1.5 or higher. You can download/update Java from
*** Check version of java

Installation of JMeter

  • First download JMeter from
  • Select latest "" file. In our case, we will download ""
  • Unzip it in somewhere in your computer. In our case, "C:\Program Files\Apache\JMeter"

How to check Java Version

Almost all the computers comes with some version of Java. So, how do I check what version of Java install in my computer? I will show you several ways to check the Java version.

First Method:
I prefer this method since it is by developer of Java (Oracle).
  • Open the Browser (Internet Explorer or Firefox). You may find different Java Version on different browsers.
  • Go to:
  • Click on the "Verify Java version". If this changes to something else, click on the similar button. It will tell you the Java version installed on your computer. If it's out dated, it will recommend you to appropriate version.
Verify Java version

Second Method:
This method is also very easy and similar to the first method:
  • Open the Browser (Internet Explorer or Firefox). You may find different Java Version on different browsers.
  • Go to the It will load the version of the Java you have installed for the open browser.

Third Method:
This method is mainly for Windows environment.
  • In Windows XP/7, click on "Start" button located in lower left corner of the desktop.
Windows 7 and XP Start Menu

  • If you are using Windows XP, click on the "Run.." and type "CMD" on the Run window and hit {ENTER}. Command Prompt will appear.
  • If you are using Windows 7, type "CMD" in the "Search programs and files" field and click {ENTER}. Command Prompt will appear.

  • With the Command Prompt open, type in java -version, this will display the current java version

Tuesday, July 10, 2012

What is Performance Testing?

Definition: In software engineering, performance test is a process to measure system's (Application, Network, Database or Devices) speed (responsiveness), stability and scalability under particular work load.

Core Performance Testing Activities:
 1. Identify the Test Environment:  Identify the physical test environment. The physical environment includes hardware, software, and network configurations. Having a thorough understanding of the entire test environment at the outset enables more efficient test design and planning and helps you identify testing challenges early in the project. 

2. Identify Performance Acceptance Criteria:  Identify the response time, throughput, and resource utilization goals and constraints. In general,
  • Response time is a user concern, 
  • Throughput is a business concern, 
  • Resource utilization is a system concern. 
Additionally, identify project success criteria that may not be captured by those goals and constraints; for example, using performance tests to evaluate what combination of configuration settings will result in the most desirable performance characteristics. 

3. Plan and Design Tests:  Identify key scenarios, determine variability among representative users and how to simulate that variability, define test data, and establish metrics to be collected. Consolidate this information into one or more models of system usage to be implemented, executed, and analyzed.    

4. Configure the Test Environment:  Prepare the test environment, tools, and resources necessary to execute each strategy as features and components become available for test. Ensure that the test environment is instrumented for resource monitoring as necessary. 

5. Implement the Test Design:  Develop the performance tests in accordance with the test design. 

6. Execute the Test:  Run and monitor your tests. Validate the tests, test data, and results collection. Execute validated tests for analysis while monitoring the test and the test environment. 

7. Analyze Results, Report, and Retest:  Consolidate and share results data. Analyze the data both individually and as a cross-functional team. Re-prioritize the remaining tests and re-execute them as needed. When all of the metric values are within accepted limits, none of the set thresholds have been violated, and all of the desired information has been collected, you have finished testing that particular scenario on that particular configuration.

Few example of why performance test is conducted:
  • Validating that the application performs properly
  • Validating that the application conforms to the performance needs of the business
  • Finding, Analysing, and helping fix performance problems
  • Validating the hardware for the application is adequate
  • Doing capacity planning for future demand of the application

Monday, July 9, 2012

Popular Performance Testing Tools

There are many different performance testing tools. Everyone claims their tools are the best. Here are my picks and this is what I think.

Commercial Performance Testing Tools:

HP Performance Center:

HP LoadRunner:

Neotys Neoload:

Open Source Performance Testing Tools:

Apache JMeter

Saturday, July 7, 2012

HP LoadRunner Download Free

HP LoadRunner is the industry standard performance testing solution. It support many protocols (type of applications) such as HTTP/Web, HTML 5, Mobile, iOS and Android Native Application, Citrix, Flex, Ajax, Java, and 40+ other protocols.

Click here to Download HP LoadRunner Free

LoadRunner License: LoadRunner installation comes with 10 days free trial with 25 virtual users.