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
3647d1da
Commit
3647d1da
authored
Jul 02, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a968d55e
Changes
37
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
101 additions
and
108 deletions
+101
-108
Authorization.java
src/test/java/com/kjj/cases/admin/Authorization.java
+23
-2
Article.java
src/test/java/com/kjj/cases/basics/Article.java
+9
-6
FreeReward.java
src/test/java/com/kjj/cases/live/FreeReward/FreeReward.java
+2
-2
Agent.java
src/test/java/com/kjj/cases/live/agent/Agent.java
+2
-6
LiveAgent.java
src/test/java/com/kjj/cases/live/agent/LiveAgent.java
+2
-2
LiveBefore.java
src/test/java/com/kjj/cases/live/agent/LiveBefore.java
+2
-3
LiveLater.java
src/test/java/com/kjj/cases/live/agent/LiveLater.java
+3
-5
CloseLive.java
src/test/java/com/kjj/cases/live/anchor/CloseLive.java
+2
-2
LiveVisitors.java
src/test/java/com/kjj/cases/live/anchor/LiveVisitors.java
+2
-2
OpenLive.java
src/test/java/com/kjj/cases/live/anchor/OpenLive.java
+2
-2
Answer.java
src/test/java/com/kjj/cases/live/answer/Answer.java
+2
-6
Choice.java
src/test/java/com/kjj/cases/live/choice/Choice.java
+2
-2
FlipCard.java
src/test/java/com/kjj/cases/live/flipCard/FlipCard.java
+2
-2
LiveGuess.java
src/test/java/com/kjj/cases/live/guess/LiveGuess.java
+2
-2
LiveCase.java
src/test/java/com/kjj/cases/live/liveConfig/LiveCase.java
+2
-2
LiveMaterial.java
...test/java/com/kjj/cases/live/liveConfig/LiveMaterial.java
+2
-2
Paster.java
src/test/java/com/kjj/cases/live/liveConfig/Paster.java
+2
-4
SaveLive.java
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
+2
-3
Share.java
src/test/java/com/kjj/cases/live/liveConfig/Share.java
+2
-2
Team.java
src/test/java/com/kjj/cases/live/liveConfig/Team.java
+2
-2
Video.java
src/test/java/com/kjj/cases/live/liveConfig/Video.java
+2
-2
WinningRules.java
...test/java/com/kjj/cases/live/liveConfig/WinningRules.java
+2
-2
spec.java
src/test/java/com/kjj/cases/live/liveConfig/spec.java
+2
-2
DesignatedWinner.java
...est/java/com/kjj/cases/live/lottery/DesignatedWinner.java
+2
-2
Lottery.java
src/test/java/com/kjj/cases/live/lottery/Lottery.java
+2
-2
LotteryCode.java
...test/java/com/kjj/cases/live/lotteryCode/LotteryCode.java
+2
-2
SignIn.java
src/test/java/com/kjj/cases/live/lotteryCode/SignIn.java
+2
-2
Question.java
src/test/java/com/kjj/cases/live/question/Question.java
+2
-2
LiveVistorRed.java
src/test/java/com/kjj/cases/live/red/LiveVistorRed.java
+2
-2
AgentOpen.java
src/test/java/com/kjj/cases/live/signing/AgentOpen.java
+2
-2
NuclearAward.java
src/test/java/com/kjj/cases/live/signing/NuclearAward.java
+2
-2
SignAward.java
src/test/java/com/kjj/cases/live/signing/SignAward.java
+2
-2
UserOpen.java
src/test/java/com/kjj/cases/live/signing/UserOpen.java
+2
-2
TimeRed.java
src/test/java/com/kjj/cases/live/treasure/TimeRed.java
+2
-5
Treasure.java
src/test/java/com/kjj/cases/live/treasure/Treasure.java
+2
-9
TreasureTime.java
src/test/java/com/kjj/cases/live/treasure/TreasureTime.java
+2
-3
BaseUtils.java
src/test/java/com/kjj/utils/BaseUtils.java
+0
-6
No files found.
src/test/java/com/kjj/cases/
live/admin/Admin
Authorization.java
→
src/test/java/com/kjj/cases/
admin/
Authorization.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
admin
;
package
com
.
kjj
.
cases
.
admin
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.utils.NetworkUtils
;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
/**
* 管理员授权
* @author 吉吉,ID:907
*/
public
interface
A
dminA
uthorization
{
public
interface
Authorization
{
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
...
...
@@ -16,6 +18,25 @@ public interface AdminAuthorization {
System
.
out
.
println
(
"用户AUTH_KEY:"
+
ADMIN_KEY
);
}
/**
* 集客助手授权
*/
//代理人
default
void
agentTku
()
{
AGENT_TKU
=
BaseUtils
.
createTku
();
network
.
agentCookies
.
put
(
"tku"
,
AGENT_TKU
);
System
.
out
.
println
(
"代理人tku:"
+
AGENT_TKU
);
}
// 获取访客tku
default
void
userTku
()
{
AGENT_TKU
=
BaseUtils
.
createTku
();
VISITOR_TKU
=
BaseUtils
.
getTku
(
VISITOR_USERID
);
System
.
out
.
println
(
"访客tku:"
+
VISITOR_TKU
);
}
/**
* 代理人(yl)授权,ID:826
*/
...
...
src/test/java/com/kjj/cases/basics/Article.java
View file @
3647d1da
...
...
@@ -2,7 +2,7 @@ package com.kjj.cases.basics;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
import
com.kjj.
utils.NetworkUtils
;
import
com.kjj.
cases.admin.Authorization
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
...
...
@@ -13,8 +13,8 @@ import java.io.IOException;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
Article
{
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
public
class
Article
implements
Authorization
{
//
private static final NetworkUtils network = NetworkUtils.getInstance();
public
String
sid
;
// 加密的销售ID
public
String
articleContentId
;
// 文章的contentId
public
String
scid
;
// getScid后的文章id
...
...
@@ -22,11 +22,14 @@ public class Article {
public
String
visitId
;
// 访问记录ID
@BeforeClass
public
void
setUp
()
{
}
public
void
setUp
()
{
agentTku
();
userTku
();
}
//文章内容页
@Test
(
description
=
"代理人_种草爆文列表页"
,
priority
=
1
)
public
void
代理人
_
种草爆文列表页
()
throws
IOException
{
public
void
代理人
_
种草爆文列表页
()
{
Response
response
=
network
.
getResponse
(
ARTICLE_GETEXPLOSIONCONTENTLIST
);
articleContentId
=
response
.
jsonPath
().
getString
(
"data[0].contentId"
);
Assert
.
assertNotNull
(
articleContentId
,
network
.
message
(
ARTICLE_GETEXPLOSIONCONTENTLIST
,
"获取爆款素材文章失败"
,
response
.
body
().
asString
()));
...
...
@@ -34,7 +37,7 @@ public class Article {
//文章内容页
@Test
(
description
=
"代理人_文章内容页"
,
priority
=
2
)
public
void
代理人
_
文章内容页
()
throws
IOException
{
public
void
代理人
_
文章内容页
()
{
//根据ContentId获取Scid
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
params
.
put
(
"contentId"
,
articleContentId
);
...
...
src/test/java/com/kjj/cases/live/FreeReward/FreeReward.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
FreeReward
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
io.restassured.response.Response
;
...
...
@@ -8,7 +8,7 @@ import org.testng.annotations.Test;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
FreeReward
implements
A
dminA
uthorization
{
public
class
FreeReward
implements
Authorization
{
public
String
configId
;
@Test
(
description
=
"查询免费领福利"
,
priority
=
1
)
...
...
src/test/java/com/kjj/cases/live/agent/Agent.java
View file @
3647d1da
...
...
@@ -2,29 +2,25 @@ package com.kjj.cases.live.agent;
import
com.alibaba.fastjson.JSON
;
import
com.kjj.bean.agent.AgentBean
;
import
com.kjj.bean.agent.AgentCard
;
import
com.kjj.bean.agent.AgentEndList
;
import
com.kjj.bean.agent.AgentVideo
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
import
io.restassured.path.json.JsonPath
;
import
io.restassured.response.Response
;
import
org.apache.commons.lang3.RandomUtils
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
java.io.IOException
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
import
static
com
.
kjj
.
config
.
BasicConfig
.
MOBILE_ClueList
;
public
class
Agent
implements
A
dminA
uthorization
{
public
class
Agent
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
agentAuth
();
}
...
...
src/test/java/com/kjj/cases/live/agent/LiveAgent.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
agent
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
io.restassured.response.Response
;
...
...
@@ -14,7 +14,7 @@ import java.util.Map;
import
static
com
.
kjj
.
config
.
BasicConfig
.
MOBILE_ClueList
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
MOBILE_ClueNum
;
public
class
LiveAgent
implements
A
dminA
uthorization
{
public
class
LiveAgent
implements
Authorization
{
/**
* 直播中查看线索
...
...
src/test/java/com/kjj/cases/live/agent/LiveBefore.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
agent
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
io.restassured.response.Response
;
...
...
@@ -12,8 +12,7 @@ import java.io.IOException;
import
java.util.HashMap
;
import
java.util.Map
;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
public
class
LiveBefore
implements
AdminAuthorization
{
public
class
LiveBefore
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
agentAuth
();
}
...
...
src/test/java/com/kjj/cases/live/agent/LiveLater.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
agent
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
java.io.IOException
;
import
java.util.HashMap
;
import
java.util.Map
;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
public
class
LiveLater
implements
AdminAuthorization
{
public
class
LiveLater
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
...
...
src/test/java/com/kjj/cases/live/anchor/CloseLive.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
anchor
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
io.restassured.response.Response
;
...
...
@@ -11,7 +11,7 @@ import org.testng.annotations.Test;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
CloseLive
implements
A
dminA
uthorization
{
public
class
CloseLive
implements
Authorization
{
@BeforeClass
...
...
src/test/java/com/kjj/cases/live/anchor/LiveVisitors.java
View file @
3647d1da
...
...
@@ -3,7 +3,7 @@ package com.kjj.cases.live.anchor;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.kjj.bean.resources.*
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
...
...
@@ -17,7 +17,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
LiveVisitors
implements
A
dminA
uthorization
public
class
LiveVisitors
implements
Authorization
{
...
...
src/test/java/com/kjj/cases/live/anchor/OpenLive.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
anchor
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.ThreadSleepUtils
;
...
...
@@ -9,7 +9,7 @@ import org.testng.annotations.BeforeClass;
import
org.testng.annotations.Test
;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
OpenLive
implements
A
dminA
uthorization
{
public
class
OpenLive
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
...
...
src/test/java/com/kjj/cases/live/answer/Answer.java
View file @
3647d1da
...
...
@@ -2,14 +2,10 @@ package com.kjj.cases.live.answer;
import
com.alibaba.fastjson.JSON
;
import
com.kjj.bean.answer.*
;
import
com.kjj.bean.manager.AnswerBean
;
import
com.kjj.bean.manager.AnswerListBean
;
import
com.kjj.bean.manager.TeamAssignmentList
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.cases.admin.Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.utils.JsonUtil
;
import
com.kjj.utils.ThreadSleepUtils
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
...
...
@@ -18,7 +14,7 @@ import org.testng.annotations.Test;
import
java.util.*
;
public
class
Answer
implements
A
dminA
uthorization
{
public
class
Answer
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
...
...
src/test/java/com/kjj/cases/live/choice/Choice.java
View file @
3647d1da
...
...
@@ -5,7 +5,7 @@ import com.kjj.bean.choice.Ansernum;
import
com.kjj.bean.choice.ChoiceList
;
import
com.kjj.bean.choice.GetChoiceArray
;
import
com.kjj.bean.choice.GetChoiceQues
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
...
...
@@ -19,7 +19,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
Choice
implements
A
dminA
uthorization
{
public
class
Choice
implements
Authorization
{
public
String
id
;
public
String
answerid
;
...
...
src/test/java/com/kjj/cases/live/flipCard/FlipCard.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
flipCard
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.ThreadSleepUtils
;
...
...
@@ -11,7 +11,7 @@ import org.testng.annotations.Test;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
FlipCard
implements
A
dminA
uthorization
{
public
class
FlipCard
implements
Authorization
{
public
String
cardConfId
;
public
String
shareSign
;
...
...
src/test/java/com/kjj/cases/live/guess/LiveGuess.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
guess
;
import
com.kjj.bean.manager.GuessList
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
...
...
@@ -14,7 +14,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
LiveGuess
implements
A
dminA
uthorization
{
public
class
LiveGuess
implements
Authorization
{
public
List
<
GuessList
>
confId
;
public
String
ConfId
;
public
String
shareSign
;
...
...
src/test/java/com/kjj/cases/live/liveConfig/LiveCase.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
liveConfig
;
import
com.kjj.bean.manager.CaseList
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -15,7 +15,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
LiveCase
implements
A
dminA
uthorization
{
public
class
LiveCase
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
...
...
src/test/java/com/kjj/cases/live/liveConfig/LiveMaterial.java
View file @
3647d1da
...
...
@@ -4,7 +4,7 @@ import com.kjj.bean.manager.VoteBean;
import
com.kjj.bean.manager.VoteListBean
;
import
com.kjj.bean.manager.WelfareBean
;
import
com.kjj.bean.manager.WelfareListBean
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.utils.JsonUtil
;
...
...
@@ -15,7 +15,7 @@ import org.testng.annotations.Test;
import
java.util.*
;
public
class
LiveMaterial
implements
A
dminA
uthorization
{
public
class
LiveMaterial
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
BaseUtils
.
ssoLogin
();
...
...
src/test/java/com/kjj/cases/live/liveConfig/Paster.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
liveConfig
;
import
com.kjj.bean.manager.CaseList
;
import
com.kjj.bean.manager.UsedList
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -12,12 +11,11 @@ import org.testng.Assert;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
javax.xml.crypto.Data
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
public
class
Paster
implements
A
dminA
uthorization
{
public
class
Paster
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
...
...
src/test/java/com/kjj/cases/live/liveConfig/SaveLive.java
View file @
3647d1da
...
...
@@ -6,8 +6,7 @@ import com.kjj.bean.answer.AddWelfareConf;
import
com.kjj.bean.answer.RewardList
;
import
com.kjj.bean.lottery.ConfIdList
;
import
com.kjj.bean.manager.*
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.cases.live.treasure.TimeRed
;
import
com.kjj.cases.admin.Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -21,7 +20,7 @@ import org.testng.Assert;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
java.util.*
;
public
class
SaveLive
implements
A
dminA
uthorization
{
public
class
SaveLive
implements
Authorization
{
public
String
liveID
;
public
String
EncodeLiveID
;
public
long
welfareConfId
;
...
...
src/test/java/com/kjj/cases/live/liveConfig/Share.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
liveConfig
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -12,7 +12,7 @@ import org.testng.annotations.Test;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
Share
implements
A
dminA
uthorization
{
public
class
Share
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
BaseUtils
.
ssoLogin
();
...
...
src/test/java/com/kjj/cases/live/liveConfig/Team.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
liveConfig
;
import
com.kjj.bean.manager.TeamList
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.utils.JsonUtil
;
...
...
@@ -14,7 +14,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
Team
implements
A
dminA
uthorization
{
public
class
Team
implements
Authorization
{
public
List
<
TeamList
>
id
;
@BeforeClass
...
...
src/test/java/com/kjj/cases/live/liveConfig/Video.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
liveConfig
;
import
com.kjj.bean.manager.VideoBean
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.utils.JsonUtil
;
...
...
@@ -13,7 +13,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
Video
implements
A
dminA
uthorization
{
public
class
Video
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
BaseUtils
.
ssoLogin
();
}
...
...
src/test/java/com/kjj/cases/live/liveConfig/WinningRules.java
View file @
3647d1da
...
...
@@ -4,7 +4,7 @@ import com.alibaba.fastjson.JSON;
import
com.kjj.bean.lottery.ConfIdList
;
import
com.kjj.bean.manager.RuleBean
;
import
com.kjj.bean.manager.SaveLimitBean
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -19,7 +19,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
WinningRules
implements
A
dminA
uthorization
{
public
class
WinningRules
implements
Authorization
{
public
Integer
taskId
;
public
long
Id
;
public
List
<
ConfIdList
>
confIdList
;
...
...
src/test/java/com/kjj/cases/live/liveConfig/spec.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
liveConfig
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -12,7 +12,7 @@ import org.testng.annotations.Test;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
spec
implements
A
dminA
uthorization
{
public
class
spec
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
BaseUtils
.
ssoLogin
();
...
...
src/test/java/com/kjj/cases/live/lottery/DesignatedWinner.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
lottery
;
import
com.kjj.bean.lottery.LotteryList
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
...
...
@@ -14,7 +14,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
DesignatedWinner
implements
A
dminA
uthorization
{
public
class
DesignatedWinner
implements
Authorization
{
public
List
<
LotteryList
.
List_Lottery
>
List_Lottery
;
public
List
<
LotteryList
>
welfareId
;
...
...
src/test/java/com/kjj/cases/live/lottery/Lottery.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
lottery
;
import
com.alibaba.fastjson.JSON
;
import
com.kjj.bean.lottery.ConfIdList
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
...
...
@@ -16,7 +16,7 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Objects
;
public
class
Lottery
implements
A
dminA
uthorization
{
public
class
Lottery
implements
Authorization
{
public
List
<
ConfIdList
>
List_ConfId
;
public
String
shareSign
;
...
...
src/test/java/com/kjj/cases/live/lotteryCode/LotteryCode.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
lotteryCode
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.ThreadSleepUtils
;
...
...
@@ -13,7 +13,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
LotteryCode
implements
A
dminA
uthorization
{
public
class
LotteryCode
implements
Authorization
{
public
String
shareSign
;
@Test
(
description
=
"代理人A分享直播间"
,
priority
=
1
)
...
...
src/test/java/com/kjj/cases/live/lotteryCode/SignIn.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
lotteryCode
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.MyWebSocketUtil
;
...
...
@@ -18,7 +18,7 @@ import java.util.Objects;
import
static
com
.
kjj
.
config
.
BasicConfig
.
VISITORKEY
;
public
class
SignIn
implements
A
dminA
uthorization
{
public
class
SignIn
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
visitorAuth
();
}
...
...
src/test/java/com/kjj/cases/live/question/Question.java
View file @
3647d1da
...
...
@@ -5,7 +5,7 @@ import com.kjj.bean.issue.QuestionList;
import
com.kjj.bean.issue.SpokeList
;
import
com.kjj.bean.issue.Spolist
;
import
com.kjj.bean.issue.issuelist
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
...
...
@@ -20,7 +20,7 @@ import java.util.List;
import
java.util.Map
;
public
class
Question
implements
A
dminA
uthorization
{
public
class
Question
implements
Authorization
{
List
<
String
>
questionIds
=
new
ArrayList
<>();
public
String
questionId
;
...
...
src/test/java/com/kjj/cases/live/red/LiveVistorRed.java
View file @
3647d1da
...
...
@@ -2,7 +2,7 @@ package com.kjj.cases.live.red;
import
com.alibaba.fastjson.JSON
;
import
com.kjj.bean.red.*
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.JsonUtil
;
...
...
@@ -15,7 +15,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
LiveVistorRed
implements
A
dminA
uthorization
{
public
class
LiveVistorRed
implements
Authorization
{
public
String
confId_Red
;
public
String
visitor_red
;
...
...
src/test/java/com/kjj/cases/live/signing/AgentOpen.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
signing
;
import
com.kjj.bean.manager.SaveRewardConfig
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -15,7 +15,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
AgentOpen
implements
A
dminA
uthorization
{
public
class
AgentOpen
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
...
...
src/test/java/com/kjj/cases/live/signing/NuclearAward.java
View file @
3647d1da
...
...
@@ -2,7 +2,7 @@ package com.kjj.cases.live.signing;
import
com.alibaba.fastjson.JSON
;
import
com.kjj.bean.manager.SaveRewardConfig
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -16,7 +16,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
NuclearAward
implements
A
dminA
uthorization
{
public
class
NuclearAward
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
...
...
src/test/java/com/kjj/cases/live/signing/SignAward.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
signing
;
import
com.kjj.bean.manager.SaveRewardConfig
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -15,7 +15,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
SignAward
implements
A
dminA
uthorization
{
public
class
SignAward
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
...
...
src/test/java/com/kjj/cases/live/signing/UserOpen.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
signing
;
import
com.kjj.bean.manager.SaveRewardConfig
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -15,7 +15,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
UserOpen
implements
A
dminA
uthorization
{
public
class
UserOpen
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
...
...
src/test/java/com/kjj/cases/live/treasure/TimeRed.java
View file @
3647d1da
package
com
.
kjj
.
cases
.
live
.
treasure
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.kjj.bean.manager.RedList
;
import
com.kjj.bean.red.RedConf
;
import
com.kjj.bean.resources.ResourceForm
;
import
com.kjj.cases.
live.admin.Admin
Authorization
;
import
com.kjj.cases.
admin.
Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -18,7 +15,7 @@ import org.testng.annotations.Test;
import
java.util.*
;
public
class
TimeRed
implements
A
dminA
uthorization
{
public
class
TimeRed
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
BaseUtils
.
ssoLogin
();
}
...
...
src/test/java/com/kjj/cases/live/treasure/Treasure.java
View file @
3647d1da
...
...
@@ -2,29 +2,22 @@ package com.kjj.cases.live.treasure;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.kjj.bean.manager.TreasureAward
;
import
com.kjj.bean.manager.TreasureCode
;
import
com.kjj.bean.manager.TreasureRed
;
import
com.kjj.bean.manager.WelfareList
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.cases.admin.Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.utils.JsonUtil
;
import
com.kjj.utils.ThreadSleepUtils
;
import
io.restassured.response.Response
;
import
org.apache.commons.lang3.BooleanUtils
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
javax.xml.crypto.Data
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
public
class
Treasure
implements
A
dminA
uthorization
{
public
class
Treasure
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
BaseUtils
.
ssoLogin
();
}
...
...
src/test/java/com/kjj/cases/live/treasure/TreasureTime.java
View file @
3647d1da
...
...
@@ -2,8 +2,7 @@ package com.kjj.cases.live.treasure;
import
com.alibaba.fastjson.JSON
;
import
com.kjj.bean.lottery.CondDetail
;
import
com.kjj.bean.manager.*
;
import
com.kjj.cases.live.admin.AdminAuthorization
;
import
com.kjj.cases.admin.Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.constants.LiveConstants
;
import
com.kjj.utils.BaseUtils
;
...
...
@@ -18,7 +17,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
public
class
TreasureTime
implements
A
dminA
uthorization
{
public
class
TreasureTime
implements
Authorization
{
@BeforeClass
public
void
setUp
()
{
...
...
src/test/java/com/kjj/utils/BaseUtils.java
View file @
3647d1da
...
...
@@ -12,12 +12,6 @@ import static com.kjj.config.BasicConfig.*;
public
class
BaseUtils
{
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
// public static String createAuthKey(){
// return "LEH7epeHVDJWzhZ6DiexTHnsxraeviLJA9bNdknyzwR7cXT557KHZA1Q7zWnN9N2E3vHcFrt8S3xhGApKa3NmE7oaxyXz";
// }
// public static String agentAuthKey(){
// return "LEH7epeHVDJWzhZ6DiexTHnsxs8JtX5mzCVwq1X5TSe6JEJMzL51umD812fWb8P5rLt5mw9SfPzLp6uwthsFnXAhKCYLq";
// }
/**
* 登录管理后台
...
...
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