Archive for June, 2009

Rest in Peace IE6!

June 30, 2009 Leave a comment

As Software Quality Assurance, we have encountered a lot of UI issues when AUT is tested in IE6. And as much as our developers struggles to find solutions to this less than impossible defects, we appeal and protect the user interest in experiencing a user-friendly application. So we are in one in spreading out this news.

Obituary Notice

IE6 Bugs, Problems, Fixes, Solutions, Tips & Tricks, Hints? NO MORE! .:.

Shared via AddThis

Categories: quality assurance Tags: ,

Jmeter: Add “Cookie Manager”

June 29, 2009 10 comments

Objective: Create an automated scripts using JMeter that will do the following scenarios in a healthcare system application and use the same scripts to register more patients.

1. admin user login

2. register new patient

3. save registration

4. verify new patient in the patient’s list

5. admin logout

Issue: Changing values of an automated scripts does not add the new value to the database on test playback.

Here’s how we do it:

1. In our JMeter testplan, add a Non-Test Element>Proxy Server in the WorkBench to do the initial recording.

2. Add Constant Timer under your HTTP Proxy with value “S{T}” to capture the actual delay during recording.

3. Start your browser, enable proxy in your browser and start recording.

4. After one action is recorded, JMeter generates a Header Manager which allows you to customize what information JMeter sends in the HTTP request header. Make a copy of the Header Manager from the first sample and paste it as a child of  your thread group before all the HTTP requests, this will serve as the default header manager to be used.  Continue recording until all the scenarios are finished.

5. After recording, update the samples to a more descriptive names just like this:

Recorded scripts

At this point, new user created during recording is successfully added in the database when manually validated. Next steps will help us parameterized and set new values for our new user.

6. To parameterized your login account, go to your thread group, add a Config Element > User Defined Variable. Then set values for login and password that are accepted in the appliication (in my case, login = admin; password=admin)

Login parameterization

7. Update your “login” sample by changing Value to ${Variable_name}


8. Now go to your “fill out express registration form” sample and edit new values for last name, first name and middle name.

new user

8. Run playback or hit CTRL-R to add to automatically add the new user values.

Actual: Scripts are successfully run but new user is not added in the user list

Expected: Succesfully run the script and add the new user in the user list

Solution: After futher readings of JMeter forums and wikis, I bumped across this post, and in its one reply suggest to add a Cookie Manager. True enough after adding a Config Element > Cookie Manager, set its Policy to “Compatibility,” and rerun the scripts, the new user value we edited was successfully added in the user list.

cookie manager

Cookie Manager, saves the day!