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
0994ac80
Commit
0994ac80
authored
Apr 04, 2019
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
fd64fe09
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
总帐户提现页校验_AccessTest.java
src/test/java/http/cases/WalletTest/总帐户提现页校验_AccessTest.java
+4
-1
总帐户账户正常提现_AccessTest.java
...test/java/http/cases/WalletTest/总帐户账户正常提现_AccessTest.java
+1
-1
GlobalRewardService.java
src/test/java/http/service/Activity/GlobalRewardService.java
+23
-0
No files found.
src/test/java/http/cases/WalletTest/总帐户提现页校验.java
→
src/test/java/http/cases/WalletTest/总帐户提现页校验
_AccessTest
.java
View file @
0994ac80
...
...
@@ -25,7 +25,7 @@ import static io.restassured.RestAssured.given;
* Created by 赵然 on 2019/04/04
* AppId: 22565
*/
public
class
总帐户提现页校验
extends
DuibaTestBase
{
public
class
总帐户提现页校验
_AccessTest
extends
DuibaTestBase
{
@Value
(
"${activity.host}"
)
String
activityHost
;
@Autowired
...
...
@@ -83,5 +83,8 @@ public class 总帐户提现页校验 extends DuibaTestBase{
Assert
.
assertEquals
(
relType
,
"PK"
,
"关联活动类型校验失败"
);
Assert
.
assertEquals
(
relTypeName
,
"组件pk"
,
"关联活动名称校验失败"
);
response
=
globalRewardService
.
periodCount
(
"18157163293"
,
"22565"
,
"2"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"data"
),
"1"
,
"周期个数校验失败"
);
}
}
src/test/java/http/cases/WalletTest/总帐户账户正常提现.java
→
src/test/java/http/cases/WalletTest/总帐户账户正常提现
_AccessTest
.java
View file @
0994ac80
...
...
@@ -26,7 +26,7 @@ import static io.restassured.RestAssured.given;
* Created by 赵然 on 2019/03/29
* AppId: 22565
*/
public
class
总帐户账户正常提现
extends
DuibaTestBase
{
public
class
总帐户账户正常提现
_AccessTest
extends
DuibaTestBase
{
@Value
(
"${activity.host}"
)
String
activityHost
;
@Autowired
...
...
src/test/java/http/service/Activity/GlobalRewardService.java
View file @
0994ac80
...
...
@@ -104,6 +104,29 @@ public class GlobalRewardService {
}
return
response
;
}
/**
* 开发者后台红包周期个数
* @param account
* @param appId
* @param periodStatus 2:进行中
* @return
* @throws Exception
*/
public
Response
periodCount
(
String
account
,
String
appId
,
String
periodStatus
)
throws
Exception
{
logger
.
info
(
"请求periodCount"
);
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"periodStatus"
,
periodStatus
);
Response
response
=
given
().
contentType
(
"application/x-www-form-urlencoded;charset=UTF-8"
).
cookies
(
authorization
.
hdLoginSaasNew
(
account
,
appId
)).
params
(
map
).
post
(
"http://"
+
hdHost
+
"/redpackets/manageTool/periodCount"
);
try
{
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"success"
),
"true"
,
"/globalReward/toWithdraw接口失败"
);
}
catch
(
Exception
e
){
throw
new
Exception
(
"/redpackets/manageTool/periodCount接口失败,返回信息:"
+
response
.
asString
());
}
catch
(
Error
er
){
throw
new
Exception
(
"/redpackets/manageTool/periodCount接口失败,返回信息:"
+
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