Giter VIP home page Giter VIP logo

keyworddrivertestframework's Introduction

关键字驱动测试框架案例

框架分析:
    1.使用外部测试数据文件,使用Excel管理测试用例的集合和每个测试用例的所有测试步骤
      ,实现一个文件中完成测试用例的维护
    2.每个测试用例的测试结果在一个文件中查看和统计
    3.通过定义关键字,操作元素的定位方式及定位表达式和操作值就可以实现每个测试用例步
      骤的执行,可以更加灵活地实现自动化测试的需求
    4.实现定位表达式和测试代码的分离,实现定位表达式直接在测试数据文件中进行维护。
    5.框架提供日志功能,方便调试和监控自动化测试程序的执行
    6.基于关键字测试框架,即使不懂开发技术的测试人员也可以实施自动化测试,便于在整个
      测试团队中推广和使用自动化测试技术,降低自动化测试实施的技术门槛
    7.基于关键字的方式,可以进行任意关键字的扩展,以满足更加复杂项目的自动化测试需求

运行框架:
    .确保您的本地环境已配置chrome/firefox/ie浏览器及对应版本驱动
    .cd D:\KeyWordDriverTestFrameWork
    .python RunTest.py
说明:
    .本项目完全是为了学习使用,项目中的账户和密码我并没有删除,希望您不要使用我的邮箱做有违国家安全或者对我个人有害的事情,彼此的信任是最重要的不是嘛
    .如果您有好的建议或者改进,可以fork本项目后修改你认为可以改进的代码后发起pull requests给我哦
    .如果你有不同的想法, 且你的改进对本项目有帮助, 我很愿意使用你的代码提高本项目的完整性, 对此表示感谢!
修改说明:
    .modify by linuxchao at 2019.08.03
    .修改了整个项目代码编写规范
    .针对126邮箱升级后,修改了部分用例的逻辑,具体修改内容请查看项目原代码
    .针对126邮箱上传附件的用例, 放弃了模拟键盘和剪切板的操作部分(这个方法相对来说不稳定), 采用了最原始的send_keys方法实现
    .为了方便他人clone本项目后能够顺利的运行本项目, 我添加了环境管理文件requirements.txt,文件表明了本项目使用的所有第三方库
     当你clone本项目后, 请使用命令pip install -r requirements.txt来安装所有依赖库
    .特别说明:防止您的本地环境和本项目环境冲突,最好为本项目创建虚拟环境,使用虚拟环境的pip工具执行安装依赖库

keyworddrivertestframework's People

Contributors

13691579846 avatar

Stargazers

 avatar  avatar Sun Feng avatar  avatar  avatar  avatar Li Xin avatar luojun avatar  avatar liang_shangchen avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Yi Cheng avatar  avatar  avatar  avatar Lei Xiaofeng avatar  avatar kriswucn avatar Bruce Chen avatar  avatar Pancy avatar  avatar Stranger avatar  avatar grace avatar  avatar  avatar  avatar .Net Lover avatar

Watchers

James Cloos avatar  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.