Test bench cases vaadin
1.Initialize parameters
2.create Driver
3.Find the Element
4.Click() till the Desired State is Achieved
5 take a Snap Shot
Test Bench uses Selenium to execute test cases in web browser
We must Initialize the Driver by method Create Driver For that we must have to extend the test case with testbenchTestcase
Driver is always set in a @before method
Driver Quits in @after method
@BeforeClass
static public void createDriver() throws Exception {
driver = TestBench.createDriver(new FirefoxDriver());
}
@Before
public void setUp() throws Exception {
setDriver(driver);
}
...
@AfterClass
static public void tearDown() throws Exception {
driver.quit();
}
}
Next post we will see the assert methods and a test case example
Comments
Post a Comment