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
604ffa95
Commit
604ffa95
authored
Nov 02, 2018
by
周松波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
songbo
parent
c5ac9209
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
ContractSign_signTest.java
src/test/java/http/cases/SignTest/ContractSign_signTest.java
+23
-3
No files found.
src/test/java/http/cases/SignTest/ContractSign_signTest.java
View file @
604ffa95
...
...
@@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Value;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
utils.RedisUtil
;
import
java.sql.SQLException
;
import
java.text.ParseException
;
...
...
@@ -196,14 +197,33 @@ public class ContractSign_signTest extends DuibaTestBase {
}
//@Test(description = "
打卡完成,活动ID=2",priority = 4)
@Test
(
description
=
"uid3 uid4
打卡完成,活动ID=2"
,
priority
=
4
)
public
void
契约签到整期打卡完成
()
throws
Exception
{
//
//当前为打卡第6天,周期往期挪一天
String
actID
=
"2"
;
modifyIssuePeriod
(
actID
,
uid3
,
-
1
);
//补签前6天
this
.
contractResign
(
actID
,
uid3
,
7
,
false
);
this
.
contractResign
(
actID
,
uid4
,
7
,
false
);
//今日打卡
Response
signRes
=
ContractSignService
.
doSign
(
"2"
,
uid3
);
String
success
=
signRes
.
jsonPath
().
getString
(
"success"
);
String
status
=
signRes
.
jsonPath
().
getString
(
"status"
);
Assert
.
assertEquals
(
success
,
"true"
,
"uid3打卡失败"
);
Assert
.
assertEquals
(
status
,
"6"
,
"完成7日打卡状态不正确"
);
logger
.
info
(
"uid3七日打卡成功"
);
signRes
=
ContractSignService
.
doSign
(
"2"
,
uid4
);
success
=
signRes
.
jsonPath
().
getString
(
"success"
);
status
=
signRes
.
jsonPath
().
getString
(
"status"
);
Assert
.
assertEquals
(
success
,
"true"
,
"uid4打卡失败"
);
Assert
.
assertEquals
(
status
,
"6"
,
"完成7日打卡状态不正确"
);
logger
.
info
(
"uid4七日打卡成功"
);
}
//@Test(description = "开奖,活动ID=2",priority = 5)
public
void
契约开奖
()
throws
Exception
{
//
//修改redis的打卡日期键值
}
public
Map
<
String
,
String
>
doJoinResult
(
String
activityId
,
String
betAmount
,
int
uid
)
throws
Exception
{
Response
doJoinRes
=
ContractSignService
.
doJoin
(
activityId
,
betAmount
,
uid
);
...
...
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