测试环境搭建

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,将上述网址中的install直接拖进eclipse中,自动安装。

参考资料:http://testng.org/doc/download.html

(3)检查是否安装成功

file—>new—>other—>testNG

(4)准备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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容