Commit bd758b61 authored by zhanhuasheng's avatar zhanhuasheng

新增用例

parent 655ce221
......@@ -103,6 +103,7 @@ class ReqHandler:
raise TypeError('用例格式有误')
except AssertionError:
logger.error(f'{title}用例执行失败,失败原因:断言不通过\n期望值{expected}\n实际返回值{res.text}')
raise AssertionError
except Exception as e:
logger.error(f'{title}用例执行失败,失败原因:{e}')
raise Exception
......
......@@ -5,11 +5,11 @@ api1:
before_sql: inbox/ticketDetail_select.py
data: {"roomId":"${ticket_room_id}","v":"${v}"}
expected:
- eq: {"code" : 0}
- eq: {"$.code" : 0}
- eq: {"$.data.timeZone" : "${customer_time_zone}"}
- eq: {"$.data.location" : "${customer_location}"}
- eq: {"$.data.email" : "${customer_email}"}
- eq: {"$.data.phone" : "${customer_phone}"}
- eq: {"$.data.isVisitor" : "${customer_is_visitor}"}
- eq: {"$.data.customerId" : "${customer_id}"}
- eq: {"$.data.lastSeenTime" : "${customer_last_msg_time}"}
- eq: {"$.data.lastSeenTime" : "'${customer_last_msg_time}'"}
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