It tells that how many times that an test case can be executed.To determine that a small piece of code is given below.
package TestNG;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class test{
private WebDriver driver;
@Test(invocationCount=4)
public void logo() throws Exception {
driver = new FirefoxDriver();
driver.get("http://www.hdfcbank.com/");
driver.findElement(By.className(("logo"))).click();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.close();
}
To know FAQ's on Selenium Please ClickHere
To know SQL's Queries Required For Testers Please ClickHere
package TestNG;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class test{
private WebDriver driver;
@Test(invocationCount=4)
public void logo() throws Exception {
driver = new FirefoxDriver();
driver.get("http://www.hdfcbank.com/");
driver.findElement(By.className(("logo"))).click();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.close();
}
To know FAQ's on Selenium Please ClickHere
To know SQL's Queries Required For Testers Please ClickHere
No comments:
Post a Comment