美文网首页我爱编程
测试环境搭建

测试环境搭建

作者: 我不喜欢吃苹果 | 来源:发表于2017-12-26 11:09 被阅读0次

    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

    相关文章

      网友评论

        本文标题:测试环境搭建

        本文链接:https://www.haomeiwen.com/subject/snedgxtx.html