Skip to content

Automation Application Programming Interface Project

Notifications You must be signed in to change notification settings

huangmoh/auto-api-project

Repository files navigation

auto_api

接口自动化全篇

整体思路

1、连接mysql数据库、封装数据库方法

2、封装requests方法

3、使用unittest框架编写接口测试用例

①调用封装的数据库方法取数据库数据

②数据传入requests封装方法中

③断言:响应数据是否和存在数据库中的断言字段一致,判断用例是否通过依据

4、执行用例

5、HtmlTestRunner模块生成测试报告

6、准备数据(接口自动化前)、清理数据(接口自动化后)

About

Automation Application Programming Interface Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.3%
  • HTML 32.4%
  • TSQL 4.3%