測試環(huán)境搭建

1.eclipse+python+unittest

(1)eclipse安裝

下載地址:https://www.eclipse.org/downloads/

必須先安裝jdk,參考資料:https://www.cnblogs.com/xing901022/p/3955794.html

(2)PyDev插件安裝

打開eclipse—>help—>install new software—>work with:pydev選擇安裝

Window—>preferences—>pydev—>Interpreters—>Python Interpeter—>new—>Browser—>選擇路徑:D:\Python37\python.exe—>ok—>select all—>ok—>apply —>ok

(3)檢查是否安裝成功

file—>new—>pydev project(或者othe—>pydev project)

2.eclipse+java+testNG

(1)eclipse安裝(同上)

(2)testNG安裝

testNG下載地址:https://marketplace.eclipse.org/content/testng-eclipse#group-external-install-button

打開eclipse,將上述網(wǎng)址中的install直接拖進eclipse中,自動安裝。

參考資料:http://testng.org/doc/download.html

(3)檢查是否安裝成功

file—>new—>other—>testNG

(4)準(zhǔn)備jar包

httpclient-4.3.6.jar:http://grepcode.com/snapshot/repo1.maven.org/maven2/org.apache.httpcomponents/httpclient/4.3.6

httpcore-4.3.3.jar:http://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore/4.3.3

selenium-java-2.43.0.jar:http://maven.outofmemory.cn/org.seleniumhq.selenium/selenium-java/2.47.0/

selenium-server-standalone-2.42.2.jar:http://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-server-standalone/2.53.0

testng.jar:http://grepcode.com/snapshot/repo1.maven.org/maven2/org.testng/testng/6.8.8

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容