Monday, August 9, 2010

How to deploy the “Which US President?” demo application from

This is how to deploy the "FindPres - Which US President?" application given in the OpenSTA site.

Step 1: Download and install XAMPP for Windows - Direct Link

Step 2: Download the “FindPres - Which US President?” application from

Step 3: Extract the zip file and your will get two files named “findpres.plx” and “potus.dat”

Step 4: Rename findpres.plx to

Step 5: Copy the two files “” and “potus.dat” and put it in to C:\xampp\htdocs folder

Step 6: In order for the database to retrieve results you need to do a slight modification in the file. You need to include the full path of the in database location and also escape the \ character. 

In Line 7 replace:
my $database="potus.dat"; With

my $database="C:\\xampp\\htdocs\\potus.dat";

Step 7: Launch XAMPP from the Desktop shortcut “XAMPP Control Panel and Start” and Start “Apache”

Step 8: In the browser go to http://localhost/

The Which US President? Application should be up now.

To Login type a name for the UserId and reverse it for the password
Eg: Login ID    : safraz
      Password  : zarfas

Thanks Koshika for helping me out on this one..

Happy Testing!!

1 comment:

  1. Hi,
    This blog was really very helpful.

    Thanks alot!