• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 基于 SELENIUM 的自動化測試架構(43)

    發表于:2017-04-11來源:gitbook作者:凌俁Linty?點擊數: 標簽:selenium
    logIn (String account, String password) throws InterruptedException { BoxDriver driver = this .baseDriver; driver.type( account , account); driver.type( password , password); driver.click( submit ); /
    logIn(String account, String password) throws InterruptedException { BoxDriver driver = this.baseDriver; driver.type("account", account); driver.type("password", password); driver.click("submit"); // 點擊登錄按鈕后,需要等待瀏覽器刷新 Thread.sleep(2000); }

    至此,自動化測試的方案如下圖所示:

    自動化測試模型.png

    1. 封裝 Selenium 為 BoxDriver
    2. 在 測試用例中,實例化 BoxDriver,產生 bd 對象
    3. 使用 bd 對象,構造 業務模塊的實例化對象,產生 common
    4. 使用 common 在測試用例中,構建測試步驟
    5. 使用數據驅動的外部數據,通過讀取,進行測試
    6. 執行整個用例

    2.5 使用 Git 進行源代碼管理

    原文轉自:http://gitbook.cn/books/58e54b57cfcd6fa52dcef1d2/index.html

    ...
    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>