Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
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
龚小红
oto
Commits
a8d4cb32
Commit
a8d4cb32
authored
Apr 15, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ac17aa28
Changes
51
Hide whitespace changes
Inline
Side-by-side
Showing
51 changed files
with
137 additions
and
183 deletions
+137
-183
GetShareSign.java
src/test/java/com/kjj/bean/GetShareSign.java
+0
-14
LotteryList.java
src/test/java/com/kjj/bean/LotteryList.java
+0
-21
RedSimpleDetail.java
src/test/java/com/kjj/bean/RedSimpleDetail.java
+0
-17
TokenUserBean.java
src/test/java/com/kjj/bean/admin/TokenUserBean.java
+1
-1
AgentBean.java
src/test/java/com/kjj/bean/agent/AgentBean.java
+1
-1
AgentCard.java
src/test/java/com/kjj/bean/agent/AgentCard.java
+1
-1
AgentEndList.java
src/test/java/com/kjj/bean/agent/AgentEndList.java
+1
-1
ConfidList.java
src/test/java/com/kjj/bean/lottery/ConfidList.java
+1
-1
LotteryList.java
src/test/java/com/kjj/bean/lottery/LotteryList.java
+13
-1
AnswerBean.java
src/test/java/com/kjj/bean/manager/AnswerBean.java
+1
-1
AnswerListBean.java
src/test/java/com/kjj/bean/manager/AnswerListBean.java
+1
-1
RewardPkBean.java
src/test/java/com/kjj/bean/manager/RewardPkBean.java
+1
-1
VoteBean.java
src/test/java/com/kjj/bean/manager/VoteBean.java
+1
-1
VoteListBean.java
src/test/java/com/kjj/bean/manager/VoteListBean.java
+2
-3
WelfareBean.java
src/test/java/com/kjj/bean/manager/WelfareBean.java
+1
-1
WelfareListBean.java
src/test/java/com/kjj/bean/manager/WelfareListBean.java
+2
-1
AnchorRedList.java
src/test/java/com/kjj/bean/red/AnchorRedList.java
+1
-1
RedFindDetail.java
src/test/java/com/kjj/bean/red/RedFindDetail.java
+1
-1
RedGetSimple.java
src/test/java/com/kjj/bean/red/RedGetSimple.java
+1
-1
RedHelpInfo.java
src/test/java/com/kjj/bean/red/RedHelpInfo.java
+1
-1
RedHelpQuery.java
src/test/java/com/kjj/bean/red/RedHelpQuery.java
+1
-1
RedHepDetail.java
src/test/java/com/kjj/bean/red/RedHepDetail.java
+1
-1
RedLuckResult.java
src/test/java/com/kjj/bean/red/RedLuckResult.java
+1
-1
RedNum.java
src/test/java/com/kjj/bean/red/RedNum.java
+1
-1
RedOpendate.java
src/test/java/com/kjj/bean/red/RedOpendate.java
+1
-1
RedOrdinary.java
src/test/java/com/kjj/bean/red/RedOrdinary.java
+1
-1
RedState.java
src/test/java/com/kjj/bean/red/RedState.java
+1
-1
RedSultList.java
src/test/java/com/kjj/bean/red/RedSultList.java
+1
-1
LiveVisitor.java
src/test/java/com/kjj/bean/resources/LiveVisitor.java
+1
-1
ResourceEditList.java
src/test/java/com/kjj/bean/resources/ResourceEditList.java
+1
-1
ResourceForm.java
src/test/java/com/kjj/bean/resources/ResourceForm.java
+1
-1
ResourceFree.java
src/test/java/com/kjj/bean/resources/ResourceFree.java
+1
-1
ResourceLink.java
src/test/java/com/kjj/bean/resources/ResourceLink.java
+1
-1
ResourcePushList.java
src/test/java/com/kjj/bean/resources/ResourcePushList.java
+1
-1
ResourceTestDetail.java
src/test/java/com/kjj/bean/resources/ResourceTestDetail.java
+1
-1
ResourceTestParticipate.java
.../java/com/kjj/bean/resources/ResourceTestParticipate.java
+1
-1
MngAuthorization.java
src/test/java/com/kjj/cases/live/MngAuthorization.java
+0
-18
AdminAuthorization.java
...est/java/com/kjj/cases/live/admin/AdminAuthorization.java
+1
-1
Agent.java
src/test/java/com/kjj/cases/live/agent/Agent.java
+2
-1
LiveAgent.java
src/test/java/com/kjj/cases/live/agent/LiveAgent.java
+2
-4
Procurator.java
src/test/java/com/kjj/cases/live/agent/Procurator.java
+6
-5
CloseLive.java
src/test/java/com/kjj/cases/live/anchor/CloseLive.java
+3
-2
LiveVisitors.java
src/test/java/com/kjj/cases/live/anchor/LiveVisitors.java
+3
-2
OpenLive.java
src/test/java/com/kjj/cases/live/anchor/OpenLive.java
+2
-1
DesignatedWinner.java
...est/java/com/kjj/cases/live/lottery/DesignatedWinner.java
+4
-3
Lottery.java
src/test/java/com/kjj/cases/live/lottery/Lottery.java
+46
-39
LiveMaterial.java
src/test/java/com/kjj/cases/live/manager/LiveMaterial.java
+6
-9
SaveAndUpdate.java
src/test/java/com/kjj/cases/live/manager/SaveAndUpdate.java
+5
-4
LiveVistorRed.java
src/test/java/com/kjj/cases/live/red/LiveVistorRed.java
+4
-3
QuestionAwards.java
src/test/java/com/kjj/cases/live/red/QuestionAwards.java
+3
-2
User.java
src/test/java/com/kjj/cases/live/user/User.java
+3
-2
No files found.
src/test/java/com/kjj/bean/GetShareSign.java
deleted
100644 → 0
View file @
ac17aa28
package
com
.
kjj
.
bean
;
import
lombok.Data
;
@Data
public
class
GetShareSign
{
private
String
posterUrl
;
private
String
mpQrcode
;
private
String
mpShareUrl
;
private
String
mpShareTitle
;
private
String
shareSign
;
private
String
shareContent
;
private
String
liveType
;
}
src/test/java/com/kjj/bean/LotteryList.java
deleted
100644 → 0
View file @
ac17aa28
package
com
.
kjj
.
bean
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
LotteryList
{
private
List
<
List_Lottery
>
LotteryList
;
private
String
welfareId
;
private
String
configId
;
@Data
public
static
class
List_Lottery
{
private
String
id
;
private
String
name
;
}
}
src/test/java/com/kjj/bean/RedSimpleDetail.java
deleted
100644 → 0
View file @
ac17aa28
package
com
.
kjj
.
bean
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
RedSimpleDetail
{
private
int
totalAmount
;
private
int
luckAmount
;
private
int
luckNum
;
private
int
luckHelpNum
;
private
Date
startTime
;
private
int
redStatus
;
}
src/test/java/com/kjj/bean/TokenUserBean.java
→
src/test/java/com/kjj/bean/
admin/
TokenUserBean.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
admin
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/AgentBean.java
→
src/test/java/com/kjj/bean/
agent/
AgentBean.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
agent
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/AgentCard.java
→
src/test/java/com/kjj/bean/
agent/
AgentCard.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
agent
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/AgentEndList.java
→
src/test/java/com/kjj/bean/
agent/
AgentEndList.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
agent
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/ConfidList.java
→
src/test/java/com/kjj/bean/
lottery/
ConfidList.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
lottery
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/lottery/LotteryList.java
View file @
a8d4cb32
...
@@ -2,8 +2,20 @@ package com.kjj.bean.lottery;
...
@@ -2,8 +2,20 @@ package com.kjj.bean.lottery;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
@Data
@Data
public
class
LotteryList
{
public
class
LotteryList
{
private
int
drawDownNum
;
private
List
<
List_Lottery
>
LotteryList
;
private
String
welfareId
;
private
String
configId
;
@Data
public
static
class
List_Lottery
{
private
String
id
;
private
String
name
;
}
}
}
src/test/java/com/kjj/bean/AnswerBean.java
→
src/test/java/com/kjj/bean/
manager/
AnswerBean.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
manager
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/AnswerListBean.java
→
src/test/java/com/kjj/bean/
manager/
AnswerListBean.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
manager
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
import
java.util.List
;
...
...
src/test/java/com/kjj/bean/RewardPkBean.java
→
src/test/java/com/kjj/bean/
manager/
RewardPkBean.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
manager
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/VoteBean.java
→
src/test/java/com/kjj/bean/
manager/
VoteBean.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
manager
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/VoteListBean.java
→
src/test/java/com/kjj/bean/
manager/
VoteListBean.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
manager
;
import
com.kjj.bean.manager.VoteBean
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
@Data
@Data
public
class
VoteListBean
{
public
class
VoteListBean
{
...
...
src/test/java/com/kjj/bean/WelfareBean.java
→
src/test/java/com/kjj/bean/
manager/
WelfareBean.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
manager
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/WelfareListBean.java
→
src/test/java/com/kjj/bean/
manager/
WelfareListBean.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
manager
;
import
com.kjj.bean.manager.WelfareBean
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
import
java.util.List
;
...
...
src/test/java/com/kjj/bean/AnchorRedList.java
→
src/test/java/com/kjj/bean/
red/
AnchorRedList.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
red
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/RedFindDetail.java
→
src/test/java/com/kjj/bean/
red/
RedFindDetail.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
red
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/RedGetSimple.java
→
src/test/java/com/kjj/bean/
red/
RedGetSimple.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
red
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/RedHelpInfo.java
→
src/test/java/com/kjj/bean/
red/
RedHelpInfo.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
red
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/RedHelpQuery.java
→
src/test/java/com/kjj/bean/
red/
RedHelpQuery.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
red
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/RedHepDetail.java
→
src/test/java/com/kjj/bean/
red/
RedHepDetail.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
red
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/RedLuckResult.java
→
src/test/java/com/kjj/bean/
red/
RedLuckResult.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
red
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/RedNum.java
→
src/test/java/com/kjj/bean/
red/
RedNum.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
red
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/RedOpendate.java
→
src/test/java/com/kjj/bean/
red/
RedOpendate.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
red
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/RedOrdinary.java
→
src/test/java/com/kjj/bean/
red/
RedOrdinary.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
red
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/RedState.java
→
src/test/java/com/kjj/bean/
red/
RedState.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
red
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/RedSultList.java
→
src/test/java/com/kjj/bean/
red/
RedSultList.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
red
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/LiveVisitor.java
→
src/test/java/com/kjj/bean/
resources/
LiveVisitor.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
resources
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/ResourceEditList.java
→
src/test/java/com/kjj/bean/
resources/
ResourceEditList.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
resources
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/ResourceForm.java
→
src/test/java/com/kjj/bean/
resources/
ResourceForm.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
resources
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/ResourceFree.java
→
src/test/java/com/kjj/bean/
resources/
ResourceFree.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
resources
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/ResourceLink.java
→
src/test/java/com/kjj/bean/
resources/
ResourceLink.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
resources
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/ResourcePushList.java
→
src/test/java/com/kjj/bean/
resources/
ResourcePushList.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
resources
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/ResourceTestDetail.java
→
src/test/java/com/kjj/bean/
resources/
ResourceTestDetail.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
resources
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/bean/ResourceTestParticipate.java
→
src/test/java/com/kjj/bean/
resources/
ResourceTestParticipate.java
View file @
a8d4cb32
package
com
.
kjj
.
bean
;
package
com
.
kjj
.
bean
.
resources
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/test/java/com/kjj/cases/live/MngAuthorization.java
deleted
100644 → 0
View file @
ac17aa28
package
com
.
kjj
.
cases
.
live
;
import
com.kjj.utils.NetworkUtils
;
/**
* 管理员后台授权
*/
public
interface
MngAuthorization
{
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
default
void
mngAuth
(){
// 创建sso用户 并传到network里
network
.
agentCookies
.
put
(
"csrf_token"
,
"ff715857c2234f6577cbf1a57600c316"
);
network
.
agentCookies
.
put
(
"sso_ticket"
,
"dcdc60f6fe4a0c5a439d15d67101400cb"
);
}
}
src/test/java/com/kjj/cases/live/AdminAuthorization.java
→
src/test/java/com/kjj/cases/live/
admin/
AdminAuthorization.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
admin
;
import
com.kjj.utils.NetworkUtils
;
import
com.kjj.utils.NetworkUtils
;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
...
...
src/test/java/com/kjj/cases/live/Agent.java
→
src/test/java/com/kjj/cases/live/
agent/
Agent.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
agent
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.constants.LiveConstants
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
...
...
src/test/java/com/kjj/cases/live/LiveAgent.java
→
src/test/java/com/kjj/cases/live/
agent/
LiveAgent.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
agent
;
import
com.alibaba.fastjson.JSONArray
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.alibaba.fastjson.JSONObject
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.constants.LiveConstants
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
...
@@ -11,7 +10,6 @@ import org.testng.annotations.Test;
...
@@ -11,7 +10,6 @@ import org.testng.annotations.Test;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
...
src/test/java/com/kjj/cases/live/Procurator.java
→
src/test/java/com/kjj/cases/live/
agent/
Procurator.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
agent
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.kjj.bean.AgentBean
;
import
com.kjj.bean.agent.AgentBean
;
import
com.kjj.bean.AgentCard
;
import
com.kjj.bean.agent.AgentCard
;
import
com.kjj.bean.AgentEndList
;
import
com.kjj.bean.agent.AgentEndList
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.utils.JsonUtil
;
import
com.kjj.utils.JsonUtil
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
...
@@ -17,7 +18,7 @@ import java.util.List;
...
@@ -17,7 +18,7 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
/*代理人端*/
/*代理人端*/
public
class
Procurator
implements
AdminAuthorization
{
public
class
Procurator
implements
AdminAuthorization
{
@BeforeClass
@BeforeClass
public
void
setUp
()
{
public
void
setUp
()
{
...
...
src/test/java/com/kjj/cases/live/CloseLive.java
→
src/test/java/com/kjj/cases/live/
anchor/
CloseLive.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
anchor
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.constants.LiveConstants
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
...
@@ -10,7 +11,7 @@ import org.testng.annotations.Test;
...
@@ -10,7 +11,7 @@ import org.testng.annotations.Test;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
public
class
CloseLive
implements
AdminAuthorization
{
public
class
CloseLive
implements
AdminAuthorization
{
@BeforeClass
@BeforeClass
...
...
src/test/java/com/kjj/cases/live/LiveVisitors.java
→
src/test/java/com/kjj/cases/live/
anchor/
LiveVisitors.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
anchor
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.kjj.bean.*
;
import
com.kjj.bean.resources.*
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
import
com.kjj.utils.JsonUtil
;
...
...
src/test/java/com/kjj/cases/live/OpenLive.java
→
src/test/java/com/kjj/cases/live/
anchor/
OpenLive.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
anchor
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.ThreadSleepUtils
;
import
com.kjj.utils.ThreadSleepUtils
;
...
...
src/test/java/com/kjj/cases/live/DesignatedWinner.java
→
src/test/java/com/kjj/cases/live/
lottery/
DesignatedWinner.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
lottery
;
import
com.kjj.bean.LotteryList
;
import
com.kjj.bean.lottery.LotteryList
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
import
com.kjj.utils.JsonUtil
;
...
@@ -13,7 +14,7 @@ import java.util.HashMap;
...
@@ -13,7 +14,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
public
class
DesignatedWinner
implements
AdminAuthorization
{
public
class
DesignatedWinner
implements
AdminAuthorization
{
public
List
<
LotteryList
.
List_Lottery
>
List_Lottery
;
public
List
<
LotteryList
.
List_Lottery
>
List_Lottery
;
public
List
<
LotteryList
>
welfareId
;
public
List
<
LotteryList
>
welfareId
;
...
...
src/test/java/com/kjj/cases/live/Lottery.java
→
src/test/java/com/kjj/cases/live/
lottery/
Lottery.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
lottery
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.kjj.bean.lottery.ConfidList
;
import
com.kjj.bean.AgentEndList
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.bean.ConfidList
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
import
com.kjj.utils.JsonUtil
;
import
com.kjj.utils.ThreadSleepUtils
;
import
com.kjj.utils.ThreadSleepUtils
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
org.testng.annotations.Test
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -364,19 +361,8 @@ public class Lottery implements AdminAuthorization {
...
@@ -364,19 +361,8 @@ public class Lottery implements AdminAuthorization {
System
.
out
.
println
(
success
);
System
.
out
.
println
(
success
);
Assert
.
assertTrue
(
success
,
network
.
message
(
connectSuccessParam
,
BasicConfig
.
USER_connectSuccess
,
"访客到场请求失败"
,
connectSuccessoRes
.
body
().
asString
()));
Assert
.
assertTrue
(
success
,
network
.
message
(
connectSuccessParam
,
BasicConfig
.
USER_connectSuccess
,
"访客到场请求失败"
,
connectSuccessoRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客C关注直播间"
,
priority
=
26
)
public
void
访客
C
关注直播间
()
{
visitorAuth3
();
Map
<
String
,
Object
>
subscribeParam
=
new
HashMap
<>();
subscribeParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Response
subscribeRes
=
network
.
postResponse
(
subscribeParam
,
BasicConfig
.
USER_SUBSCRIBE
);
boolean
data
=
subscribeRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
subscribeParam
,
BasicConfig
.
USER_SUBSCRIBE
,
"关注失败"
,
subscribeRes
.
body
().
asString
()));
}
//访客B绑定访客A后获取访客A的中奖任务信息
//访客B绑定访客A后获取访客A的中奖任务信息
@Test
(
description
=
"访客C获取访客A的中奖任务信息"
,
priority
=
2
7
)
@Test
(
description
=
"访客C获取访客A的中奖任务信息"
,
priority
=
2
6
)
public
void
访客
C
获取访客
A
的中奖任务信息
()
{
public
void
访客
C
获取访客
A
的中奖任务信息
()
{
visitorAuth3
();
visitorAuth3
();
Map
<
String
,
Object
>
inviteDrawDetailParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
inviteDrawDetailParam
=
new
HashMap
<>();
...
@@ -387,6 +373,16 @@ public class Lottery implements AdminAuthorization {
...
@@ -387,6 +373,16 @@ public class Lottery implements AdminAuthorization {
Assert
.
assertNotNull
(
result
,
network
.
message
(
inviteDrawDetailParam
,
BasicConfig
.
ANCHOR_inviteDrawDetail
,
"查询邀请人中奖信息失败"
,
inviteDrawDetailRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
result
,
network
.
message
(
inviteDrawDetailParam
,
BasicConfig
.
ANCHOR_inviteDrawDetail
,
"查询邀请人中奖信息失败"
,
inviteDrawDetailRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客C关注直播间"
,
priority
=
27
)
public
void
访客
C
关注直播间
()
{
visitorAuth3
();
Map
<
String
,
Object
>
subscribeParam
=
new
HashMap
<>();
subscribeParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Response
subscribeRes
=
network
.
postResponse
(
subscribeParam
,
BasicConfig
.
USER_SUBSCRIBE
);
boolean
data
=
subscribeRes
.
jsonPath
().
getBoolean
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
subscribeParam
,
BasicConfig
.
USER_SUBSCRIBE
,
"关注失败"
,
subscribeRes
.
body
().
asString
()));
}
@Test
(
description
=
"访客C抽奖码数量"
,
priority
=
28
)
@Test
(
description
=
"访客C抽奖码数量"
,
priority
=
28
)
public
void
访客
C
抽奖码数量
()
{
public
void
访客
C
抽奖码数量
()
{
visitorAuth3
();
visitorAuth3
();
...
@@ -400,7 +396,6 @@ public class Lottery implements AdminAuthorization {
...
@@ -400,7 +396,6 @@ public class Lottery implements AdminAuthorization {
}
}
@Test
(
description
=
"访客A中奖任务是否完成"
,
priority
=
29
)
@Test
(
description
=
"访客A中奖任务是否完成"
,
priority
=
29
)
public
void
访客
A
中奖任务是否完成
()
{
public
void
访客
A
中奖任务是否完成
()
{
visitorAuth
();
visitorAuth
();
...
@@ -429,8 +424,20 @@ public class Lottery implements AdminAuthorization {
...
@@ -429,8 +424,20 @@ public class Lottery implements AdminAuthorization {
}
}
@Test
(
description
=
"访客A抽奖码数量"
,
priority
=
31
)
public
void
访客
A
抽奖码数量
()
{
visitorAuth
();
ThreadSleepUtils
.
sleep
(
500
);
Map
<
String
,
Object
>
myCountParam
=
new
HashMap
<>();
myCountParam
.
put
(
"liveId"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
Response
myCountRes
=
network
.
getResponse
(
myCountParam
,
BasicConfig
.
USER_myCount
);
long
data
=
myCountRes
.
jsonPath
().
getLong
(
"data"
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
myCountParam
,
BasicConfig
.
USER_myCount
,
"获取抽奖码数量失败"
,
myCountRes
.
body
().
asString
()));
}
@Test
(
description
=
"访客B幸运任务"
,
priority
=
3
1
)
@Test
(
description
=
"访客B幸运任务"
,
priority
=
3
2
)
public
void
访客
B
幸运任务
()
{
public
void
访客
B
幸运任务
()
{
visitorAuth2
();
visitorAuth2
();
ThreadSleepUtils
.
sleep
(
3000
);
ThreadSleepUtils
.
sleep
(
3000
);
...
@@ -444,7 +451,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -444,7 +451,7 @@ public class Lottery implements AdminAuthorization {
}
}
//完成幸运任务逻辑
//完成幸运任务逻辑
@Test
(
description
=
"访客B直播中分享直播间"
,
priority
=
3
2
)
@Test
(
description
=
"访客B直播中分享直播间"
,
priority
=
3
3
)
public
void
访客
B
直播中分享直播间
()
{
public
void
访客
B
直播中分享直播间
()
{
visitorAuth2
();
visitorAuth2
();
Map
<
String
,
Object
>
signParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
signParam
=
new
HashMap
<>();
...
@@ -459,7 +466,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -459,7 +466,7 @@ public class Lottery implements AdminAuthorization {
}
}
@Test
(
description
=
"幸运任务邀请D关系绑定"
,
priority
=
3
3
)
@Test
(
description
=
"幸运任务邀请D关系绑定"
,
priority
=
3
4
)
public
void
幸运任务邀请
D
关系绑定
()
{
public
void
幸运任务邀请
D
关系绑定
()
{
visitorAuth4
();
visitorAuth4
();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
...
@@ -472,7 +479,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -472,7 +479,7 @@ public class Lottery implements AdminAuthorization {
}
}
@Test
(
description
=
"幸运任务邀请D绑定结果和绑定凭证"
,
priority
=
3
4
)
@Test
(
description
=
"幸运任务邀请D绑定结果和绑定凭证"
,
priority
=
3
5
)
public
void
幸运任务邀请
D
绑定结果和绑定凭证
()
{
public
void
幸运任务邀请
D
绑定结果和绑定凭证
()
{
visitorAuth4
();
visitorAuth4
();
Map
<
String
,
Object
>
tokenParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
tokenParam
=
new
HashMap
<>();
...
@@ -487,7 +494,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -487,7 +494,7 @@ public class Lottery implements AdminAuthorization {
}
}
@Test
(
description
=
"幸运任务邀请D根据绑定凭证发放抽奖码"
,
priority
=
3
5
)
@Test
(
description
=
"幸运任务邀请D根据绑定凭证发放抽奖码"
,
priority
=
3
6
)
public
void
幸运任务邀请
D
根据绑定凭证发放抽奖码
()
{
public
void
幸运任务邀请
D
根据绑定凭证发放抽奖码
()
{
visitorAuth4
();
visitorAuth4
();
Map
<
String
,
Object
>
codeParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
codeParam
=
new
HashMap
<>();
...
@@ -499,7 +506,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -499,7 +506,7 @@ public class Lottery implements AdminAuthorization {
Assert
.
assertTrue
(
success
,
network
.
message
(
codeParam
,
BasicConfig
.
MOBILE_Code
,
"发放抽奖码失败"
,
codeRes
.
body
().
asString
()));
Assert
.
assertTrue
(
success
,
network
.
message
(
codeParam
,
BasicConfig
.
MOBILE_Code
,
"发放抽奖码失败"
,
codeRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"幸运任务邀请E关系绑定"
,
priority
=
3
6
)
@Test
(
description
=
"幸运任务邀请E关系绑定"
,
priority
=
3
7
)
public
void
幸运任务邀请
E
关系绑定
()
{
public
void
幸运任务邀请
E
关系绑定
()
{
visitorAuth5
();
visitorAuth5
();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
...
@@ -512,7 +519,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -512,7 +519,7 @@ public class Lottery implements AdminAuthorization {
}
}
@Test
(
description
=
"幸运任务邀请E绑定结果和绑定凭证"
,
priority
=
3
7
)
@Test
(
description
=
"幸运任务邀请E绑定结果和绑定凭证"
,
priority
=
3
8
)
public
void
幸运任务邀请
E
绑定结果和绑定凭证
()
{
public
void
幸运任务邀请
E
绑定结果和绑定凭证
()
{
visitorAuth5
();
visitorAuth5
();
Map
<
String
,
Object
>
tokenParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
tokenParam
=
new
HashMap
<>();
...
@@ -527,7 +534,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -527,7 +534,7 @@ public class Lottery implements AdminAuthorization {
}
}
@Test
(
description
=
"幸运任务邀请E根据绑定凭证发放抽奖码"
,
priority
=
3
8
)
@Test
(
description
=
"幸运任务邀请E根据绑定凭证发放抽奖码"
,
priority
=
3
9
)
public
void
幸运任务邀请
E
根据绑定凭证发放抽奖码
()
{
public
void
幸运任务邀请
E
根据绑定凭证发放抽奖码
()
{
visitorAuth5
();
visitorAuth5
();
Map
<
String
,
Object
>
codeParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
codeParam
=
new
HashMap
<>();
...
@@ -539,7 +546,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -539,7 +546,7 @@ public class Lottery implements AdminAuthorization {
Assert
.
assertTrue
(
success
,
network
.
message
(
codeParam
,
BasicConfig
.
MOBILE_Code
,
"发放抽奖码失败"
,
codeRes
.
body
().
asString
()));
Assert
.
assertTrue
(
success
,
network
.
message
(
codeParam
,
BasicConfig
.
MOBILE_Code
,
"发放抽奖码失败"
,
codeRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"幸运任务邀请F关系绑定"
,
priority
=
39
)
@Test
(
description
=
"幸运任务邀请F关系绑定"
,
priority
=
40
)
public
void
幸运任务邀请
F
关系绑定
()
{
public
void
幸运任务邀请
F
关系绑定
()
{
visitorAuth6
();
visitorAuth6
();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
bindingParam
=
new
HashMap
<>();
...
@@ -552,7 +559,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -552,7 +559,7 @@ public class Lottery implements AdminAuthorization {
}
}
@Test
(
description
=
"幸运任务邀请F绑定结果和绑定凭证"
,
priority
=
4
0
)
@Test
(
description
=
"幸运任务邀请F绑定结果和绑定凭证"
,
priority
=
4
1
)
public
void
幸运任务邀请
F
绑定结果和绑定凭证
()
{
public
void
幸运任务邀请
F
绑定结果和绑定凭证
()
{
visitorAuth6
();
visitorAuth6
();
Map
<
String
,
Object
>
tokenParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
tokenParam
=
new
HashMap
<>();
...
@@ -566,7 +573,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -566,7 +573,7 @@ public class Lottery implements AdminAuthorization {
Assert
.
assertNotNull
(
token
,
network
.
message
(
tokenParam
,
BasicConfig
.
MOBILE_Token
,
"未获取到绑定结果"
,
tokenRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
token
,
network
.
message
(
tokenParam
,
BasicConfig
.
MOBILE_Token
,
"未获取到绑定结果"
,
tokenRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"幸运任务邀请F根据绑定凭证发放抽奖码"
,
priority
=
4
1
)
@Test
(
description
=
"幸运任务邀请F根据绑定凭证发放抽奖码"
,
priority
=
4
2
)
public
void
幸运任务邀请
F
根据绑定凭证发放抽奖码
()
{
public
void
幸运任务邀请
F
根据绑定凭证发放抽奖码
()
{
visitorAuth6
();
visitorAuth6
();
Map
<
String
,
Object
>
codeParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
codeParam
=
new
HashMap
<>();
...
@@ -578,7 +585,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -578,7 +585,7 @@ public class Lottery implements AdminAuthorization {
Assert
.
assertTrue
(
success
,
network
.
message
(
codeParam
,
BasicConfig
.
MOBILE_Code
,
"发放抽奖码失败"
,
codeRes
.
body
().
asString
()));
Assert
.
assertTrue
(
success
,
network
.
message
(
codeParam
,
BasicConfig
.
MOBILE_Code
,
"发放抽奖码失败"
,
codeRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客B幸运任务是否完成"
,
priority
=
4
2
)
@Test
(
description
=
"访客B幸运任务是否完成"
,
priority
=
4
3
)
public
void
访客
B
幸运任务是否完成
()
{
public
void
访客
B
幸运任务是否完成
()
{
visitorAuth2
();
visitorAuth2
();
ThreadSleepUtils
.
sleep
(
3000
);
ThreadSleepUtils
.
sleep
(
3000
);
...
@@ -591,7 +598,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -591,7 +598,7 @@ public class Lottery implements AdminAuthorization {
}
}
@Test
(
description
=
"访客B的抽奖券列表"
,
priority
=
4
3
)
@Test
(
description
=
"访客B的抽奖券列表"
,
priority
=
4
4
)
public
void
访客
B
的抽奖券列表
()
{
public
void
访客
B
的抽奖券列表
()
{
visitorAuth2
();
visitorAuth2
();
ThreadSleepUtils
.
sleep
(
10000
);
ThreadSleepUtils
.
sleep
(
10000
);
...
@@ -605,7 +612,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -605,7 +612,7 @@ public class Lottery implements AdminAuthorization {
Assert
.
assertNotNull
(
data
,
network
.
message
(
myLotteryCodeParam
,
BasicConfig
.
MOBILE_MyLotteryCode
,
"查询邀请人抽奖券列表失败"
,
myLotteryCodeRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
myLotteryCodeParam
,
BasicConfig
.
MOBILE_MyLotteryCode
,
"查询邀请人抽奖券列表失败"
,
myLotteryCodeRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"访客B的抽奖码数量"
,
priority
=
4
4
)
@Test
(
description
=
"访客B的抽奖码数量"
,
priority
=
4
5
)
public
void
访客
B
抽奖码数量
()
{
public
void
访客
B
抽奖码数量
()
{
visitorAuth2
();
visitorAuth2
();
ThreadSleepUtils
.
sleep
(
3000
);
ThreadSleepUtils
.
sleep
(
3000
);
...
@@ -618,7 +625,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -618,7 +625,7 @@ public class Lottery implements AdminAuthorization {
}
}
@Test
(
description
=
"开始第二轮抽奖"
,
priority
=
4
5
)
@Test
(
description
=
"开始第二轮抽奖"
,
priority
=
4
6
)
public
void
开始第二轮抽奖
()
{
public
void
开始第二轮抽奖
()
{
adminAuth
();
adminAuth
();
ThreadSleepUtils
.
sleep
(
1000
);
ThreadSleepUtils
.
sleep
(
1000
);
...
@@ -631,7 +638,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -631,7 +638,7 @@ public class Lottery implements AdminAuthorization {
Assert
.
assertNotNull
(
data
,
network
.
message
(
startParam
,
BasicConfig
.
ANCHOR_start
,
"开启第二轮抽奖失败"
,
startRes
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
startParam
,
BasicConfig
.
ANCHOR_start
,
"开启第二轮抽奖失败"
,
startRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"查询第二轮正在抽奖的福利"
,
priority
=
4
6
)
@Test
(
description
=
"查询第二轮正在抽奖的福利"
,
priority
=
4
7
)
public
void
查询第二轮正在抽奖的福利
()
{
public
void
查询第二轮正在抽奖的福利
()
{
visitorAuth3
();
visitorAuth3
();
ThreadSleepUtils
.
sleep
(
1000
);
ThreadSleepUtils
.
sleep
(
1000
);
...
@@ -645,7 +652,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -645,7 +652,7 @@ public class Lottery implements AdminAuthorization {
}
}
@Test
(
description
=
"查询第二轮是否可以结束抽奖状态"
,
priority
=
4
7
)
@Test
(
description
=
"查询第二轮是否可以结束抽奖状态"
,
priority
=
4
8
)
public
void
查询第二轮是否可以结束抽奖状态
()
{
public
void
查询第二轮是否可以结束抽奖状态
()
{
adminAuth
();
adminAuth
();
ThreadSleepUtils
.
sleep
(
3000
);
ThreadSleepUtils
.
sleep
(
3000
);
...
@@ -658,7 +665,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -658,7 +665,7 @@ public class Lottery implements AdminAuthorization {
Assert
.
assertTrue
(
data
,
network
.
message
(
statusParam
,
BasicConfig
.
ANCHOR_status
,
"抽奖状态查询失败"
,
statusRes
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
statusParam
,
BasicConfig
.
ANCHOR_status
,
"抽奖状态查询失败"
,
statusRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"结束第二轮抽奖"
,
priority
=
4
8
)
@Test
(
description
=
"结束第二轮抽奖"
,
priority
=
4
9
)
public
void
结束第二轮抽奖
()
{
public
void
结束第二轮抽奖
()
{
adminAuth
();
adminAuth
();
Map
<
String
,
Object
>
endParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
endParam
=
new
HashMap
<>();
...
@@ -669,7 +676,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -669,7 +676,7 @@ public class Lottery implements AdminAuthorization {
System
.
out
.
println
(
data
);
System
.
out
.
println
(
data
);
Assert
.
assertTrue
(
data
,
network
.
message
(
endParam
,
BasicConfig
.
ANCHOR_end
,
"结束第二轮抽奖失败"
,
endRes
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
endParam
,
BasicConfig
.
ANCHOR_end
,
"结束第二轮抽奖失败"
,
endRes
.
body
().
asString
()));
}
}
@Test
(
description
=
"查看第二轮抽奖榜单"
,
priority
=
49
)
@Test
(
description
=
"查看第二轮抽奖榜单"
,
priority
=
50
)
public
void
查看第二轮抽奖榜单
()
{
public
void
查看第二轮抽奖榜单
()
{
visitorAuth
();
visitorAuth
();
ThreadSleepUtils
.
sleep
(
1000
);
ThreadSleepUtils
.
sleep
(
1000
);
...
@@ -686,7 +693,7 @@ public class Lottery implements AdminAuthorization {
...
@@ -686,7 +693,7 @@ public class Lottery implements AdminAuthorization {
}
}
@Test
(
description
=
"获取第二轮喜报"
,
priority
=
5
0
)
@Test
(
description
=
"获取第二轮喜报"
,
priority
=
5
1
)
public
void
获取第二轮喜报
()
{
public
void
获取第二轮喜报
()
{
visitorAuth
();
visitorAuth
();
ThreadSleepUtils
.
sleep
(
1000
);
ThreadSleepUtils
.
sleep
(
1000
);
...
...
src/test/java/com/kjj/cases/live/LiveMaterial.java
→
src/test/java/com/kjj/cases/live/
manager/
LiveMaterial.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
manager
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.kjj.bean.VoteBean
;
import
com.kjj.bean.manager.VoteBean
;
import
com.kjj.bean.VoteListBean
;
import
com.kjj.bean.manager.VoteListBean
;
import
com.kjj.bean.WelfareBean
;
import
com.kjj.bean.manager.WelfareBean
;
import
com.kjj.bean.WelfareListBean
;
import
com.kjj.bean.manager.WelfareListBean
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.utils.JsonUtil
;
import
com.kjj.utils.JsonUtil
;
...
@@ -14,16 +15,12 @@ import org.testng.annotations.Test;
...
@@ -14,16 +15,12 @@ import org.testng.annotations.Test;
import
java.util.*
;
import
java.util.*
;
public
class
LiveMaterial
implements
AdminAuthorization
{
public
class
LiveMaterial
implements
AdminAuthorization
{
@BeforeClass
@BeforeClass
public
void
setUp
()
{
public
void
setUp
()
{
// adminAuth();
BaseUtils
.
ssoLogin
();
BaseUtils
.
ssoLogin
();
}
}
@Test
(
description
=
"添加奖品"
,
priority
=
1
)
@Test
(
description
=
"添加奖品"
,
priority
=
1
)
public
void
添加奖品
()
{
public
void
添加奖品
()
{
...
...
src/test/java/com/kjj/cases/live/SaveAndUpdate.java
→
src/test/java/com/kjj/cases/live/
manager/
SaveAndUpdate.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
manager
;
import
com.kjj.bean.AnswerBean
;
import
com.kjj.bean.
manager.
AnswerBean
;
import
com.kjj.bean.AnswerListBean
;
import
com.kjj.bean.
manager.
AnswerListBean
;
import
com.kjj.bean.RewardPkBean
;
import
com.kjj.bean.
manager.
RewardPkBean
;
import
com.kjj.bean.answer.*
;
import
com.kjj.bean.answer.*
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.utils.BaseUtils
;
...
...
src/test/java/com/kjj/cases/live/LiveVistorRed.java
→
src/test/java/com/kjj/cases/live/
red/
LiveVistorRed.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
red
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.kjj.bean.*
;
import
com.kjj.bean.red.*
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
import
com.kjj.utils.JsonUtil
;
...
@@ -14,7 +15,7 @@ import java.util.HashMap;
...
@@ -14,7 +15,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
public
class
LiveVistorRed
implements
AdminAuthorization
{
public
class
LiveVistorRed
implements
AdminAuthorization
{
public
String
confId_Red
;
public
String
confId_Red
;
public
String
visitor_red
;
public
String
visitor_red
;
...
...
src/test/java/com/kjj/cases/live/QuestionAwards.java
→
src/test/java/com/kjj/cases/live/
red/
QuestionAwards.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
red
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.kjj.bean.answer.*
;
import
com.kjj.bean.answer.*
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
import
com.kjj.utils.JsonUtil
;
...
@@ -16,7 +17,7 @@ import java.util.HashMap;
...
@@ -16,7 +17,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
public
class
QuestionAwards
implements
AdminAuthorization
{
public
class
QuestionAwards
implements
AdminAuthorization
{
public
String
confId_ques
;
public
String
confId_ques
;
public
String
confId_reward
;
public
String
confId_reward
;
...
...
src/test/java/com/kjj/cases/live/User.java
→
src/test/java/com/kjj/cases/live/
user/
User.java
View file @
a8d4cb32
package
com
.
kjj
.
cases
.
live
;
package
com
.
kjj
.
cases
.
live
.
user
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.constants.LiveConstants
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
...
@@ -10,7 +11,7 @@ import java.util.HashMap;
...
@@ -10,7 +11,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
public
class
User
implements
AdminAuthorization
{
public
class
User
implements
AdminAuthorization
{
@BeforeClass
@BeforeClass
public
void
setUp
()
{
visitorAuth
();
}
public
void
setUp
()
{
visitorAuth
();
}
...
...
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