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
5c6fca8c
Commit
5c6fca8c
authored
Nov 08, 2018
by
周松波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 2 cases
parent
72ab0dc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
26 deletions
+22
-26
ContractSign_signTest.java
src/test/java/http/cases/SignTest/ContractSign_signTest.java
+22
-26
No files found.
src/test/java/http/cases/SignTest/ContractSign_signTest.java
View file @
5c6fca8c
...
@@ -318,32 +318,28 @@ public class ContractSign_signTest extends DuibaTestBase {
...
@@ -318,32 +318,28 @@ public class ContractSign_signTest extends DuibaTestBase {
}
}
private
void
modifyJoinTime
(
String
actId
,
String
date
,
String
startTime
,
String
endTime
)
throws
Exception
{
private
void
modifyJoinTime
(
String
actId
,
String
date
,
String
startTime
,
String
endTime
)
throws
Exception
{
String
jsonBody
=
String
.
format
(
"{"
+
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
"\"title\":\"自动化_报名截止时间\","
+
map
.
put
(
"title"
,
"自动化_报名截止时间"
);
"\"betCount\":1000,"
+
map
.
put
(
"betCount"
,
"1000"
);
"\"betType\":2,"
+
map
.
put
(
"bonusType"
,
"0"
);
"\"openType\":0,"
+
map
.
put
(
"betType"
,
"2"
);
"\"rangeList\":[],"
+
map
.
put
(
"bankerBonus"
,
"10000"
);
"\"enableAmpifyCard\":false,"
+
map
.
put
(
"ruleDesc:"
,
"<p>bao ming 截止时间</p>"
);
"\"bonusType\":0,"
+
map
.
put
(
"contractCycle"
,
"7"
);
"\"bankerBonus\":10000,"
+
map
.
put
(
"joinTimeLimit"
,
false
);
"\"ruleDesc\":null,"
+
map
.
put
(
"fakeLimit"
,
false
);
"\"contractCycle\":7,"
+
map
.
put
(
"rankPeriod"
,
"1"
);
"\"joinTimeLimit\":false,"
+
map
.
put
(
"joinTimeStart"
,
startTime
);
"\"fakeLimit\":false,"
+
map
.
put
(
"joinTimeEnd"
,
endTime
);
"\"rankPeriod\":1,"
+
map
.
put
(
"joinDeadLine"
,
date
);
"\"mockValue\":0,"
+
map
.
put
(
"actId"
,
actId
);
"\"joinTimeStart\": \"%s\","
+
map
.
put
(
"openStatus"
,
true
);
"\"joinTimeEnd\": \"%s\","
+
map
.
put
(
"gradientAmountList"
,
""
);
"\"joinDeadLine\": \"%s\","
+
map
.
put
(
"freeJoinLimit"
,
"0"
);
"\"actId\":%s,"
+
map
.
put
(
"enableAmpifyCard"
,
false
);
"\"openStatus\":true,"
+
map
.
put
(
"openType"
,
"0"
);
"\"gradientAmountList\":\"\","
+
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
JSON
.
toJSONString
(
map
));
"\"freeJoinLimit\":0,"
+
Response
response
=
given
().
contentType
(
"application/json;charset=UTF-8"
).
cookies
(
authorization
.
ssoLogin
()).
body
(
jsonObject
).
post
(
"https://mng.duibatest.com.cn/newmanager/signContract/save"
);
"\"fakeRatio\":0"
+
"}"
,
startTime
,
endTime
,
date
,
actId
);
System
.
out
.
println
(
jsonBody
);
Response
response
=
given
().
contentType
(
"application/json;charset=UTF-8"
).
cookies
(
authorization
.
ssoLogin
()).
body
(
jsonBody
).
post
(
"https://mng.duibatest.com.cn/newmanager/signContract/save"
);
response
.
prettyPrint
();
response
.
prettyPrint
();
try
{
try
{
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"success"
),
"true"
,
"/signContract/save接口失败"
);
Assert
.
assertEquals
(
response
.
jsonPath
().
getString
(
"success"
),
"true"
,
"/signContract/save接口失败"
);
...
...
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