Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
ManningTest
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ManningTest
ManningTest
Commits
1681b587
Commit
1681b587
authored
Jun 08, 2022
by
xiongjunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[modify:1.前置语句执行报错更新成用例执行失败结果,抛出异常 2.gitignore文件增加allure-results过滤3.补充物流结算测试点]
parent
ed8c9afd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
405 additions
and
4 deletions
+405
-4
.gitignore
.gitignore
+1
-0
MyAppLog.log
MyAppLog.log
+400
-0
TestCaseUtil.java
...in/java/com/miya/manning/framework/util/TestCaseUtil.java
+4
-4
Express.xls
src/main/resources/testcase/Express.xls
+0
-0
get-order-amount-info.xls
...n/resources/testcase/data/order/get-order-amount-info.xls
+0
-0
No files found.
.gitignore
View file @
1681b587
...
...
@@ -5,3 +5,4 @@ target/
*.iml
.idea/
**/*.log
allure-results/
MyAppLog.log
View file @
1681b587
This diff is collapsed.
Click to expand it.
src/main/java/com/miya/manning/framework/util/TestCaseUtil.java
View file @
1681b587
...
...
@@ -142,7 +142,7 @@ public class TestCaseUtil {
if
(!
res_map
.
containsKey
(
split1
[
0
]))
{
logger
.
error
(
"响应中未获取到对应的变量:"
+
split1
[
0
]);
return
false
;
}
if
(!
res_map
.
get
(
split1
[
0
]).
contains
(
check_string
)){
}
if
(!
res_map
.
get
(
split1
[
0
]).
toLowerCase
().
contains
(
check_string
)){
logger
.
error
(
split1
[
0
]
+
"的期望值:"
+
"不匹配!"
);
return
false
;
}
else
{
...
...
@@ -153,7 +153,7 @@ public class TestCaseUtil {
if
(!
res_map
.
containsKey
(
split1
[
0
])){
logger
.
error
(
"响应中未获取到对应的变量:"
+
split1
[
0
]
);
return
false
;
}
if
(!
res_map
.
get
(
split1
[
0
]).
equals
(
split1
[
1
])){
}
if
(!
res_map
.
get
(
split1
[
0
]).
toLowerCase
().
equals
(
split1
[
1
])){
logger
.
error
(
split1
[
0
]
+
"的期望值:"
+
"不匹配!"
);
return
false
;
}
else
{
...
...
@@ -166,7 +166,7 @@ public class TestCaseUtil {
return
flag
;
}
public
static
void
deal_pre_sql
(
String
pre_sql
,
Map
<
String
,
String
>
string_var_map
,
Map
<
String
,
Integer
>
int_var_map
,
Map
<
String
,
String
>
res_map
,
String
databasename
){
public
static
void
deal_pre_sql
(
String
pre_sql
,
Map
<
String
,
String
>
string_var_map
,
Map
<
String
,
Integer
>
int_var_map
,
Map
<
String
,
String
>
res_map
,
String
databasename
)
throws
Exception
{
if
(!
""
.
equals
(
pre_sql
)){
String
[]
subs
=
pre_sql
.
split
(
";"
);
for
(
String
each:
subs
){
...
...
@@ -221,8 +221,8 @@ public class TestCaseUtil {
int
rows
=
MysqlUtil
.
ExecuteSingleUpdateSQL
(
new_exec_sql
,
databasename
);
if
(
rows
==
0
){
logger
.
error
(
"前置语句执行失败,请检查!"
);
throw
new
Exception
(
"前置语句执行失败,请检查!"
);
//前置条件失败后,如果是dql语句,不影响后续用例执行,如果还是ddl语气,该组用例不执行
return
;
}
}
}
...
...
src/main/resources/testcase/Express.xls
View file @
1681b587
No preview for this file type
src/main/resources/testcase/data/order/get-order-amount-info.xls
View file @
1681b587
No preview for this file type
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