1. 程式人生 > 其它 >10-6-用例層

10-6-用例層

技術標籤:WEB-UI自動化selenium

新建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"); } }