David’s Thesis Blog


YahooWebSearch Tester
August 28, 2008, 2:24 pm
Filed under: Uncategorized

The Yahoo Web Search tester class is completed. Below is an example output running on only 2 threads, also because I’m capped for the month the response times might seem a bit high.

Source code for class provided below aswell.

Output:

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.


C:\PerfTester>ant test
Buildfile: build.xml

test:
     [java] test config fileName = C:\PerfTester\test.prop
     [java] Tester.init(C:\PerfTester\test.prop) called
     [java] — listing properties —
     [java] testName=Yahoo
     [java] testWarmup=5
     [java] testCooldown=5
     [java] testClassName=YahooTester
     [java] testThreadNmuber=2
     [java] testRuntime=10000
     [java] Tester.run() called
     [java] testThreadNmuber = 2
     [java] To instance a test driver
     [java]
     [java] Searching for: Devin
     [java] The number of query matches in the database: 33700000
     [java] The number of query matches returned: 10
     [java] The position of the first result in the overall search: 1
     [java] First Page title: MySpace.com – Devin the Dude – R.I.P. PIMP C, US –
 Rap / Hip Hop – www …
     [java] First Page url: http://www.myspace.com/devinthedude
     [java] First Page summary: MySpace music profile for Devin the Dude with to
ur dates, songs, videos, pictures, blogs, band information, downloads and more
     [java]
     [java] Searching for: Leticia
     [java] The number of query matches in the database: 11200000
     [java] The number of query matches returned: 10
     [java] The position of the first result in the overall search: 1
     [java] First Page title: Leticia, Colombia – Wikipedia, the free encycloped
ia
     [java] First Page url: http://en.wikipedia.org/wiki/Leticia,_Colombia
     [java] First Page summary: Leticia has long been Colombia’s shipping point
for tropical fishes for the aquarium trade. Leticia has approximately 37,000 inh
abitants on the left bank of the …
     [java]
     [java] Searching for: Tina
     [java] The number of query matches in the database: 155000000
     [java] The number of query matches returned: 10
     [java] The position of the first result in the overall search: 1
     [java] First Page title: Tina Pro
     [java] First Page url: http://www.tina.com/
     [java] First Page summary: Package for designing, analysing, and measuring
analog, digital, and mixed electronic circuits.
     [java]
     [java] Searching for: Kendall
     [java] The number of query matches in the database: 56100000
     [java] The number of query matches returned: 10
     [java] The position of the first result in the overall search: 1
     [java] First Page title: Home Page for Kendall Brands – Covidien
     [java] First Page url: http://www.kendallhq.com/
     [java] First Page summary: USA. Manufacturers of medical and consumer hygie
ne products. Converters … Kendall AMDÖ Wound Care Dressings COPAÖ Ultra-Soft F
oam Dressings KANGAROO ePUMPÖ …
     [java]
     [java] Searching for: Reid
     [java] The number of query matches in the database: 129000000
     [java] The number of query matches returned: 10
     [java] The position of the first result in the overall search: 1
     [java] First Page title: Senator Harry Reid
     [java] First Page url: http://reid.senate.gov/
     [java] First Page summary: Democratic senator from Nevada and Senate Majori
ty Leader.
     [java]
     [java] Searching for: Litzy
     [java] The number of query matches in the database: 149000
     [java] The number of query matches returned: 10
     [java] The position of the first result in the overall search: 1
     [java] First Page title: Litzy Dominguez – Wikipedia, the free encyclopedia

     [java] First Page url: http://en.wikipedia.org/wiki/Litzy
     [java] First Page summary: Litzy Online (in Spanish) Mas Transparente Litzy
 site (in Spanish) Litzy bio on Disco de Oro section at TVAzteca.com (in Spanish
) …
     [java]
     [java] Searching for: Saniya
     [java] The number of query matches in the database: 199000
     [java] The number of query matches returned: 10
     [java] The position of the first result in the overall search: 1
     [java] First Page title: Sania Mirza Wallpapers, Tennis Star Saniya Mirza’s
 Pics, Gallery and …
     [java] First Page url: http://www.saniyamirza.org/
     [java] First Page summary: Displays news, images and articles about the ten
nis player, including … Saniya Mirza l Wallpapers l Blog l Biography l Persona
l l The Player l Career l News …
     [java]
     [java] Searching for: Lydia
     [java] The number of query matches in the database: 50800000
     [java] The number of query matches returned: 10
     [java] The position of the first result in the overall search: 1
     [java] First Page title: Lydia – Wikipedia, the free encyclopedia
     [java] First Page url: http://en.wikipedia.org/wiki/Lydia
     [java] First Page summary: At its greatest extent, the Kingdom of Lydia cov
ered all of western Anatolia. … Since Ionia was between historical Lydia and t
he sea, the Lydians had no …
     [java] Thread-0 : exited
     [java] Thread-1 : exited
     [java]
     [java] Tester.report() called
     [java] testName = Yahoo
     [java] minValue = 3661
     [java] aveValue = 5900
     [java] maxValue = 10197
     [java] 3680        1
     [java] 3800        1
     [java] 5980        1
     [java] 10020       1

BUILD SUCCESSFUL
Total time: 24 seconds

Source Code:

/*
 * @(#) Client.java 10/06/04
 *
 * Copyright 2002 CSIRO, Australia. All rights reserved.
 * CSIRO PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * This
 *
 * @author  Dr. Shiping Chen
 * @version 1.0 10/06/04
 *
 */
 
 /*
 *
 *  Yahoo Web Search Test Class
 * Copyright 28/08/2008 David Ma
 *
 */
import com.yahoo.search.*;

import java.io.IOException;
import java.util.Random;
import java.util.*;
import com.shiping.test.*;

// Import random line class
import com.david.*;

public class YahooTester implements IRunner
{
   private String ID;
   private Properties prop;
  
   // Declare random line class
   private Randomline rndline = new Randomline();

   public void init(Properties prop)
   {
      this.prop = prop;
      this.ID = Thread.currentThread().getName();
   }
 
   public void preRun() {}
 
   public void run() throws Exception
   { 
      try 
   {
   // Declare new searchclient
   SearchClient client = new SearchClient(“javasdktest”);
   
   // Get new query from random line class
   String query = rndline.getLine();
   
   // Create websearch request for given query
   WebSearchRequest request = new WebSearchRequest(query);
   
   // Get results from websearch request
   WebSearchResults results = client.webSearch(request);
   
   // Display results information
   System.out.println(” “);
   System.out.println(“Searching for: ” + query);
   System.out.println(“The number of query matches in the database: ” + results.getTotalResultsAvailable());
   System.out.println(“The number of query matches returned: ” + results.getTotalResultsReturned());
   System.out.println(“The position of the first result in the overall search: ” + results.getFirstResultPosition());
  
    //Get result’s first page
    WebSearchResult result = results.listResults()[0];
    
    // Display the details for the first page given
    System.out.println(“First Page title: ” + result.getTitle());
    System.out.println(“First Page url: ” + result.getUrl());
    System.out.println(“First Page summary: ” + result.getSummary());
     
      } catch(Exception e) {}
   }

   public void postRun() {}

   public void done() {}
}

Advertisements


Random Line
August 28, 2008, 2:20 pm
Filed under: Uncategorized

To help with the stress testing I have complied a list of search queries made up of over 500+ boy/girls names.

Below is the class I wrote to randomly pick a line from a text file and returning it:

/*
*
*   28th August 2008 David Ma
* Returns a random line from a text file
*
*/

package com.david;

import java.io.*;
import java.util.*;
 
public class Randomline
{
 
 // Returns the string for the given line number
    public static String getLineNumber(int number) throws FileNotFoundException
 {
  try
  {
   // Reads the file  “list.txt”
   BufferedReader br = new BufferedReader(new FileReader(“list.txt”));
   String txtLine = “”;
   
   // Cycles through the file for the given number of times
   for(int i=0; i!=number; i++)
   {
    txtLine = br.readLine();
   }
   
   // Returns string for the given line
   return txtLine;
  }
  catch (IOException e)
  {
   System.out.println(e);
   return null;
  }
    }
   
 // Returns the amount of lines for a given text file
    public static int countLines(String fileName) throws FileNotFoundException
 {
  try
  {
   // Reads the given text file
   BufferedReader br = new BufferedReader(new FileReader(fileName));
   String txtLine = “”;
   int count = 0;
   txtLine = br.readLine();
   
   //While it isn’t end of the file, cycle through each line and increment count
   while(txtLine != null)
   {
    txtLine = br.readLine();
    count++;
   }
   
   //Return the amount of lines
   return count;
  }
  catch (IOException e)
  {
   System.out.println(e);
   return 0;
  }
    }
   
    public static String getLine() throws Exception
 {
  // Gets number of lines
        int numberLines = countLines(“list.txt”);
       
  // Create a random generator
  Random generator = new Random();
       
  //Use generator to get a random number between  0 and number of lines
  int randomNumber = generator.nextInt(numberLines)+1;
       
  //Get string for that given line
  String randomLine = getLineNumber(randomNumber);
       
  // Return string
  return randomLine;
    }
}



Current Ideas
August 21, 2008, 2:49 pm
Filed under: Uncategorized

Current Ideas I’ve been throwing around:

  • Test a whole variety of webservices from web search to other Yahoo webservices, making the test target Yahoo oriented.

 

  • Testing the various differences in performance of webSearch by searching a very large range terms. This woudl require a large amount of range limits.

 

  • A Comparison of performance for Google’s websearch vs Yahoo’s websearch, this may bring interesting results.

 

  • Continue on testing as many different webservices as possible.

 

  • Implement new functions into the testing framework to more accurately measure the performance of specific webservices. Using Yahoo websearch as an example, a function to rank the “quality” of searches not just the speed may be looked into.


Yahoo Search API
August 21, 2008, 2:43 pm
Filed under: Uncategorized

Still in early stages but I have managed to implement Yahoo websearch with the tester.

C:\PerfTester>dir/w
 Volume in drive C is alpha
 Volume Serial Number is 4CD2-9295

 Directory of C:\PerfTester

[.]           [..]          [build]       build.xml     [doc]
setenv.bat    [src]         test.prop     Tester.java
               4 File(s)          7,031 bytes
               5 Dir(s)  141,264,662,528 bytes free

C:\PerfTester>ant test
Buildfile: build.xml

test:
     [java] test config fileName = C:\PerfTester\test.prop
     [java] Tester.init(C:\PerfTester\test.prop) called
     [java] — listing properties —
     [java] testName=Hello
     [java] testWarmup=5
     [java] testCooldown=5
     [java] testClassName=HelloTester
     [java] testThreadNmuber=10
     [java] testRuntime=10000
     [java] Tester.run() called
     [java] testThreadNmuber = 10
     [java] To instance a test driver
     [java] Exception in thread “Thread-6” java.lang.NoClassDefFoundError: com/y
ahoo/search/SearchClient
     [java]     at HelloTester.run(HelloTester.java:36)
     [java]     at com.shiping.test.TestDriver.Test(Unknown Source)
     [java]     at com.shiping.test.TestDriver.run(Unknown Source)
     [java]     at java.lang.Thread.run(Thread.java:619)
     [java] Caused by: java.lang.ClassNotFoundException: com.yahoo.search.Search
Client
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)

     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
     [java]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

     [java]     … 4 more
     [java] Exception in thread “Thread-1” java.lang.NoClassDefFoundError: com/y
ahoo/search/SearchClient
     [java]     at HelloTester.run(HelloTester.java:36)
     [java]     at com.shiping.test.TestDriver.Test(Unknown Source)
     [java]     at com.shiping.test.TestDriver.run(Unknown Source)
     [java]     at java.lang.Thread.run(Thread.java:619)
     [java] Exception in thread “Thread-9” java.lang.NoClassDefFoundError: com/y
ahoo/search/SearchClient
     [java]     at HelloTester.run(HelloTester.java:36)
     [java]     at com.shiping.test.TestDriver.Test(Unknown Source)
     [java]     at com.shiping.test.TestDriver.run(Unknown Source)
     [java]     at java.lang.Thread.run(Thread.java:619)
     [java] Exception in thread “Thread-7” java.lang.NoClassDefFoundError: com/y
ahoo/search/SearchClient
     [java]     at HelloTester.run(HelloTester.java:36)
     [java]     at com.shiping.test.TestDriver.Test(Unknown Source)
     [java]     at com.shiping.test.TestDriver.run(Unknown Source)
     [java]     at java.lang.Thread.run(Thread.java:619)
     [java] Exception in thread “Thread-3” java.lang.NoClassDefFoundError: com/y
ahoo/search/SearchClient
     [java]     at HelloTester.run(HelloTester.java:36)
     [java]     at com.shiping.test.TestDriver.Test(Unknown Source)
     [java]     at com.shiping.test.TestDriver.run(Unknown Source)
     [java]     at java.lang.Thread.run(Thread.java:619)
     [java] Exception in thread “Thread-8” java.lang.NoClassDefFoundError: com/y
ahoo/search/SearchClient
     [java]     at HelloTester.run(HelloTester.java:36)
     [java]     at com.shiping.test.TestDriver.Test(Unknown Source)
     [java]     at com.shiping.test.TestDriver.run(Unknown Source)
     [java]     at java.lang.Thread.run(Thread.java:619)
     [java] Exception in thread “Thread-2” java.lang.NoClassDefFoundError: com/y
ahoo/search/SearchClient
     [java] Thread-0 : exited
     [java]     at HelloTester.run(HelloTester.java:36)
     [java] Thread-1 : exited
     [java]     at com.shiping.test.TestDriver.Test(Unknown Source)
     [java]     at com.shiping.test.TestDriver.run(Unknown Source)
     [java] Thread-2 : exited
     [java]     at java.lang.Thread.run(Thread.java:619)
     [java] Thread-3 : exited
     [java] Exception in thread “Thread-0” java.lang.NoClassDefFoundError: com/y
ahoo/search/SearchClient
     [java]     at HelloTester.run(HelloTester.java:36)
     [java]     at com.shiping.test.TestDriver.Test(Unknown Source)
     [java]     at com.shiping.test.TestDriver.run(Unknown Source)
     [java]     at java.lang.Thread.run(Thread.java:619)
     [java] Exception in thread “Thread-5” java.lang.NoClassDefFoundError: com/y
ahoo/search/SearchClient
     [java]     at HelloTester.run(HelloTester.java:36)
     [java]     at com.shiping.test.TestDriver.Test(Unknown Source)
     [java]     at com.shiping.test.TestDriver.run(Unknown Source)
     [java] Thread-4 : exited
     [java]     at java.lang.Thread.run(Thread.java:619)
     [java] Thread-5 : exited
     [java] Exception in thread “Thread-4” java.lang.NoClassDefFoundError: com/y
ahoo/search/SearchClient
     [java] Thread-6 : exited
     [java]     at HelloTester.run(HelloTester.java:36)
     [java] Thread-7 : exited
     [java]     at com.shiping.test.TestDriver.Test(Unknown Source)
     [java] Thread-8 : exited
     [java]     at com.shiping.test.TestDriver.run(Unknown Source)
     [java] Thread-9 : exited
     [java]     at java.lang.Thread.run(Thread.java:619)
     [java]
     [java] Tester.report() called
     [java] testName = Hello
     [java] minValue = 999999999
     [java] aveValue = 0
     [java] maxValue = 0

BUILD SUCCESSFUL
Total time: 0 seconds
C:\PerfTester>ant test
Buildfile: build.xml

test:
     [java] test config fileName = C:\PerfTester\test.prop
     [java] Tester.init(C:\PerfTester\test.prop) called
     [java] — listing properties —
     [java] testName=Hello
     [java] testWarmup=5
     [java] testCooldown=5
     [java] testClassName=HelloTester
     [java] testThreadNmuber=10
     [java] testRuntime=10000
     [java] Tester.run() called
     [java] testThreadNmuber = 10
     [java] To instance a test driver
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Found 904000000 hits for java! Displaying the first 10.
     [java] Thread-0 : exited
     [java] Thread-1 : exited
     [java] Thread-2 : exited
     [java] Thread-3 : exited
     [java] Thread-4 : exited
     [java] Thread-5 : exited
     [java] Thread-6 : exited
     [java] Thread-7 : exited
     [java] Thread-8 : exited
     [java] Thread-9 : exited
     [java]
     [java] Tester.report() called
     [java] testName = Hello
     [java] minValue = 732
     [java] aveValue = 1193
     [java] maxValue = 2026
     [java] 740 2
     [java] 840 2
     [java] 860 2
     [java] 880 5
     [java] 900 6
     [java] 920 7
     [java] 940 9
     [java] 960 5
     [java] 980 2
     [java] 1000        9
     [java] 1020        1
     [java] 1080        2
     [java] 1120        1
     [java] 1180        2
     [java] 1500        1
     [java] 1640        3
     [java] 1660        5
     [java] 1680        1
     [java] 1700        1
     [java] 1720        1
     [java] 1740        1
     [java] 1760        1
     [java] 1800        1
     [java] 1860        3
     [java] 1880        1
     [java] 1920        2
     [java] 1940        2
     [java] 2040        2

BUILD SUCCESSFUL
Total time: 14 seconds
C:\PerfTester>

As you can see there was some intial problems building it but that was quickly resolved and at the moment it calls YahooWeb search for results of the search term “java”.



Yahoo API
August 19, 2008, 2:19 pm
Filed under: Uncategorized

Quick note

Yahoo API may be used intially as it is simpler least by Java to implement as opposed to google. I will try get both working sometime this week.



Week 4 Update
August 18, 2008, 2:07 pm
Filed under: Uncategorized

After a productive group meeting the other week, here are current update and progresses.

Below is the reply email we recieved from shipping about the direction we are taking the project:

 

> After our group meeting yesterday and a discussion of the pros and
cons of
the issue David, Naimul and I have decided to use a web service as
opposed
to a web server. For simplicity’s sake it is easier to work with an
already
deployed web service rather than setting up our own server, loading
software and running into a problems that will slow down our project.
We will be using google as the web service.
OK, right decision!
> Also our group has decided to call the project ‘iTester’. It has
recently
been approved by the sourceforge admins and will be hosted by them.
Good name!

Things to do:

– extend the ResultLog object by implementing the 4 interfaces
– understanding Google web service interface, i.e. WSDL
– decide and try a middleware, e.g. axis, to build the client code for
goodle web services
– integrate to the test framework as an example

I would like you to update your progress weekly and meet/demonstrate
something monthly.
— Shiping



Complied and Running
August 7, 2008, 6:01 am
Filed under: Uncategorized

Code is currently complied and running smoothly, some issues:

  • Microsoft Studio only supplied jre package when the project requires the full jdk package.
  • Ant installed smoothly and is currently being used to build and run the code as opposed to normal java.
  • Troubleshooting helped to resolve a simple compliation error.

History of my cmd window:

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\david>cd\

C:\>dir/w
 Volume in drive C is alpha
 Volume Serial Number is 4CD2-9295

 Directory of C:\

autoexec.bat          config.sys            [Downloads]
DVDRipper_debug.txt   [Fraps]               [PerfLogs]
[PerfTester]          PokerStars.log.0      [Program Files]
[temp]                [Users]               [Windows]
               4 File(s)         20,933 bytes
               8 Dir(s)  143,571,857,408 bytes free

C:\>cd PerfTester

C:\PerfTester>dir/w
 Volume in drive C is alpha
 Volume Serial Number is 4CD2-9295

 Directory of C:\PerfTester

[.]          [..]         [build]      build.xml    [doc]        setenv.bat
[src]        test.prop
               3 File(s)          2,136 bytes
               5 Dir(s)  143,571,857,408 bytes free

C:\PerfTester>ant test
‘ant’ is not recognized as an internal or external command,
operable program or batch file.

C:\PerfTester>setenv.bat
Reset path and classpath
Set Java
Set Ant
Set home
C:\PerfTester>ant test
Buildfile: build.xml

test:
     [java] test config fileName = C:\user\Shiping.Chen\Test\java\PerfTester\tes
t.prop
     [java] Tester.init(C:\user\Shiping.Chen\Test\java\PerfTester\test.prop) cal
led
     [java] java.io.FileNotFoundException: C:\user\Shiping.Chen\Test\java\PerfTe
ster\test.prop (The system cannot find the path specified)

BUILD FAILED
C:\PerfTester\build.xml:24: Java returned: 1

Total time: 0 seconds
C:\PerfTester>java tester test.pro
Exception in thread “main” java.lang.NoClassDefFoundError: tester (wrong name: T
ester)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

C:\PerfTester>ant test
Buildfile: build.xml

test:
     [java] test config fileName = C:\PerfTester\test.prop
     [java] Tester.init(C:\PerfTester\test.prop) called
     [java] — listing properties —
     [java] testName=Hello
     [java] testWarmup=5
     [java] testCooldown=5
     [java] testClassName=HelloTester
     [java] testThreadNmuber=10
     [java] testRuntime=10000
     [java] Tester.run() called
     [java] testThreadNmuber = 10
     [java] To instance a test driver
     [java]  Hello Thread-3 to sleep for 8000 ms
     [java]  Hello Thread-2 to sleep for 4000 ms
     [java]  Hello Thread-5 to sleep for 4000 ms
     [java]  Hello Thread-8 to sleep for 6000 ms
     [java]  Hello Thread-6 to sleep for 2000 ms
     [java]  Hello Thread-7 to sleep for 4000 ms
     [java]  Hello Thread-9 to sleep for 0 ms
     [java]  Hello Thread-1 to sleep for 4000 ms
     [java]  Hello Thread-0 to sleep for 2000 ms
     [java]  Hello Thread-4 to sleep for 2000 ms
     [java]  Hello Thread-9 to sleep for 4000 ms
     [java]  Hello Thread-6 to sleep for 2000 ms
     [java]  Hello Thread-0 to sleep for 4000 ms
     [java]  Hello Thread-4 to sleep for 4000 ms
     [java]  Hello Thread-1 to sleep for 4000 ms
     [java]  Hello Thread-6 to sleep for 2000 ms
     [java]  Hello Thread-2 to sleep for 4000 ms
     [java]  Hello Thread-5 to sleep for 6000 ms
     [java]  Hello Thread-9 to sleep for 4000 ms
     [java]  Hello Thread-7 to sleep for 8000 ms
     [java]  Hello Thread-6 to sleep for 2000 ms
     [java]  Hello Thread-8 to sleep for 4000 ms
     [java]  Hello Thread-4 to sleep for 4000 ms
     [java]  Hello Thread-0 to sleep for 6000 ms
     [java]  Hello Thread-2 to sleep for 0 ms
     [java]  Hello Thread-6 to sleep for 2000 ms
     [java]  Hello Thread-2 to sleep for 6000 ms
     [java]  Hello Thread-3 to sleep for 4000 ms
     [java]  Hello Thread-1 to sleep for 4000 ms
     [java]  Hello Thread-9 to sleep for 0 ms
     [java]  Hello Thread-9 to sleep for 0 ms
     [java]  Hello Thread-9 to sleep for 0 ms
     [java]  Hello Thread-9 to sleep for 8000 ms
     [java]  Hello Thread-5 to sleep for 4000 ms
     [java]  Hello Thread-6 to sleep for 2000 ms
     [java]  Hello Thread-8 to sleep for 0 ms
     [java]  Hello Thread-8 to sleep for 4000 ms
     [java]  Hello Thread-4 to sleep for 4000 ms
     [java]  Hello Thread-3 to sleep for 2000 ms
     [java]  Hello Thread-6 to sleep for 4000 ms
     [java]  Hello Thread-1 to sleep for 2000 ms
     [java]  Hello Thread-7 to sleep for 2000 ms
     [java]  Hello Thread-0 to sleep for 4000 ms
     [java]  Hello Thread-3 to sleep for 2000 ms
     [java]  Hello Thread-2 to sleep for 6000 ms
     [java]  Hello Thread-8 to sleep for 2000 ms
     [java]  Hello Thread-5 to sleep for 6000 ms
     [java]  Hello Thread-1 to sleep for 4000 ms
     [java]  Hello Thread-7 to sleep for 2000 ms
     [java]  Hello Thread-4 to sleep for 2000 ms
     [java]  Hello Thread-3 to sleep for 4000 ms
     [java]  Hello Thread-8 to sleep for 2000 ms
     [java] Thread-0 : exited
     [java]  Hello Thread-9 to sleep for 4000 ms
     [java] Thread-1 : exited
     [java]  Hello Thread-3 to sleep for 6000 ms
     [java] Thread-2 : exited
     [java] Thread-3 : exited
     [java] Thread-4 : exited
     [java] Thread-5 : exited
     [java] Thread-6 : exited
     [java] Thread-7 : exited
     [java] Thread-8 : exited
     [java] Thread-9 : exited
     [java]
     [java] Tester.report() called
     [java] testName = Hello
     [java] minValue = 0
     [java] aveValue = 3212
     [java] maxValue = 8000
     [java] 20  5
     [java] 2020        10
     [java] 4020        13
     [java] 6020        3
     [java] 8020        2

BUILD SUCCESSFUL
Total time: 26 seconds
C:\PerfTester>