<ruby id="h6500"><table id="h6500"></table></ruby>
    1. <ruby id="h6500"><video id="h6500"></video></ruby>
          1. <progress id="h6500"><u id="h6500"><form id="h6500"></form></u></progress>

            基于 SELENIUM 的自動(dòng)化測試架構(23)

            發(fā)表于:2017-04-11來(lái)源:gitbook作者:凌俁Linty?點(diǎn)擊數: 標簽:selenium
            @BeforeTest public void setUp () { this .baseDriver = new FirefoxDriver(); this .baseUrl = http://demo.ranzhi.org/ ; } /** * 測試清理操作 * 在所有的測試結束后 執行一次 */ @AfterTest
            @BeforeTest public void setUp() { this.baseDriver = new FirefoxDriver(); this.baseUrl = "http://demo.ranzhi.org/"; } /** * 測試清理操作 * 在所有的測試結束后 執行一次 */ @AfterTest public void tearDown() { this.baseDriver.quit(); } }
          2. unittest

            接下來(lái)我們將會(huì )使用 Python 語(yǔ)言的unittest框架展開(kāi)“檢查”。unittest框架的原本的名字是PyUnit。是從JUnit 這樣一個(gè)被廣泛使用的 經(jīng)典的Java應用開(kāi)發(fā)的單元測試框架創(chuàng )造而來(lái)。類(lèi)似的框架還有NUnit(.Net開(kāi)發(fā)的單元測試框架)等。我們可以使用unittest框架為任意Python項目編寫(xiě)可理解的單元測試集合?,F在這個(gè)unittest已經(jīng)作為Python的標準庫模塊發(fā)布。我們安裝完P(guān)ython以后,便可以直接使用unittest。

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

          3. ...
            老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月
              <ruby id="h6500"><table id="h6500"></table></ruby>
              1. <ruby id="h6500"><video id="h6500"></video></ruby>
                    1. <progress id="h6500"><u id="h6500"><form id="h6500"></form></u></progress>