编写readme.md
This commit is contained in:
parent
71e0d70bbc
commit
db2cbb9435
|
@ -400,6 +400,14 @@ excel 中有一个 method 字段,设置值为 sql 即可,后面的 SQL,SQL
|
|||
其实这套代码这些都可以不需要使用,也可以使用,定制一些初始化函数或者唯一登录这样用,做数据清晰操作?可以将sql写excel,
|
||||
或者单独再excel种建立一个sheet来执行sql也是可行的,方法很多,很灵活
|
||||
|
||||
#### postman或者swagger的文件怎么快速转为测试用例?
|
||||
本框架已经封装好了解析函数,直接将postman文件导出,放到指定目录
|
||||
运行excel_converter.py文件,即可得到测试用例
|
||||
非常快捷省事,不用一条一条复制粘贴
|
||||

|
||||

|
||||

|
||||
|
||||
#### 更换不同的数据库?
|
||||
|
||||
目前内置有多种数据库查链接方式,但是尚未使用起来,只是将mysql使用起来了,使用者如需要使用其他如 mongoDB 这类数据库,
|
||||
|
|
|
@ -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
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 90 KiB |
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
Binary file not shown.
After Width: | Height: | Size: 169 KiB |
Loading…
Reference in New Issue