GithubHelp home page GithubHelp logo

autotest's Introduction

一、框架结构:

Business:业务相关公共模块,如登录

Common:业务无关公共模块,如读取文件

PageObject:页面元素封装

TestCase:测试用例层

TestData:测试数据

TestSuite:测试套件

browser.ini:运行浏览器配置文件

run.py:运行文件

二、部署:

1、部署 Python

2、部署 Pycharm

3、安装第三方模块:pip install -U 模块名称

pip install -U selenium

pip install htmlreport

pip ddt

4、将浏览器驱动放入浏览器安装目录下

5、将浏览器安装目录放入环境变量 path 中

三、测试用例

1、打开了浏览器

2、输入网址

3、点击请登录链接

4、输入{账号}

5、输入{密码}

6、点击登录

7、{断言}

8、关闭浏览器

断言类型:

1、成功

2、用户名为空

3、用户名不为空,密码为空

4、密码错误

数据:

用户名|密码|断言类型

admin|123456|1

|123|2

291||3

291|1234|4

autotest's People

Contributors

cesarecheung avatar

Stargazers

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