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
1db1deb6
Commit
1db1deb6
authored
Nov 22, 2018
by
shuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改不回写数据,提升运行速度
parent
240c0f62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
APITest_nwn.java
nwn_Api_auto_test/src/com/offcn/test/APITest_nwn.java
+16
-16
testng.xml
nwn_Api_auto_test/testng.xml
+1
-1
No files found.
nwn_Api_auto_test/src/com/offcn/test/APITest_nwn.java
View file @
1db1deb6
...
...
@@ -85,22 +85,22 @@ public class APITest_nwn extends NWN{
//数据回写
// HashMap<String, Object> ExpectResult=MapUtil.Expect(data);
SheetUtils
sheet
=
new
SheetUtils
(
"DataAll.xls"
,
"Output"
);
sheet
.
writeExcel
(
data
.
get
(
"NO"
).
toString
(),
data
.
get
(
"TCNO"
).
toString
()
+
"_Step"
+
data
.
get
(
"Step"
).
toString
(),
data
.
get
(
"Description"
).
toString
(),
parameter
,
// JSONObject.fromObject(ExpectResult).toString(),
re
.
getStatusCode
()+
""
,
// StringUtils.decodeUnicode(re==null?"":re.asString()),
StringUtils
.
decodeUnicode
(
body
),
codeORerrcode
,
msgORerrmsy
,
result
,
time
);
//
//
HashMap<String, Object> ExpectResult=MapUtil.Expect(data);
//
SheetUtils sheet = new SheetUtils("DataAll.xls", "Output");
//
sheet.writeExcel(
//
data.get("NO").toString(),
//
data.get("TCNO").toString() + "_Step" + data.get("Step").toString(),
//
data.get("Description").toString(),
//
parameter,
//
//
JSONObject.fromObject(ExpectResult).toString(),
//
re.getStatusCode()+"",
//
//
StringUtils.decodeUnicode(re==null?"":re.asString()),
//
StringUtils.decodeUnicode(body),
//
codeORerrcode,
//
msgORerrmsy,
//
result,
//
time
//
);
if
(
result
.
indexOf
(
"Fail"
)!=-
1
){
String
Expect1
=
data
.
get
(
"code"
)==
null
?
""
:
data
.
get
(
"code"
).
toString
();
...
...
nwn_Api_auto_test/testng.xml
View file @
1db1deb6
...
...
@@ -8,7 +8,7 @@
<test
name=
"Test"
>
<classes>
<class
name=
"com.offcn.test.APITest"
/>
<class
name=
"com.offcn.test.APITest
_nwn
"
/>
</classes>
</test>
...
...
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