GithubHelp home page GithubHelp logo

selenium's Introduction

UItestframework项目目前具有以下功能:
1、对webdriver进行了第二次的简单封装,使用更加方便
2、具有打印日志的功能,打印在控制台和文件中
3、读取配置文件(.ini文件):
4、具有发邮件的功能:
5、生成测试报告:html测试报告的路径:
6、使用了PageObject模式来编写测试脚本
7、针对使用chrome浏览器,不打开浏览器,直接运行测试用例: =>用chrome-headless


Selenium UI 自动化测试框架(基于 python 3+selenium) 框架目录构造:
|-------config: 用来存储配置文件,如 config.ini 文件,配种了所需浏览器方式及被测地址
|-------utils:框架底层封装层,可以根据自己的想法封装底层方法
| |-------→base_page:封装了selenium库中常用的方法,包括对象查找,截图输出,浏览器的前进后退,清除和输入
| |-------→browser_engine:通过读取配置文件去选择浏览器和url,并返回浏览器对象实例
| |-------→log.py:封装了日志输入,包括文件输出和控制台的输出
|-------report:测试报告和截图
| |-------→screenshots:用于接收测试过程中错误截图文件
| |-------→testreports:用于接收测试报告文件的输出
|-------Logs:用于接收日志文件的输出
|-------pageobjects:用于封装页面对象,
|-------testsuite:用于测试用例的存放和用例集合套件 ,示例:TestRunner.py
|-------dirvers:用于存放浏览器的 selenium 驱动

selenium's People

Contributors

carl-ding avatar

Stargazers

 avatar  avatar 对象不吃香菜 avatar wqcvc avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.