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
00a83fc8
Commit
00a83fc8
authored
Dec 03, 2018
by
马博
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into mabo
parents
8f50a69a
ba728f6f
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
715 additions
and
46 deletions
+715
-46
ObjectExchange_ExchangeTest.java
.../http/cases/ExchangeTest/ObjectExchange_ExchangeTest.java
+1
-1
ContractSignCommon.java
src/test/java/http/cases/SignTest/ContractSignCommon.java
+233
-0
ContractSign_Multi_signTest.java
...java/http/cases/SignTest/ContractSign_Multi_signTest.java
+402
-0
ContractSign_signTest.java
src/test/java/http/cases/SignTest/ContractSign_signTest.java
+71
-41
补签测试_signTest.java
src/test/java/http/cases/SignTest/补签测试_signTest.java
+3
-0
种红包配置校验_AccessTest.java
src/test/java/http/cases/WalletTest/种红包配置校验_AccessTest.java
+4
-4
SignactivityService.java
src/test/java/http/service/Activity/SignactivityService.java
+1
-0
No files found.
src/test/java/http/cases/ExchangeTest/ObjectExchange_ExchangeTest.java
View file @
00a83fc8
...
...
@@ -47,9 +47,9 @@ public class ObjectExchange_ExchangeTest extends CheckTemplet {
@BeforeClass
public
void
before
()
{
managerService
.
update
(
uid
,
"5555555"
);
// jdbc = MysqlUtils.mysqlDuiba("orders_consumer");
try
{
managerService
.
update
(
uid
,
"5555555"
);
jdbc
.
update
(
"delete from orders_consumer.orders_0614 where consumer_id = 100011622 and biz_params = 'DUIBA_SELF'"
,
null
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
src/test/java/http/cases/SignTest/ContractSignCommon.java
0 → 100644
View file @
00a83fc8
This diff is collapsed.
Click to expand it.
src/test/java/http/cases/SignTest/ContractSign_Multi_signTest.java
0 → 100644
View file @
00a83fc8
This diff is collapsed.
Click to expand it.
src/test/java/http/cases/SignTest/ContractSign_signTest.java
View file @
00a83fc8
This diff is collapsed.
Click to expand it.
src/test/java/http/cases/SignTest/补签测试_signTest.java
View file @
00a83fc8
...
...
@@ -265,6 +265,7 @@ public class 补签测试_signTest extends DuibaTestBase {
map
.
put
(
"cirReward"
,
"{\"rwType\":\"CIRCLE\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":null,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":true}"
);
map
.
put
(
"acmReward"
,
"{\"rwType\":\"ACCUMULATE\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":false}"
);
map
.
put
(
"firstSignReward"
,
"{\"rwType\":\"FIRST_SIGN\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":false}"
);
map
.
put
(
"cntOnceReward"
,
"{\"rwType\":null,\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":null,\"open\":false}"
);
map
.
put
(
"fullSignReward"
,
"{\"rwType\":\"FULL_SIGN\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":false}"
);
map
.
put
(
"operatingPositions"
,
"[]"
);
logger
.
info
(
"请求configEdit接口"
);
...
...
@@ -318,6 +319,7 @@ public class 补签测试_signTest extends DuibaTestBase {
map
.
put
(
"cirReward"
,
"{\"rwType\":\"CIRCLE\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":null,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":true}"
);
map
.
put
(
"acmReward"
,
"{\"rwType\":\"ACCUMULATE\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":false}"
);
map
.
put
(
"firstSignReward"
,
"{\"rwType\":\"FIRST_SIGN\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":false}"
);
map
.
put
(
"cntOnceReward"
,
"{\"rwType\":null,\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":null,\"open\":false}"
);
map
.
put
(
"fullSignReward"
,
"{\"rwType\":\"FULL_SIGN\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":false}"
);
map
.
put
(
"operatingPositions"
,
"[]"
);
logger
.
info
(
"请求configEdit接口"
);
...
...
@@ -366,6 +368,7 @@ public class 补签测试_signTest extends DuibaTestBase {
map
.
put
(
"cirReward"
,
"{\"rwType\":\"CIRCLE\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":null,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":true}"
);
map
.
put
(
"acmReward"
,
"{\"rwType\":\"ACCUMULATE\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":false}"
);
map
.
put
(
"firstSignReward"
,
"{\"rwType\":\"FIRST_SIGN\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":false}"
);
map
.
put
(
"cntOnceReward"
,
"{\"rwType\":null,\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":null,\"open\":false}"
);
map
.
put
(
"fullSignReward"
,
"{\"rwType\":\"FULL_SIGN\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":false}"
);
map
.
put
(
"operatingPositions"
,
"[]"
);
logger
.
info
(
"请求configEdit接口"
);
...
...
src/test/java/http/cases/WalletTest/种红包配置校验_AccessTest.java
View file @
00a83fc8
...
...
@@ -108,13 +108,11 @@ public class 种红包配置校验_AccessTest extends DuibaTestBase{
//dafuweng登陆获取cookies
Map
cookies
=
authorization
.
dafuwengLogin
(
uid4
);
//调用种植seed
Response
response
=
seedRedPacketService
.
seed
(
cookies
,
"
1
"
,
"424"
,
"1"
);
Response
response
=
seedRedPacketService
.
seed
(
cookies
,
"
6
"
,
"424"
,
"1"
);
//种子号
String
orderId
=
response
.
jsonPath
().
getString
(
"data.orderNum"
);
Assert
.
assertNotNull
(
orderId
,
"订单号为空"
);
logger
.
info
(
"红包订单为:"
+
orderId
);
//红包衰减
Thread
.
sleep
(
65000
);
//获取种植结果状态getOrderStatus,异步接口,while循环,status为2处理完成,1处理中
response
=
seedRedPacketService
.
getOrderStatus
(
cookies
,
orderId
);
String
status
=
response
.
jsonPath
().
getString
(
"data"
);
...
...
@@ -125,7 +123,9 @@ public class 种红包配置校验_AccessTest extends DuibaTestBase{
i
--;
}
//获取种植获得金额
response
=
seedRedPacketService
.
reap
(
cookies
,
"1"
,
orderId
);
//红包衰减
Thread
.
sleep
(
70000
);
response
=
seedRedPacketService
.
reap
(
cookies
,
"6"
,
orderId
);
response
.
prettyPrint
();
String
isDecr
=
response
.
jsonPath
().
getString
(
"data.isDecr"
);
Assert
.
assertEquals
(
isDecr
,
"true"
,
"红包衰减标识校验失败"
);
...
...
src/test/java/http/service/Activity/SignactivityService.java
View file @
00a83fc8
...
...
@@ -164,6 +164,7 @@ public class SignactivityService {
map
.
put
(
"cirReward"
,
"{\"rwType\":\"CIRCLE\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":null,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":false}"
);
map
.
put
(
"acmReward"
,
"{\"rwType\":\"ACCUMULATE\",\"plActSkinId\":100,\"plActId\":1154,\"items\":[{\"days\":2,\"credits\":10,\"activityCount\":1}],\"plSkinOpen2Dev\":false,\"open\":true}"
);
map
.
put
(
"firstSignReward"
,
"{\"rwType\":\"FIRST_SIGN\",\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":null,\"open\":false}"
);
map
.
put
(
"cntOnceReward"
,
"{\"rwType\":null,\"plActSkinId\":null,\"plActId\":null,\"items\":[{\"days\":1,\"credits\":0,\"activityCount\":1}],\"plSkinOpen2Dev\":null,\"open\":false}"
);
map
.
put
(
"operatingPositions"
,
"[]"
);
logger
.
info
(
"请求configEdit接口"
);
Response
response
=
given
().
contentType
(
"application/x-www-form-urlencoded;charset=UTF-8"
).
cookies
(
authorization
.
hdLogin
()).
params
(
map
).
post
(
"http://"
+
hdHost
+
"/signin/configEdit"
);
...
...
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