功能文件:
.carousel-item
步骤定义文件:
Feature: Claims Regression suit scenarios using BDD
@Test
Scenario: Log in to AUT as ClaimAssistant with valid credential.
Given Browser is launched successfully
测试运行器类文件:
@Given("^Browser is launched successfully$")
public void Browser_is_launched_successfully() throws InterruptedException, IOException
{
System.setProperty("webdriver.chrome.driver", "U:\\Claims Jar\\ChromeDriver\\chromedriver_win32\\chromedriver.exe");
driver=new ChromeDriver();
driver.get("https://www.google.com");
driver.manage().window().maximize();
}