Archive for March, 2009

Configure Mozilla Thunderbird and MS Outlook side by side

March 30, 2009 Leave a comment

We received an issue from our client on receiving email with multiple information on single line. Basically the web app allows user to fill out an application form. This application will be received by  the Sales team as email for approval. The email should display the details with proper indention, one detail per line. However our client received an email where multiple information are being displayed in a single line.

This issue was not reproducible in our end using Mozilla Thunderbird2.0, all fields are displayed accordingly. So I tried to simulate it in MS Outlook Express.

To do this, I need to setup MS Outlook and configure my corporate email where I will receive the sent application form having the same settings on my Thunderbird.  Since I have Internet Explorer7.0 installed in my box, it comes with MS Outlook Express6.0 SP2 as a component. Now let’s do the configuration part:

1.  Go to Tools>Accounts, Click Add>New Mail

2. Follow wizard and provide the following information:

Display name: <yourname>

Email address: <youremail> (in my case I use my corporate email account)

Incoming mail server: (since I’m currently using POP Mail Server on my Thunderbird)

Outgoing mail server:

4. After the wizard, Go to Tools> Accounts, click “Mail” tab, you should be able to see your account in the list


5. Select then click Properties, Go to Servers tab and verify details as follows:


6. Go to “Advanced” tab and set corresponding PORT for each server SMTP = 465; POP = 995. Don’t forget to set server to use secure connection (SSL)


Here’s the trick, since we are using the same email account in two different email client using POP3 incoming mail server. We need to set the 2nd email client not to delete the incoming emails in the server when we refreshed. We also do this in the “Advanced” tab by checking Delivery options as shown above.

With these setting, receiving mails in the MS Outlook will still allow user to receive the same incoming mails in the Thunderbird.

Now I can test the same scenario using email sent on Mozilla Thunderbird and MS Outlook.

JMeter 101: Using HTTP Proxy to Record your Test

March 18, 2009 62 comments

HTTP Proxy Server is a non-test element feature of JMeter which enables user to record scripts from a real browser.

1. Add Thread Group in your Testplan

Add Thread Group

2. Add Proxy Server to WorkBench

  • Add Non-test Elements > HTTP Proxy Server


  • Set “Target Controller” where your recorded scripts will be added


  • Set URL patters to INCLUDE or EXCLUDE

    • .* – all
    • .*\.png – all png images
    • .*\.gif – all gif images
    • .*\.jpg – all jpg images
    • .*\.php
    • .*\.jsp
    • .*\.html
    • .*\.htm
    • .*\.js
  • Click START


3. Set your Browser to use Proxy (I used IE7 browser)

  • Go to Tools > Internet options > Connections > LAN Setting
  • Select “proxy server”
  • Set Address = localhost; Port = 8080


4. Browse your application and record

5. In HTTP Proxy Server, click “Stop” when finished

To verify if recording was successful, you should be able to see HTTP requests generated under your “Target Controller”

More Tricks:

Add a Constant Timer to the HTTP Proxy Server node to record your think-time (right-click on the “HTTP Proxy Server” node and choose “Add,” “Timer,” and then “Constant Timer.”)

Next change the “Thread Delay” on the timer to “${T}” to tell the proxy server to record your time rather than to add a constant time for each request.

JMeter 101: Analyze your Test Results

March 18, 2009 1 comment

To help you analyze your testing efforts, JMeter provides different types of Listeners. Listeners are JMeter components that show the results of the samples. The results can be shown in the form of a tree, tables, graphs or simply a log file.

Here are some of the listeners that I’ve tried:

1. Graph Full Results / Graph Result

2. Aggregate Graph

3. Aggregate Result

4. Summary Result

5. View Result in Table

6. View Result Tree

JMeter 101: Write your first load test script

March 18, 2009 4 comments

Going through this session, assumes that you have successfully set-up JMeter distribution(latest version is 2.3.2) in your box, but if not, it’s never too late you can still check it out on my previous post – JMeter 101: Introduction.

Using the friendly GUI of Jmeter, lemme me help you explore and write your first load test script.

1. Go to “bin” folder of your JMeter distribution, double click “jmeter.bat” file

2. Simulate users by adding a Thread Group.

Add Thread Group

Add Thread Group


  • Set Number of threads(users) = 5, => the number of concurrent users we want to simulate
  • Set Ramp-up Period(in seconds) = 10,  => the amount of time it will take to create the threads/users

In this example, Jmeter will create a thread every 2 seconds (10/5). If ramp-up period is set to “0” or blank, Jmeter will create all the threads immediately.

  • Set Loop count = 1, => the number of times to execute the test

3. Simulate web requests by adding Sampler > HTTP Request

Add HTTP Request

Add HTTP Request


  • Set a descriptive HTTP request name
  • Set Server name or IP =
  • Set Path = “/”, which is Yahoo Homepage

4. To help us analyze the results, add the following listeners

Add Listener

Add Listener

  • Listener > Aggregate Report
  • Listener > View Result Tree

5. Save your script with .jmx extension

6. Go to Run > Start (ctrl + R)

JMeter 101: Introduction

March 18, 2009 3 comments

I. What is Jmeter?

Apache JMeter is a 100% pure Java desktop application designed to load test functional behavior and measure performance. JMeter may be used to test performance both on static and dynamic resources . It can be used to simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types.

II. Why choose Apache Jmeter?

There are wide load testing tools to choose from. There are open source tools like Open STA, http_load, The Grinder, Siege including Jmeter. And commercial tools like LoadRunner, WebLoad etc. But why would we pick Jmeter from this list? Lemme help you decide…

  1. Jmeter is FREE! – no monthly charges
  2. Easy to install and use – 100% JAVA with friendly GUI
  3. Feature rich
  • Record from browser
  • Load test data from files
  • Add logic, variables and functions
  • Run distributed testing from multiple machines
  • Variety of protocols: Web – HTTP, HTTPS; SOAP; Database via JDBC; LDAP; JMS; Mail – POP3

III. What are the requirements of Jmeter?

  1. Java Virtual Machine – JMeter requires a fully compliant JVM 1.4 or higher
  2. Operating System
  • Unix (Solaris, Linux, etc)
  • Windows (98, NT, XP, etc)
  • OpenVMS Alpha 7.3+

IV. Where to get Jmeter?

Download from

I choose the binary version of 2.3.2 release for my Windows XP box.

V. How to run JMeter?

  1. Unzip Jmeter distribution file to desired path
  2. Go to “bin” directory
  3. Run Jmeter file
  • Windows : double click jmeter.bat
  • Mac : double click ApacheJmeter.jar
  • Unix : double click OR run ./jmeter from the command line

From Jmeter’s friendly GUI, we can now create, record and configure scripts for our load test.

For comprehensive tutorials visit