10-6-用例層
阿新 • • 發佈:2021-01-31
新建testcase包
1、登入用例
public class LoginCase {
public DriverBase driverBase;
@BeforeTest
public void initDriver() throws InterruptedException {
driverBase = new DriverBase("Chrome");
DriverBase.getUrl("https://www.imooc.com");
DriverBase. getWindow();
Thread.sleep(3000);
}
@Test
public void loginTest() throws IOException, InterruptedException {
LoginBus.login("xxxxxx","xxxxxx");
}
}