调整目录结构
|
@ -45,21 +45,5 @@
|
|||
</option>
|
||||
<option name="myCustomValuesEnabled" value="true" />
|
||||
</inspection_tool>
|
||||
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
||||
<option name="ignoredErrors">
|
||||
<list>
|
||||
<option value="N803" />
|
||||
<option value="N802" />
|
||||
<option value="N806" />
|
||||
</list>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ignoredIdentifiers">
|
||||
<list>
|
||||
<option value="data" />
|
||||
</list>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (pytest_api_demo)" project-jdk-type="Python SDK" />
|
||||
</project>
|
|
@ -2,7 +2,7 @@
|
|||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/py_auto_demo.iml" filepath="$PROJECT_DIR$/.idea/py_auto_demo.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/pytest_api_demo.iml" filepath="$PROJECT_DIR$/.idea/pytest_api_demo.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 116 KiB |
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 136 KiB |
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 92 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 204 KiB |
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 154 KiB After Width: | Height: | Size: 154 KiB |
|
@ -22,7 +22,7 @@ class TestDemo(object):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
path = GetCaseData(r"C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\data\TestDemo.yaml").get_yaml_case_data()[0]
|
||||
path = GetCaseData(r"C:\Users\hzxy\PycharmProjects\py_auto_demo\data\TestDemo.yaml").get_yaml_case_data()[0]
|
||||
data = TestDemo().Demo(path)
|
||||
print(data)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
%(levelname)-8s2022-01-05 09:58:54,922 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\error.log:conftest.py:94 执行失败用例数:1
|
||||
%(levelname)-8s2022-01-05 10:00:40,538 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\error.log:conftest.py:94 执行失败用例数:0
|
||||
%(levelname)-8s2022-01-05 10:00:40,538 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\error.log:conftest.py:94 执行失败用例数:0
|
|
@ -0,0 +1,52 @@
|
|||
%(levelname)-8s2022-01-05 09:52:24,106 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2022-01-05 09:55:05,013 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:logControl.py:70 测试
|
||||
%(levelname)-8s2022-01-05 09:58:54,921 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:conftest.py:91 执行用例总数: 1
|
||||
%(levelname)-8s2022-01-05 09:58:54,922 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:conftest.py:92 执行通过用例数:0
|
||||
%(levelname)-8s2022-01-05 09:58:54,935 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:conftest.py:96 执行异常用例数:0
|
||||
%(levelname)-8s2022-01-05 09:58:54,936 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:conftest.py:98 执行跳过用例数:0
|
||||
%(levelname)-8s2022-01-05 09:58:54,936 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:conftest.py:100 执行成功率: 成功率:0.00%
|
||||
%(levelname)-8s2022-01-05 10:00:12,722 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:logDecorator.py:25
|
||||
=================================================================================
|
||||
测试标题: 测试接口
|
||||
请求方式: POST
|
||||
请求头: {'Content-Type': 'application/json;charset=UTF-8'}
|
||||
请求路径: https://redisdatarecall.csdn.net/recommend/get_head_word
|
||||
请求内容: {'requestType': 'params', 'bid': 'blog-121903028'}
|
||||
接口响应内容: {'status': 200, 'msg': '查询成功', 'content': ['pytest', 'gitee', 'yaml', 'api', 'jenkins', 'sdn'], 'error': False}
|
||||
数据库断言数据: {'sql': None}
|
||||
函数名称: _DoRequest
|
||||
=================================================================================
|
||||
%(levelname)-8s2022-01-05 10:00:39,554 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2022-01-05 10:00:40,529 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:logDecorator.py:25
|
||||
=================================================================================
|
||||
测试标题: 测试接口
|
||||
请求方式: POST
|
||||
请求头: {'Content-Type': 'application/json;charset=UTF-8'}
|
||||
请求路径: https://redisdatarecall.csdn.net/recommend/get_head_word
|
||||
请求内容: {'requestType': 'params', 'bid': 'blog-121903028'}
|
||||
接口响应内容: {'status': 200, 'msg': '查询成功', 'content': ['pytest', 'gitee', 'yaml', 'api', 'jenkins', 'sdn'], 'error': False}
|
||||
数据库断言数据: {'sql': None}
|
||||
函数名称: _DoRequest
|
||||
=================================================================================
|
||||
%(levelname)-8s2022-01-05 10:00:40,529 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:assertControl.py:67 断言成功, 预期值:200, 断言类型==, 实际值200
|
||||
%(levelname)-8s2022-01-05 10:00:40,538 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:conftest.py:91 执行用例总数: 1
|
||||
%(levelname)-8s2022-01-05 10:00:40,538 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:conftest.py:92 执行通过用例数:1
|
||||
%(levelname)-8s2022-01-05 10:00:40,539 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:conftest.py:96 执行异常用例数:0
|
||||
%(levelname)-8s2022-01-05 10:00:40,539 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:conftest.py:98 执行跳过用例数:0
|
||||
%(levelname)-8s2022-01-05 10:00:40,539 C:\Users\hzxy\PycharmProjects\py_auto_demo\logs\info.log:conftest.py:100 执行成功率: 成功率:100.00%
|
|
@ -1,8 +0,0 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
|
@ -1,49 +0,0 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="HtmlUnknownAttribute" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="myValues">
|
||||
<value>
|
||||
<list size="18">
|
||||
<item index="0" class="java.lang.String" itemvalue="v-on:click" />
|
||||
<item index="1" class="java.lang.String" itemvalue="@click" />
|
||||
<item index="2" class="java.lang.String" itemvalue="v-model.number" />
|
||||
<item index="3" class="java.lang.String" itemvalue="v-model.trim" />
|
||||
<item index="4" class="java.lang.String" itemvalue="v-model.number," />
|
||||
<item index="5" class="java.lang.String" itemvalue="v-if" />
|
||||
<item index="6" class="java.lang.String" itemvalue="v-elif" />
|
||||
<item index="7" class="java.lang.String" itemvalue="v-else" />
|
||||
<item index="8" class="java.lang.String" itemvalue="v-else-if" />
|
||||
<item index="9" class="java.lang.String" itemvalue="v-show" />
|
||||
<item index="10" class="java.lang.String" itemvalue="v-for" />
|
||||
<item index="11" class="java.lang.String" itemvalue="@click.prevernt" />
|
||||
<item index="12" class="java.lang.String" itemvalue="v-model" />
|
||||
<item index="13" class="java.lang.String" itemvalue="@keyup.enter" />
|
||||
<item index="14" class="java.lang.String" itemvalue="@keyup.del" />
|
||||
<item index="15" class="java.lang.String" itemvalue="@keyup.delete" />
|
||||
<item index="16" class="java.lang.String" itemvalue="v-model.lazy" />
|
||||
<item index="17" class="java.lang.String" itemvalue=":key" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
<option name="myCustomValuesEnabled" value="true" />
|
||||
</inspection_tool>
|
||||
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="myValues">
|
||||
<value>
|
||||
<list size="8">
|
||||
<item index="0" class="java.lang.String" itemvalue="nobr" />
|
||||
<item index="1" class="java.lang.String" itemvalue="noembed" />
|
||||
<item index="2" class="java.lang.String" itemvalue="comment" />
|
||||
<item index="3" class="java.lang.String" itemvalue="noscript" />
|
||||
<item index="4" class="java.lang.String" itemvalue="embed" />
|
||||
<item index="5" class="java.lang.String" itemvalue="script" />
|
||||
<item index="6" class="java.lang.String" itemvalue="router-link" />
|
||||
<item index="7" class="java.lang.String" itemvalue="router-view" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
<option name="myCustomValuesEnabled" value="true" />
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
|
@ -1,6 +0,0 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (pytest_api_demo)" project-jdk-type="Python SDK" />
|
||||
</project>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/pytest_api_demo.iml" filepath="$PROJECT_DIR$/.idea/pytest_api_demo.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,22 +0,0 @@
|
|||
%(levelname)-8s2021-12-31 16:03:51,680 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:92 执行失败用例数:1
|
||||
%(levelname)-8s2021-12-31 16:17:32,918 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:92 执行失败用例数:0
|
||||
%(levelname)-8s2021-12-31 16:19:37,990 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:92 执行失败用例数:0
|
||||
%(levelname)-8s2021-12-31 16:19:40,787 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:92 执行失败用例数:0
|
||||
%(levelname)-8s2021-12-31 16:23:52,137 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:94 执行失败用例数:0
|
||||
%(levelname)-8s2021-12-31 16:35:52,384 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:94 执行失败用例数:0
|
||||
%(levelname)-8s2021-12-31 16:45:43,108 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:assertControl.py:95 检测到数据库状态为关闭状态,程序已为您跳过此断言,断言值:{'jsonpath': '$.status', 'type': '==', 'value': 200, 'AssertType': 'SQL'}
|
||||
%(levelname)-8s2021-12-31 16:45:43,108 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:assertControl.py:95 检测到数据库状态为关闭状态,程序已为您跳过此断言,断言值:{'jsonpath': '$.status', 'type': '==', 'value': 200, 'AssertType': 'SQL'}
|
||||
%(levelname)-8s2021-12-31 16:45:43,118 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:94 执行失败用例数:0
|
||||
%(levelname)-8s2021-12-31 16:45:43,118 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:94 执行失败用例数:0
|
||||
%(levelname)-8s2021-12-31 17:05:50,937 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:assertControl.py:89 检测到数据库状态为关闭状态,程序已为您跳过此断言,断言值:{'jsonpath': '$.status', 'type': '==', 'value': 200, 'AssertType': 'SQL'}
|
||||
%(levelname)-8s2021-12-31 17:05:50,937 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:assertControl.py:89 检测到数据库状态为关闭状态,程序已为您跳过此断言,断言值:{'jsonpath': '$.status', 'type': '==', 'value': 200, 'AssertType': 'SQL'}
|
||||
%(levelname)-8s2021-12-31 17:11:41,492 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:94 执行失败用例数:0
|
||||
%(levelname)-8s2021-12-31 17:11:41,492 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:94 执行失败用例数:0
|
||||
%(levelname)-8s2021-12-31 17:11:44,236 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:assertControl.py:89 检测到数据库状态为关闭状态,程序已为您跳过此断言,断言值:{'jsonpath': '$.status', 'type': '==', 'value': 200, 'AssertType': 'SQL'}
|
||||
%(levelname)-8s2021-12-31 17:11:44,236 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:assertControl.py:89 检测到数据库状态为关闭状态,程序已为您跳过此断言,断言值:{'jsonpath': '$.status', 'type': '==', 'value': 200, 'AssertType': 'SQL'}
|
||||
%(levelname)-8s2021-12-31 17:11:44,493 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:94 执行失败用例数:1
|
||||
%(levelname)-8s2021-12-31 17:11:44,493 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:94 执行失败用例数:1
|
||||
%(levelname)-8s2021-12-31 17:15:16,534 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:assertControl.py:89 检测到数据库状态为关闭状态,程序已为您跳过此断言,断言值:{'jsonpath': '$.status', 'type': '==', 'value': 200, 'AssertType': 'SQL'}
|
||||
%(levelname)-8s2021-12-31 17:15:16,534 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:assertControl.py:89 检测到数据库状态为关闭状态,程序已为您跳过此断言,断言值:{'jsonpath': '$.status', 'type': '==', 'value': 200, 'AssertType': 'SQL'}
|
||||
%(levelname)-8s2021-12-31 17:15:16,547 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:94 执行失败用例数:0
|
||||
%(levelname)-8s2021-12-31 17:15:16,547 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\error.log:conftest.py:94 执行失败用例数:0
|
|
@ -1,259 +0,0 @@
|
|||
%(levelname)-8s2021-12-31 16:03:49,039 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2021-12-31 16:03:51,350 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:logDecorator.py:25
|
||||
=================================================================================
|
||||
测试标题: 测试接口
|
||||
请求方式: POST
|
||||
请求头: {'Content-Type': 'application/json;charset=UTF-8'}
|
||||
请求路径: https://redisdatarecall.csdn.net/recommend/get_head_word
|
||||
请求内容: {'requestType': 'params', 'bid': 'blog-121903028'}
|
||||
接口响应内容: {'status': 200, 'msg': '查询成功', 'content': ['pytest', 'gitee', 'yaml', 'api', 'jenkins', 'sdn'], 'error': False}
|
||||
数据库断言数据: {'sql': None}
|
||||
函数名称: _DoRequest
|
||||
=================================================================================
|
||||
%(levelname)-8s2021-12-31 16:03:51,678 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:89 执行用例总数: 1
|
||||
%(levelname)-8s2021-12-31 16:03:51,679 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:90 执行通过用例数:0
|
||||
%(levelname)-8s2021-12-31 16:03:51,684 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:94 执行异常用例数:0
|
||||
%(levelname)-8s2021-12-31 16:03:51,684 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:96 执行跳过用例数:0
|
||||
%(levelname)-8s2021-12-31 16:03:51,684 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:98 执行成功率: 成功率:0.00%
|
||||
%(levelname)-8s2021-12-31 16:17:31,774 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2021-12-31 16:17:32,902 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:logDecorator.py:25
|
||||
=================================================================================
|
||||
测试标题: 测试接口
|
||||
请求方式: POST
|
||||
请求头: {'Content-Type': 'application/json;charset=UTF-8'}
|
||||
请求路径: https://redisdatarecall.csdn.net/recommend/get_head_word
|
||||
请求内容: {'requestType': 'params', 'bid': 'blog-121903028'}
|
||||
接口响应内容: {'status': 200, 'msg': '查询成功', 'content': ['pytest', 'gitee', 'yaml', 'api', 'jenkins', 'sdn'], 'error': False}
|
||||
数据库断言数据: {'sql': None}
|
||||
函数名称: _DoRequest
|
||||
=================================================================================
|
||||
%(levelname)-8s2021-12-31 16:17:32,918 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:89 执行用例总数: 1
|
||||
%(levelname)-8s2021-12-31 16:17:32,918 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:90 执行通过用例数:1
|
||||
%(levelname)-8s2021-12-31 16:17:32,919 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:94 执行异常用例数:0
|
||||
%(levelname)-8s2021-12-31 16:17:32,919 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:96 执行跳过用例数:0
|
||||
%(levelname)-8s2021-12-31 16:17:32,919 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:98 执行成功率: 成功率:100.00%
|
||||
%(levelname)-8s2021-12-31 16:19:12,909 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2021-12-31 16:19:14,660 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:logDecorator.py:25
|
||||
=================================================================================
|
||||
测试标题: 测试接口
|
||||
请求方式: POST
|
||||
请求头: {'Content-Type': 'application/json;charset=UTF-8'}
|
||||
请求路径: https://redisdatarecall.csdn.net/recommend/get_head_word
|
||||
请求内容: {'requestType': 'params', 'bid': 'blog-121903028'}
|
||||
接口响应内容: {'status': 200, 'msg': '查询成功', 'content': ['pytest', 'gitee', 'yaml', 'api', 'jenkins', 'sdn'], 'error': False}
|
||||
数据库断言数据: {'sql': None}
|
||||
函数名称: _DoRequest
|
||||
=================================================================================
|
||||
%(levelname)-8s2021-12-31 16:19:37,989 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:89 执行用例总数: 1
|
||||
%(levelname)-8s2021-12-31 16:19:37,990 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:90 执行通过用例数:0
|
||||
%(levelname)-8s2021-12-31 16:19:37,990 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:94 执行异常用例数:0
|
||||
%(levelname)-8s2021-12-31 16:19:37,990 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:96 执行跳过用例数:0
|
||||
%(levelname)-8s2021-12-31 16:19:37,990 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:98 执行成功率: 成功率:0.00%
|
||||
%(levelname)-8s2021-12-31 16:19:39,394 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2021-12-31 16:19:40,772 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:logDecorator.py:25
|
||||
=================================================================================
|
||||
测试标题: 测试接口
|
||||
请求方式: POST
|
||||
请求头: {'Content-Type': 'application/json;charset=UTF-8'}
|
||||
请求路径: https://redisdatarecall.csdn.net/recommend/get_head_word
|
||||
请求内容: {'requestType': 'params', 'bid': 'blog-121903028'}
|
||||
接口响应内容: {'status': 200, 'msg': '查询成功', 'content': ['pytest', 'gitee', 'yaml', 'api', 'jenkins', 'sdn'], 'error': False}
|
||||
数据库断言数据: {'sql': None}
|
||||
函数名称: _DoRequest
|
||||
=================================================================================
|
||||
%(levelname)-8s2021-12-31 16:19:40,787 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:89 执行用例总数: 1
|
||||
%(levelname)-8s2021-12-31 16:19:40,787 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:90 执行通过用例数:1
|
||||
%(levelname)-8s2021-12-31 16:19:40,788 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:94 执行异常用例数:0
|
||||
%(levelname)-8s2021-12-31 16:19:40,788 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:96 执行跳过用例数:0
|
||||
%(levelname)-8s2021-12-31 16:19:40,788 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:98 执行成功率: 成功率:100.00%
|
||||
%(levelname)-8s2021-12-31 16:23:50,893 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2021-12-31 16:23:52,121 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:logDecorator.py:25
|
||||
=================================================================================
|
||||
测试标题: 测试接口
|
||||
请求方式: POST
|
||||
请求头: {'Content-Type': 'application/json;charset=UTF-8'}
|
||||
请求路径: https://redisdatarecall.csdn.net/recommend/get_head_word
|
||||
请求内容: {'requestType': 'params', 'bid': 'blog-121903028'}
|
||||
接口响应内容: {'status': 200, 'msg': '查询成功', 'content': ['pytest', 'gitee', 'yaml', 'api', 'jenkins', 'sdn'], 'error': False}
|
||||
数据库断言数据: {'sql': None}
|
||||
函数名称: _DoRequest
|
||||
=================================================================================
|
||||
%(levelname)-8s2021-12-31 16:23:52,137 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:91 执行用例总数: 1
|
||||
%(levelname)-8s2021-12-31 16:23:52,137 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:92 执行通过用例数:1
|
||||
%(levelname)-8s2021-12-31 16:23:52,173 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:96 执行异常用例数:0
|
||||
%(levelname)-8s2021-12-31 16:23:52,173 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:98 执行跳过用例数:0
|
||||
%(levelname)-8s2021-12-31 16:23:52,173 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:100 执行成功率: 成功率:100.00%
|
||||
%(levelname)-8s2021-12-31 16:35:51,267 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2021-12-31 16:35:52,368 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:logDecorator.py:25
|
||||
=================================================================================
|
||||
测试标题: 测试接口
|
||||
请求方式: POST
|
||||
请求头: {'Content-Type': 'application/json;charset=UTF-8'}
|
||||
请求路径: https://redisdatarecall.csdn.net/recommend/get_head_word
|
||||
请求内容: {'requestType': 'params', 'bid': 'blog-121903028'}
|
||||
接口响应内容: {'status': 200, 'msg': '查询成功', 'content': ['pytest', 'gitee', 'yaml', 'api', 'jenkins', 'sdn'], 'error': False}
|
||||
数据库断言数据: {'sql': None}
|
||||
函数名称: _DoRequest
|
||||
=================================================================================
|
||||
%(levelname)-8s2021-12-31 16:35:52,384 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:91 执行用例总数: 1
|
||||
%(levelname)-8s2021-12-31 16:35:52,384 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:92 执行通过用例数:1
|
||||
%(levelname)-8s2021-12-31 16:35:52,384 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:96 执行异常用例数:0
|
||||
%(levelname)-8s2021-12-31 16:35:52,385 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:98 执行跳过用例数:0
|
||||
%(levelname)-8s2021-12-31 16:35:52,385 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:100 执行成功率: 成功率:100.00%
|
||||
%(levelname)-8s2021-12-31 16:36:06,680 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2021-12-31 16:45:41,991 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2021-12-31 16:45:43,099 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:logDecorator.py:25
|
||||
=================================================================================
|
||||
测试标题: 测试接口
|
||||
请求方式: POST
|
||||
请求头: {'Content-Type': 'application/json;charset=UTF-8'}
|
||||
请求路径: https://redisdatarecall.csdn.net/recommend/get_head_word
|
||||
请求内容: {'requestType': 'params', 'bid': 'blog-121903028'}
|
||||
接口响应内容: {'status': 200, 'msg': '查询成功', 'content': ['pytest', 'gitee', 'yaml', 'api', 'jenkins', 'sdn'], 'error': False}
|
||||
数据库断言数据: {'sql': None}
|
||||
函数名称: _DoRequest
|
||||
=================================================================================
|
||||
%(levelname)-8s2021-12-31 16:45:43,118 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:91 执行用例总数: 1
|
||||
%(levelname)-8s2021-12-31 16:45:43,118 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:92 执行通过用例数:1
|
||||
%(levelname)-8s2021-12-31 16:45:43,118 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:96 执行异常用例数:0
|
||||
%(levelname)-8s2021-12-31 16:45:43,119 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:98 执行跳过用例数:0
|
||||
%(levelname)-8s2021-12-31 16:45:43,119 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:100 执行成功率: 成功率:100.00%
|
||||
%(levelname)-8s2021-12-31 17:05:15,904 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2021-12-31 17:05:17,691 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:logDecorator.py:25
|
||||
=================================================================================
|
||||
测试标题: 测试接口
|
||||
请求方式: POST
|
||||
请求头: {'Content-Type': 'application/json;charset=UTF-8'}
|
||||
请求路径: https://redisdatarecall.csdn.net/recommend/get_head_word
|
||||
请求内容: {'requestType': 'params', 'bid': 'blog-121903028'}
|
||||
接口响应内容: {'status': 200, 'msg': '查询成功', 'content': ['pytest', 'gitee', 'yaml', 'api', 'jenkins', 'sdn'], 'error': False}
|
||||
数据库断言数据: {'sql': None}
|
||||
函数名称: _DoRequest
|
||||
=================================================================================
|
||||
%(levelname)-8s2021-12-31 17:11:41,492 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:91 执行用例总数: 1
|
||||
%(levelname)-8s2021-12-31 17:11:41,492 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:92 执行通过用例数:0
|
||||
%(levelname)-8s2021-12-31 17:11:41,493 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:96 执行异常用例数:0
|
||||
%(levelname)-8s2021-12-31 17:11:41,493 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:98 执行跳过用例数:0
|
||||
%(levelname)-8s2021-12-31 17:11:41,493 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:100 执行成功率: 成功率:0.00%
|
||||
%(levelname)-8s2021-12-31 17:11:42,921 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2021-12-31 17:11:44,231 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:logDecorator.py:25
|
||||
=================================================================================
|
||||
测试标题: 测试接口
|
||||
请求方式: POST
|
||||
请求头: {'Content-Type': 'application/json;charset=UTF-8'}
|
||||
请求路径: https://redisdatarecall.csdn.net/recommend/get_head_word
|
||||
请求内容: {'requestType': 'params', 'bid': 'blog-121903028'}
|
||||
接口响应内容: {'status': 200, 'msg': '查询成功', 'content': ['pytest', 'gitee', 'yaml', 'api', 'jenkins', 'sdn'], 'error': False}
|
||||
数据库断言数据: {'sql': None}
|
||||
函数名称: _DoRequest
|
||||
=================================================================================
|
||||
%(levelname)-8s2021-12-31 17:11:44,492 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:91 执行用例总数: 1
|
||||
%(levelname)-8s2021-12-31 17:11:44,493 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:92 执行通过用例数:0
|
||||
%(levelname)-8s2021-12-31 17:11:44,493 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:96 执行异常用例数:0
|
||||
%(levelname)-8s2021-12-31 17:11:44,494 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:98 执行跳过用例数:0
|
||||
%(levelname)-8s2021-12-31 17:11:44,494 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:100 执行成功率: 成功率:0.00%
|
||||
%(levelname)-8s2021-12-31 17:15:15,421 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:run.py:19
|
||||
_ _ _ _____ _
|
||||
__ _ _ __ (_) / \ _ _| |_ __|_ _|__ ___| |_
|
||||
/ _` | '_ \| | / _ \| | | | __/ _ \| |/ _ \/ __| __|
|
||||
| (_| | |_) | |/ ___ \ |_| | || (_) | | __/\__ \ |_
|
||||
\__,_| .__/|_/_/ \_\__,_|\__\___/|_|\___||___/\__|
|
||||
|_|
|
||||
开始执行余少琪的框架项目...
|
||||
|
||||
%(levelname)-8s2021-12-31 17:15:16,529 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:logDecorator.py:25
|
||||
=================================================================================
|
||||
测试标题: 测试接口
|
||||
请求方式: POST
|
||||
请求头: {'Content-Type': 'application/json;charset=UTF-8'}
|
||||
请求路径: https://redisdatarecall.csdn.net/recommend/get_head_word
|
||||
请求内容: {'requestType': 'params', 'bid': 'blog-121903028'}
|
||||
接口响应内容: {'status': 200, 'msg': '查询成功', 'content': ['pytest', 'gitee', 'yaml', 'api', 'jenkins', 'sdn'], 'error': False}
|
||||
数据库断言数据: {'sql': None}
|
||||
函数名称: _DoRequest
|
||||
=================================================================================
|
||||
%(levelname)-8s2021-12-31 17:15:16,546 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:91 执行用例总数: 1
|
||||
%(levelname)-8s2021-12-31 17:15:16,547 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:92 执行通过用例数:1
|
||||
%(levelname)-8s2021-12-31 17:15:16,547 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:96 执行异常用例数:0
|
||||
%(levelname)-8s2021-12-31 17:15:16,547 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:98 执行跳过用例数:0
|
||||
%(levelname)-8s2021-12-31 17:15:16,547 C:\Users\hzxy\PycharmProjects\py_auto_demo\pytest_api_demo\logs\info.log:conftest.py:100 执行成功率: 成功率:100.00%
|
|
@ -107,13 +107,4 @@ class RequestControl:
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
a = RequestControl().HttpRequest('get', {
|
||||
'url': 'http://merchant.test.feng-go.com/api/v1/merchant/spu/manager/countSpuByStatus?spuType=1',
|
||||
'method': 'GET', 'detail':
|
||||
'获取商品状态以及商品总数',
|
||||
'headers': {'Content-Type': 'application/json;charset=UTF-8',
|
||||
'token': 'token', 'X-Shop-Id':
|
||||
'515'}, 'data': {'requestType': 'json', 'spuType': 1},
|
||||
'resp': {'code': {'jsonpath': '$.code', 'type': '==',
|
||||
'value': 200}}, 'sql': None}, )
|
||||
print(a)
|
||||
pass
|