Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nwn_Api_auto_test
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
shuai
nwn_Api_auto_test
Commits
f0c632df
Commit
f0c632df
authored
Feb 22, 2019
by
wff66504
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决冲突
parent
8e1eb2de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
APITest_nwn.java
nwn_Api_auto_test/src/com/offcn/test/APITest_nwn.java
+13
-8
MakeTestCases.java
nwn_Api_auto_test/src/makeTestCase/MakeTestCases.java
+2
-2
No files found.
nwn_Api_auto_test/src/com/offcn/test/APITest_nwn.java
View file @
f0c632df
...
...
@@ -99,13 +99,18 @@ public class APITest_nwn extends NWN{
if
(
data
.
get
(
"Description"
).
toString
().
contains
(
"流程"
)){
result
=
obj
.
handleOutput
(
re
,
data
);
}
}
else
{
result
=
obj
.
handleOutput
(
re
,
data
);
}
codeORerrcode
=
getCode
(
re
);
msgORerrmsy
=
getMsg
(
re
);
// else{
// result = obj.handleOutput(re, data);
// }
// codeORerrcode=getCode(re);
// msgORerrmsy=getMsg(re);
}
}
result
=
obj
.
handleOutput
(
re
,
data
);
codeORerrcode
=
getCode
(
re
);
msgORerrmsy
=
getMsg
(
re
);
Log
.
logInfo
(
"返回结果="
+
StringUtils
.
decodeUnicode
(
body
));
System
.
out
.
println
();
...
...
@@ -113,7 +118,7 @@ public class APITest_nwn extends NWN{
//数据回写
// HashMap<String, Object> ExpectResult=MapUtil.Expect(data);
SheetUtils
sheet
=
new
SheetUtils
(
"DataAllWff
.xls"
,
"Output"
);
/* SheetUtils sheet = new SheetUtils("DataAll
.xls", "Output");
sheet.writeExcel(
data.get("NO").toString(),
data.get("TCNO").toString() + "_Step" + data.get("Step").toString(),
...
...
@@ -127,7 +132,7 @@ public class APITest_nwn extends NWN{
msgORerrmsy,
result,
time
);
);
*/
if
(
result
.
indexOf
(
"Fail"
)!=-
1
){
String
Expect1
=
data
.
get
(
"code"
)==
null
?
""
:
data
.
get
(
"code"
).
toString
();
...
...
@@ -147,7 +152,7 @@ public class APITest_nwn extends NWN{
//测试结束删除测试所用的数据
if
(!
isClearMysql
)
{
this
.
cleann_n_admin_card_no_List_FromDB
();
//
this.cleann_n_package_List_FromDB();
this
.
cleann_n_package_List_FromDB
();
this
.
cleann_user_id_List_FromDB
();
this
.
cleann_getcode_id_List_FromDB
();
try
{
...
...
nwn_Api_auto_test/src/makeTestCase/MakeTestCases.java
View file @
f0c632df
...
...
@@ -35,7 +35,7 @@ public class MakeTestCases {
public
static
void
main
(
String
[]
args
)
{
make
(
"TestData/CaseMake
Wff.xls"
,
"Sheet1"
,
"get"
,
"nwngg
"
);
make
(
"TestData/CaseMake
.xls"
,
"Sheet1"
,
"put"
,
"put
"
);
}
...
...
@@ -324,7 +324,7 @@ public class MakeTestCases {
// System.out.println(nameList);
for
(
int
i
=
0
;
i
<
MakeTestCases
.
state
;
i
++){
List
<
Set
<
String
>>
a
=
TestCase_N
(
"TestData/CaseMake
Wff
.xls"
,
SheetList
.
get
(
i
),
nameList
.
get
(
i
));
List
<
Set
<
String
>>
a
=
TestCase_N
(
"TestData/CaseMake.xls"
,
SheetList
.
get
(
i
),
nameList
.
get
(
i
));
listt
.
add
(
a
.
get
(
0
));
listf
.
add
(
a
.
get
(
1
));
}
...
...
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