Giter Site home page Giter Site logo

Selenium UI 自动化测试框架(基于 python 3)

框架目录构造:

  • config: 用来存储配置文件和浏览器的 element,如 config.ini 文件,配置了所需浏览器方式及被测地址

  • data:用来实现 ddt 数据驱动的账号数据文件

  • framework:框架底层封装层,可以根据自己的想法封装底层方法

    • logger.py:封装了日志输入,包括文件输出和控制台的输出
    • base_page:封装了 selenium 库中常用的方法,包括对象查找,截图输出,浏览器的前进后退,清除和输入等
    • browser_engine:通过读取配置文件去选择浏览器和 url,并返回浏览器对象实例
    • browser_info:得到浏览器的配置和 url
  • screenshots:用于接收测试过程中错误截图文件

  • logs:用于接收日志文件的输出

  • page_objects:用于封装页面对象

  • Python_HTMLTestReportCN:生成自动化测试报告网页html

  • test_report:用于接收测试报告文件的输出

  • test_suites:用于测试用例的存放和用例集合套件

  • tools:用于存放浏览器的 selenium 驱动

junliangl's Projects

autoapitest icon autoapitest

基于 python3+requests+unittest 的 Api 自动化框架

autouitest icon autouitest

基于 python3+selenium4.1.5+unittest 的 UI 自动化框架

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.