编写readme.md

This commit is contained in:
aaronchenyongzhi 2023-07-06 01:15:58 +08:00
parent 71e0d70bbc
commit db2cbb9435
5 changed files with 9 additions and 0 deletions

View File

@ -400,6 +400,14 @@ excel 中有一个 method 字段,设置值为 sql 即可,后面的 SQL,SQL
其实这套代码这些都可以不需要使用也可以使用定制一些初始化函数或者唯一登录这样用做数据清晰操作可以将sql写excel
或者单独再excel种建立一个sheet来执行sql也是可行的方法很多很灵活
#### postman或者swagger的文件怎么快速转为测试用例
本框架已经封装好了解析函数直接将postman文件导出放到指定目录
运行excel_converter.py文件即可得到测试用例
非常快捷省事,不用一条一条复制粘贴
![img.png](image/img_24.png)
![img.png](image/img_25.png)
![img.png](image/img_26.png)
#### 更换不同的数据库?
目前内置有多种数据库查链接方式但是尚未使用起来只是将mysql使用起来了使用者如需要使用其他如 mongoDB 这类数据库,

View File

@ -3,6 +3,7 @@ import json
# @logger.log_decorator()
def parsing_openapi(file_path):
"""解析swagger文件转为excel测试用例"""
with open(file_path, 'r', encoding='utf-8') as file:
data = json.load(file)
count = 1

BIN
image/img_24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
image/img_25.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
image/img_26.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB