Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
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
马博
test-platform
Commits
6cdd4e07
Commit
6cdd4e07
authored
Nov 03, 2018
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
3fa9d5b7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
+22
-2
Database.java
src/test/java/http/cases/ExchangeTest/Database.java
+1
-0
开发者账户余额校验测试_ExchangeTest.java
...ava/http/cases/ExchangeTest/开发者账户余额校验测试_ExchangeTest.java
+0
-0
DeveloperAccountService.java
src/test/java/http/service/hd/DeveloperAccountService.java
+1
-1
DsOrderService.java
src/test/java/http/service/hd/DsOrderService.java
+20
-1
No files found.
src/test/java/http/cases/ExchangeTest/Database.java
View file @
6cdd4e07
...
...
@@ -12,4 +12,5 @@ public class Database {
public
static
String
orders5
=
"orders_0209"
;
public
static
String
orders6
=
"orders_0210"
;
public
static
String
orders7
=
"orders_0211"
;
public
static
String
orders8
=
"orders_0090"
;
}
src/test/java/http/cases/ExchangeTest/开发者账户余额校验测试.java
→
src/test/java/http/cases/ExchangeTest/开发者账户余额校验测试
_ExchangeTest
.java
View file @
6cdd4e07
This diff is collapsed.
Click to expand it.
src/test/java/http/service/hd/DeveloperAccountService.java
View file @
6cdd4e07
...
...
@@ -76,7 +76,7 @@ public class DeveloperAccountService {
map
.
put
(
"mode"
,
"two"
);
map
.
put
(
"orderId"
,
orderId
);
map
.
put
(
"rowId"
,
"1"
);
Response
response
=
given
().
cookies
(
authorization
.
hdLogin
(
)).
params
(
map
).
get
(
"http://"
+
url
);
Response
response
=
given
().
cookies
(
authorization
.
hdLogin
Common
(
"zhaoran@duiba.com.cn"
)).
params
(
map
).
get
(
"http://"
+
url
);
try
{
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"success"
),
"true"
,
"/developerAccount/cashDetail接口失败"
);
...
...
src/test/java/http/service/hd/DsOrderService.java
View file @
6cdd4e07
...
...
@@ -49,9 +49,28 @@ public class DsOrderService {
throw
new
Exception
(
"请求订单审核接口失败,返回信息:"
+
response
.
asString
());
}
return
response
;
}
//审核订单
public
Response
submitAudit
(
String
idArray
,
String
audit
,
String
email
)
throws
Exception
{
String
url
=
hdHost
+
"/dsOrder/submitAudit"
;
}
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"appId"
,
"18714"
);
map
.
put
(
"idArray"
,
idArray
);
map
.
put
(
"audit"
,
audit
);
map
.
put
(
"reason"
,
"测试订单审核不通过"
);
logger
.
info
(
"请求订单审核接口:"
+
url
);
Response
response
=
given
().
contentType
(
"application/x-www-form-urlencoded;charset=UTF-8"
).
cookies
(
authorization
.
hdLoginCommon
(
email
)).
params
(
map
).
post
(
"http://"
+
url
);
try
{
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"desc"
),
"成功"
);
}
catch
(
Exception
e
){
throw
new
Exception
(
"请求订单审核接口失败,返回信息:"
+
response
.
asString
());
}
catch
(
Error
er
){
throw
new
Exception
(
"请求订单审核接口失败,返回信息:"
+
response
.
asString
());
}
return
response
;
}
}
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