Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
willdesk_apiauto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
29
Issues
29
List
Boards
Labels
Service Desk
Milestones
Merge Requests
29
Merge Requests
29
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
桦生 詹
willdesk_apiauto
Commits
bd758b61
Commit
bd758b61
authored
Mar 28, 2024
by
zhanhuasheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增用例
parent
655ce221
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Utils/req_handler.py
Utils/req_handler.py
+1
-0
YamlCase/inbox/ticketDetail.yaml
YamlCase/inbox/ticketDetail.yaml
+2
-2
No files found.
Utils/req_handler.py
View file @
bd758b61
...
...
@@ -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
...
...
YamlCase/inbox/ticketDetail.yaml
View file @
bd758b61
...
...
@@ -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}'
"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment