Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
askbooks
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
齐文博
askbooks
Commits
fcbc6fb7
Commit
fcbc6fb7
authored
May 14, 2024
by
左磊磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
24年05月14号11点56分更新:输出用例描述
parent
10dc336b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
BaseCase.java
src/test/java/com/lemon/cases/BaseCase.java
+4
-3
No files found.
src/test/java/com/lemon/cases/BaseCase.java
View file @
fcbc6fb7
...
@@ -58,8 +58,9 @@ public class BaseCase {
...
@@ -58,8 +58,9 @@ public class BaseCase {
*/
*/
@Step
(
"接口调用方法"
)
@Step
(
"接口调用方法"
)
public
String
call
(
API
api
,
Case
cas
,
boolean
isAuthorization
)
{
public
String
call
(
API
api
,
Case
cas
,
boolean
isAuthorization
)
{
log
.
info
(
"===================调用接口:"
+
api
.
getName
()
+
"==================="
);
log
.
info
(
"===================接口编号:"
+
api
.
getName
()
+
"==================="
);
log
.
info
(
"用例描述:"
+
cas
.
getDesc
());
log
.
info
(
"用例编号:"
+
cas
.
getId
());
log
.
info
(
"用例描述:"
+
cas
.
getDesc
());
String
url
=
api
.
getUrl
();
String
url
=
api
.
getUrl
();
String
type
=
api
.
getMethod
();
String
type
=
api
.
getMethod
();
String
contentType
=
api
.
getContentType
();
String
contentType
=
api
.
getContentType
();
...
@@ -119,7 +120,7 @@ public class BaseCase {
...
@@ -119,7 +120,7 @@ public class BaseCase {
}
}
public
boolean
assertSqlB
(
String
beforeSqlResult
,
String
afterSqlResult
)
{
public
boolean
assertSqlB
(
String
beforeSqlResult
,
String
afterSqlResult
)
{
// 判断如果B段SQL执行首次为空,第二次非空
// 判断如果B段SQL执行首次为空,第二次非空
boolean
flag
=
false
;
boolean
flag
=
false
;
if
(
beforeSqlResult
==
null
&&
afterSqlResult
!=
null
)
{
if
(
beforeSqlResult
==
null
&&
afterSqlResult
!=
null
)
{
...
...
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