Hi Simon,
Thank you for your valuable suggestions...
If i am not wrong, i have given base url in the selenium object
instance....
First Class:
-----------------
public class AvailabilitySearch {
public Selenium selenium;
public SeleniumServer seleniumServer;
@BeforeSuite
public void beforeSuite() throws Exception {
seleniumServer = new SeleniumServer();
seleniumServer.start();
System.out.println("<<in the Before Suite of Availability
Search>>");
}
@BeforeTest
@Parameters({ "selenium.host", "selenium.port",
"selenium.browser","selenium.url" })
public void beforeTest(String host, String port, String browser,
String url)throws Exception {
System.out.println("<<in the Before Test of Availability Search>>");
this.selenium = new DefaultSelenium(host,
Integer.parseInt(port),browser, url);
this.selenium.start();
this.selenium.open(url);
}
@Test
public void testAvailability(){
System.out.println("<<in the @Test of Availability Search>>");
selenium.open("/reservation/ibe/ibe/booking?locale=en_US");
System.out.println("IBE loaded...");
Assert.assertEquals("Far East", selenium.getTitle());
}
@AfterTest
public void afterTest() {
System.out.println("<<in the After Test of Availability Search>>");
this.selenium.close();
this.selenium.stop();
}
Second Class
----------------
public class AvailabilitySearchDuplicate {
public Selenium selenium;
public SeleniumServer seleniumServer;
/*@BeforeSuite
public void beforeSuite() throws Exception {
System.out.println("<<in the Before Suite of Availability Search
Duplicate>>");
seleniumServer = new SeleniumServer();
seleniumServer.start();
}*/
@BeforeTest
@Parameters({ "selenium.host", "selenium.port",
"selenium.browser","selenium.url" })
public void beforeTest(String host, String port, String browser,
String url)throws Exception {
System.out.println("<<in the Before Test of Availability Search
Duplicate>>");
this.selenium = new DefaultSelenium(host,
Integer.parseInt(port),browser, url);
this.selenium.start();
this.selenium.open(url);
}
@Test
public void testAvailabilityDuplicate()throws Exception{
System.out.println("<<in the @Test of Availability Search
Duplicate>>");
AvailabilitySearch search = new AvailabilitySearch();
search.testAvailability();
}
@AfterTest
public void afterTest() {
System.out.println("<<in the After Test of Availability Search
Duplicate>>");
this.selenium.close();
this.selenium.stop();
}
but still no progress.... :(