Commit 1809bd5b by li_erpang

接口自动化框架v1.0

parent 6370fe9c
......@@ -8,8 +8,7 @@
#
# ---------------------------------------------------------------------------
import pymysql
from InterfaceAutoTest01.InterfaceAutoTest.common.read_ini import ReadIni
from InterfaceAutoTest.common.read_ini import ReadIni
class DB:
......
......@@ -9,13 +9,9 @@
# ---------------------------------------------------------------------------
import openpyxl
from InterfaceAutoTest01.InterfaceAutoTest.data_config.settings import *
from InterfaceAutoTest01.InterfaceAutoTest.common.read_ini import ReadIni
from InterfaceAutoTest01.InterfaceAutoTest.common.read_json import read_json
from InterfaceAutoTest.common.read_ini import ReadIni
from InterfaceAutoTest.common.read_json import read_json
from InterfaceAutoTest.data_config.settings import *
class ReadExcel:
......
ERROR--2023-08-10 10:43:10--断言失败, 模块名称为:认证接口,接口名称为:刷新token,用例标题:正向用例,用例为:None,期望结果为:{'message': '刷新token成功'},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE3OTAsImlhdCI6MTY5MTYzNTM5MH0._1yAREMhVkFJbqMxii5siMR9xA7tEbfxdTr-t4K5NDSpZmoLkgqCHBA4yid5nPXXQO3U5u7H8ypqzlinFbRwYw","username":"","account":"","userId":"","loginStatus":true,"userAttrs":{}}
ERROR--2023-08-07 17:37:29--断言失败, 模块名称为:认证接口,接口名称为:刷新token,用例标题:正向用例,用例为:None,期望结果为:{'message': '刷新token成功'},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE0ODc0NDgsImlhdCI6MTY5MTQwMTA0OH0.gt54v-T-WCOpa8k3UN4pnu2LlcEKlXTYvBZE0el83By0D_BgdWSzE-hsqdAwM-NvH9j6jfyfUZLKB4cYibM3tQ","username":"","account":"","userId":"","loginStatus":true,"userAttrs":{}}
ERROR--2023-08-10 10:43:10--断言失败, 模块名称为:认证接口,接口名称为:刷新token,用例标题:正向用例,用例为:None,期望结果为:{'message': '刷新token成功'},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE3MjE3OTAsImlhdCI6MTY5MTYzNTM5MH0._1yAREMhVkFJbqMxii5siMR9xA7tEbfxdTr-t4K5NDSpZmoLkgqCHBA4yid5nPXXQO3U5u7H8ypqzlinFbRwYw","username":"","account":"","userId":"","loginStatus":true,"userAttrs":{}}
ERROR--2023-08-10 10:43:11--断言失败, 模块名称为:维度管理,接口名称为:根据维度编码删除维度,用例标题:正向用例,用例为:{'ids': '1689467397309743104'},期望结果为:{'state': True, 'message': '删除维度成功'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":""}
ERROR--2023-08-07 17:37:29--断言失败, 模块名称为:认证接口,接口名称为:刷新token,用例标题:正向用例,用例为:None,期望结果为:{'message': '刷新token成功'},服务器返回数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE2OTE0ODc0NDgsImlhdCI6MTY5MTQwMTA0OH0.gt54v-T-WCOpa8k3UN4pnu2LlcEKlXTYvBZE0el83By0D_BgdWSzE-hsqdAwM-NvH9j6jfyfUZLKB4cYibM3tQ","username":"","account":"","userId":"","loginStatus":true,"userAttrs":{}}
ERROR--2023-08-07 17:37:30--断言失败, 模块名称为:维度管理,接口名称为:根据维度编码删除维度,用例标题:正向用例,用例为:{'ids': '1688484496363503616'},期望结果为:{'state': True, 'message': '删除维度成功'},服务器返回数据为:{"state":true,"message":"删除维度成功!","value":""}
......@@ -9,8 +9,7 @@
# ---------------------------------------------------------------------------
import base64
import requests
from InterfaceAutoTest01.InterfaceAutoTest.common.read_ini import ReadIni
from InterfaceAutoTest.common.read_ini import ReadIni
class RequestsMethod:
......
......@@ -9,11 +9,8 @@
# ---------------------------------------------------------------------------
import pytest
from InterfaceAutoTest01.InterfaceAutoTest.common.db import DB
from InterfaceAutoTest01.InterfaceAutoTest.requests_method.requests_method import RequestsMethod
from InterfaceAutoTest.common.db import DB
from InterfaceAutoTest.requests_method.requests_method import RequestsMethod
@pytest.fixture(scope="session")
......
......@@ -10,8 +10,7 @@
import pytest
import allure
import logging
from InterfaceAutoTest01.InterfaceAutoTest.common.read_excel import ReadExcel
from InterfaceAutoTest.common.read_excel import ReadExcel
class TestBPM:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment