<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 9F WebDriver – JUnit 環境設置 > 原文: [https://javabeginnerstutorial.com/selenium/9f-webdriver-junit-environment-setup/](https://javabeginnerstutorial.com/selenium/9f-webdriver-junit-environment-setup/) 大家好! 帶出隱藏在您體內的測試忍者,因為今天我們將為 JUnit 框架設置環境。 ### 跳入: #### 步驟 1: 轉到 [http://junit.org/junit4/](http://junit.org/junit4/) ,然后點擊“下載并安裝”鏈接。 ![Junit download link](https://img.kancloud.cn/2d/09/2d09cba06cd806d7723b44db5b3fa97f_384x312.png) #### 步驟 2: 以下幾點將使該過程更加容易理解, 1. 您將被重定向到 GitHub。 在“普通的 JAR”下,可以使用 junit 和 hamcrest-core JAR。 2. 點擊“`junit.jar`”會將您重定向到包含下載鏈接的頁面。 點擊最新版本的“jar”鏈接(撰寫本文時為 v4.12)。 它將自動下載到您的系統。 3. 接下來,點擊“`hamcrest-core.jar`”。 與上述類似,單擊最新的“jar”下載鏈接(截至本帖子發布之日起為 v1.3)。 4. 這樣,兩個必需的 jar 都立即下載到您的系統中。 下圖是突出顯示步驟的圖像, ![Junit github download](https://img.kancloud.cn/0f/ae/0faece2981841628230c6ce61b8c3d8c_1179x516.png) #### 步驟 3: 下一個工作是在 Eclipse IDE 中將這兩個 jar 添加到我們的項目中。 該過程與我們在[“9b 設置 WebDriver(在 Eclipse 中)”](https://javabeginnerstutorial.com/selenium/9b-webdriver-eclipse-setup/)中遵循的過程非常相似。請參考該指南以獲取分步說明以及屏幕截圖。 1. 打開 Eclipse IDE 并導航到相應的工作區。 2. 右鍵單擊“設置 Selenium 的項目 -> 構建路徑 -> 配置構建路徑…” 3. 確保選擇了“庫”選項卡。 點擊“添加庫...” 4. 選擇“用戶庫”,接下來單擊“用戶庫...” 5. 單擊“新建...”,并為庫“JUnit4”命名,然后單擊“確定”。 6. 在“用戶庫”彈出窗口中,確保選擇了新創建的 Junit4 庫。 點擊“添加外部 JAR ...” 7. 導航到本地系統中下載的與 junit 相關的 jar 的保存路徑。 選擇 junit 和 hamcrest-core JAR,然后單擊“打開” ![Junit user library](https://img.kancloud.cn/67/51/6751f29bf7990a8bbb4bcf408904f54a_833x418.png) 相應地單擊 OK 和“完成”按鈕,新創建的 JUnit4 庫將添加到項目構建路徑,如下所示, ![Junit jars added](https://img.kancloud.cn/26/67/2667010675de303c467ef49d52993e1f_207x207.png) 這樣,JUnit 4 的環境就設置好了! 在我們的下一篇文章中,讓我們在 JUnit 框架中編寫 WebDriver 測試并執行它們以查看結果。 在另一個帖子中再見! 祝你今天愉快!
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看