Giter Club home page Giter Club logo

api_python3's Introduction

这不是一个完善的库

python 3 +selenium3 +HTMLTestRunner(优化本)

框架使用python自带的unittest。ddt数据驱动;Excel管理测试用例、yaml管理测试页面元素,并对selenium API进行了封装,简化代码量同时记录log

bussinses 公共的逻辑模块编写

data 测试资源

  • case.xlsx 测试数据
  • page_data.yaml 页面对象数据

report存放测试报告

case存放测试用例。

log_doc 存放测试过程中的测试日志

suite 测试用例集

  • send_email.py 邮件发送模块
  • testsuite.py 测试用例集

util 公共模块

  • modules 第三方模块(ddt.py、HTMLTestRunner_cn.py)
  • gettestdata.py 获取测试数据模块
  • log.py 日志模块
  • selse_feng.py 封装selenium方法

config.py 配置文件

run.py 执行脚本。

环境部署

注意:如果ide导入模块失败,可以在命令行pip安装,命令如下

  • 升级pip: python -m pip install --upgrade pip(提示Could not find a version that satisfies the requirement yaml (from versions: ) No matching distribution found for yaml 时候使用)

api_python3's People

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.