package org.springframework.samples.petclinic.selenium;
import com.thoughtworks.selenium.DefaultSelenium;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.fail;
private DefaultSelenium selenium;
@Before
public void setUp()
throws Exception {
try {
selenium = createSeleniumClient("http://localhost:8080/");
selenium.start();
System.out.println("Selenium Server handler is " + selenium);
}
catch (Exception e) {
e.printStackTrace();
}
}
@After
public void tearDown()
throws Exception {
selenium.stop();
}
return new DefaultSelenium("localhost", 4444, "*firefox", url);
}
@Test
System.out.println("---PET CLINIC SELENIUM TEST ---");
try {
String msg = "";
} catch (Exception ex) {
ex.printStackTrace();
fail(ex.getMessage());
throw ex;
}
System.out.println("---/PET CLINIC SELENIUM TEST ---");
}
}