Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webappauto
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
Li Yongyu
webappauto
Commits
ac83e787
Commit
ac83e787
authored
Oct 24, 2018
by
shuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2018-10-24线上
parent
653e07bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
APITest.java
Api_auto_test/src/com/offcn/test/APITest.java
+14
-14
test.properties
Api_auto_test/src/resources/test.properties
+2
-2
No files found.
Api_auto_test/src/com/offcn/test/APITest.java
View file @
ac83e787
...
@@ -77,20 +77,20 @@ public class APITest extends XYZB{
...
@@ -77,20 +77,20 @@ public class APITest extends XYZB{
//数据回写
//数据回写
HashMap
<
String
,
Object
>
ExpectResult
=
MapUtil
.
Expect
(
data
);
//
HashMap<String, Object> ExpectResult=MapUtil.Expect(data);
SheetUtils
sheet
=
new
SheetUtils
(
"DataAll.xls"
,
"Output"
);
//
SheetUtils sheet = new SheetUtils("DataAll.xls", "Output");
sheet
.
writeExcel
(
//
sheet.writeExcel(
data
.
get
(
"NO"
).
toString
(),
//
data.get("NO").toString(),
data
.
get
(
"TCNO"
).
toString
()
+
"_Step"
+
data
.
get
(
"Step"
).
toString
(),
//
data.get("TCNO").toString() + "_Step" + data.get("Step").toString(),
data
.
get
(
"Description"
).
toString
(),
//
data.get("Description").toString(),
parameter
,
//
parameter,
JSONObject
.
fromObject
(
ExpectResult
).
toString
(),
//
JSONObject.fromObject(ExpectResult).toString(),
StringUtils
.
decodeUnicode
(
re
.
asString
()),
//
StringUtils.decodeUnicode(re.asString()),
codeORerrcode
,
//
codeORerrcode,
msgORerrmsy
,
//
msgORerrmsy,
result
,
//
result,
time
//
time
);
//
);
if
(
result
.
indexOf
(
"Fail"
)!=-
1
){
if
(
result
.
indexOf
(
"Fail"
)!=-
1
){
String
Expect1
=
data
.
get
(
"code"
)==
null
?
""
:
data
.
get
(
"code"
).
toString
();
String
Expect1
=
data
.
get
(
"code"
)==
null
?
""
:
data
.
get
(
"code"
).
toString
();
String
Expect2
=
data
.
get
(
"msg"
)==
null
?
""
:
data
.
get
(
"msg"
).
toString
();
String
Expect2
=
data
.
get
(
"msg"
)==
null
?
""
:
data
.
get
(
"msg"
).
toString
();
...
...
Api_auto_test/src/resources/test.properties
View file @
ac83e787
xls
=
DataAll.xls
xls
=
DataAll.xls
sheet
=
TestCase2
sheet
=
TestCase2
mysql_local_Online
=
local
mysql_local_Online
=
Online
\ No newline at end of file
\ No newline at end of file
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