I'm trying to launch "selenium" only once for my test suite but it's not working. Here is what I've done :
My file AllTest.java is generating the test suite and I want to launch selenium from here:
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
import com.thoughtworks.selenium.*;
public class AllTests extends TestCase {
public static Selenium selenium;
public static Test suite()
{
TestSuite suite = new TestSuite();
suite.addTestSuite( ConnexionGTEST.class);
suite.addTestSuite( test.class);
return suite;
}
public static void main(String arg[])
{
selenium = new DefaultSelenium("172.29.16.252", 4444, "*firefox", "http://172.19.90.23:8080/");
selenium.start();
TestRunner.run(suite());
}
}
In that way, even in my test "ConnexionGTEST.class" and "test.class", I don't have to initialize my selenium and directly call it. But it's not running. Any ideas?
Thanks in advance.