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
35d683b8
Commit
35d683b8
authored
Jul 14, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3e1e3e8b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
314 additions
and
67 deletions
+314
-67
CustomerList.java
src/test/java/com/kjj/bean/agent/CustomerList.java
+9
-0
Authorization.java
src/test/java/com/kjj/cases/admin/Authorization.java
+38
-36
Customer.java
src/test/java/com/kjj/cases/live/agent/Customer.java
+230
-0
SignIn.java
src/test/java/com/kjj/cases/live/lotteryCode/SignIn.java
+3
-2
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+28
-29
liveTestNG.xml
src/test/liveTestNG.xml
+6
-0
No files found.
src/test/java/com/kjj/bean/agent/CustomerList.java
0 → 100644
View file @
35d683b8
package
com
.
kjj
.
bean
.
agent
;
import
lombok.Data
;
@Data
public
class
CustomerList
{
private
String
customerId
;
}
src/test/java/com/kjj/cases/admin/Authorization.java
View file @
35d683b8
package
com
.
kjj
.
cases
.
admin
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.utils.NetworkUtils
;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
import
static
com
.
kjj
.
config
.
BasicConfig
.
visitorAuth17
;
/**
...
...
@@ -59,142 +61,142 @@ public interface Authorization {
* 访客A(志勇)授权,代理人指定中奖用户,ID:107
*/
default
void
visitorAuth
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
);
}
/**
* 访客B(茶仔)授权,用户ID:122
*/
default
void
visitorAuth2
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
2
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
2
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
2
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
2
);
}
/**
* 访客C(刘超)授权,地域指定用户ID:811
*/
default
void
visitorAuth3
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
3
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
3
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
3
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
3
);
}
/**
* 访客D(李执)授权,地域指定用户ID:89
*/
default
void
visitorAuth4
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
4
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
4
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
4
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
4
);
}
/**
* 访客E(周成)授权,企业指定中奖用户,用户ID:812
*/
default
void
visitorAuth5
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
5
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
5
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
5
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
5
);
}
/**
* 访客F(新强)授权,用户ID:82
*/
default
void
visitorAuth6
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
6
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
6
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
6
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
6
);
}
/**
* 访客G(熊二)授权,黑名单用户,ID:719
*/
default
void
visitorAuth7
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
7
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
7
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
7
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
7
);
}
/**
* 访客I(熊大)授权 ID:1239
*/
default
void
visitorAuth8
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
8
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
8
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
8
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
8
);
}
/**
* 访客H(吉吉)非实名用户授权,ID:907
*/
default
void
visitorAuth9
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
9
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
9
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
9
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
9
);
}
/**
* 访客J(日落)授权,ID:703
*/
default
void
visitorAuth10
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
10
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
10
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
10
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
10
);
}
/**
* 访客K(沈小四)授权,ID:108
*/
default
void
visitorAuth11
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
11
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
11
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
11
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
11
);
}
/**
* 访客L(饺子)授权,ID:97
*/
default
void
visitorAuth12
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
12
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
12
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
12
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
12
);
}
/**
* 访客M(大妹子)非实名用户授权,ID:299
*/
default
void
visitorAuth13
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
13
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
13
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
13
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
13
);
}
/**
* 访客N(光头强)非实名用户授权,ID:540
*/
default
void
visitorAuth14
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
14
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
14
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
14
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
14
);
}
/**
* 访客O(少侠)授权,ID:79
*/
default
void
visitorAuth15
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
15
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
15
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
15
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
15
);
}
/**
* 访客P(抬头有飞碟)授权,ID:99
*/
default
void
visitorAuth16
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
16
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
16
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
16
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
16
);
}
/**
* 访客Q(枫城)授权,ID:77
*/
default
void
visitorAuth17
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
17
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
17
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
17
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
17
);
}
/**
* 访客R(小老弟来了)非实名用户授权,ID:94
*/
default
void
visitorAuth18
()
{
network
.
agentCookies
.
put
(
"authKey"
,
VISITORKEY
18
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
VISITORKEY
18
);
network
.
agentCookies
.
put
(
"authKey"
,
visitorAuth
18
);
System
.
out
.
println
(
"用户AUTH_KEY:"
+
visitorAuth
18
);
}
/**
...
...
src/test/java/com/kjj/cases/live/agent/Customer.java
0 → 100644
View file @
35d683b8
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/cases/live/lotteryCode/SignIn.java
View file @
35d683b8
...
...
@@ -15,7 +15,8 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Objects
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
VISITORKEY
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
visitorAuth
;
public
class
SignIn
implements
Authorization
{
...
...
@@ -29,7 +30,7 @@ public class SignIn implements Authorization {
WebSocketClient
client
=
MyWebSocketUtil
.
connect
();
Assert
.
assertNotNull
(
client
,
"WebSocket链接失败"
);
//身份认证,识别用户信息
MyWebSocketUtil
.
auth
(
client
,
VISITORKEY
);
MyWebSocketUtil
.
auth
(
client
,
visitorAuth
);
//进入直播间
MyWebSocketUtil
.
enter
(
client
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
ENCODE_LIVE_ID
.
getKey
()));
// MyWebSocketUtil.enter(client,"Kj21MjU5Njc" );
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
35d683b8
This diff is collapsed.
Click to expand it.
src/test/liveTestNG.xml
View file @
35d683b8
...
...
@@ -221,5 +221,11 @@
<class
name=
"com.kjj.cases.live.liveConfig.spec"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"客户管理"
>
<classes>
<class
name=
"com.kjj.cases.live.agent.Customer"
/>
</classes>
</test>
</suite>
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