yes selenium server is up and running properly
Yes its a sample GoogleTest.java code I am trying to run which is available on site.
For your reference here is the code :
package com.thoughtworks.selenium;
import junit.framework.*;
import org.openqa.selenium.server.*;
public class GoogleTest extends TestCase {
private Selenium selenium;
public void setUp() throws Exception {
String url = "
http://www.google.com";
selenium = new DefaultSelenium("localhost", SeleniumServer.getDefaultPort(), "*firefox", url);
selenium.start();
}
protected void tearDown() throws Exception {
selenium.stop();
}
public void testGoogle() throws Throwable {
selenium.open("
http://www.google.com/webhp?hl=en");
assertEquals("Google", selenium.getTitle());
selenium.type("q", "Selenium OpenQA");
assertEquals("Selenium OpenQA", selenium.getValue("q"));
selenium.click("btnG");
selenium.waitForPageToLoad("5000");
assertEquals("Selenium OpenQA - Google Search", selenium.getTitle());
}
}