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
1abd5758
Commit
1abd5758
authored
Mar 29, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '20210329bxl' into 'master'
20210329bxl See merge request test-group/kejiji!41
parents
2e0f515c
7abc3049
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
6 deletions
+17
-6
CloseLive.java
src/test/java/com/kjj/cases/live/CloseLive.java
+2
-1
LiveMaterial.java
src/test/java/com/kjj/cases/live/LiveMaterial.java
+1
-0
LiveVisitors.java
src/test/java/com/kjj/cases/live/LiveVisitors.java
+1
-0
MngAuthorization.java
src/test/java/com/kjj/cases/live/MngAuthorization.java
+4
-2
OpenLive.java
src/test/java/com/kjj/cases/live/OpenLive.java
+2
-0
Procurator.java
src/test/java/com/kjj/cases/live/Procurator.java
+5
-3
SaveAndUpdate.java
src/test/java/com/kjj/cases/live/SaveAndUpdate.java
+1
-0
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+1
-0
No files found.
src/test/java/com/kjj/cases/live/CloseLive.java
View file @
1abd5758
...
@@ -20,7 +20,7 @@ public class CloseLive implements AdminAuthorization{
...
@@ -20,7 +20,7 @@ public class CloseLive implements AdminAuthorization{
@Test
(
description
=
"结束直播"
,
priority
=
1
)
@Test
(
description
=
"结束直播"
,
priority
=
1
)
public
void
结束直播
()
{
public
void
closeLive
()
{
Map
<
String
,
Object
>
closeParam
=
new
HashMap
<>();
Map
<
String
,
Object
>
closeParam
=
new
HashMap
<>();
closeParam
.
put
(
"liveid"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
closeParam
.
put
(
"liveid"
,
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
()));
closeParam
.
put
(
"cid"
,
101
);
closeParam
.
put
(
"cid"
,
101
);
...
@@ -34,5 +34,6 @@ public class CloseLive implements AdminAuthorization{
...
@@ -34,5 +34,6 @@ public class CloseLive implements AdminAuthorization{
}
}
src/test/java/com/kjj/cases/live/LiveMaterial.java
View file @
1abd5758
...
@@ -71,6 +71,7 @@ public class LiveMaterial implements AdminAuthorization {
...
@@ -71,6 +71,7 @@ public class LiveMaterial implements AdminAuthorization {
}
}
//添加投票
//添加投票
@Test
(
description
=
"添加投票"
,
priority
=
3
)
@Test
(
description
=
"添加投票"
,
priority
=
3
)
public
void
添加投票
()
{
public
void
添加投票
()
{
...
...
src/test/java/com/kjj/cases/live/LiveVisitors.java
View file @
1abd5758
...
@@ -80,6 +80,7 @@ public class LiveVisitors implements AdminAuthorization
...
@@ -80,6 +80,7 @@ public class LiveVisitors implements AdminAuthorization
/*表单资料-查询*/
/*表单资料-查询*/
@Test
(
description
=
"表单资料查询"
,
priority
=
2
)
@Test
(
description
=
"表单资料查询"
,
priority
=
2
)
public
ResourceForm
系统表单资料查询
()
public
ResourceForm
系统表单资料查询
()
...
...
src/test/java/com/kjj/cases/live/MngAuthorization.java
View file @
1abd5758
...
@@ -3,7 +3,9 @@ package com.kjj.cases.live;
...
@@ -3,7 +3,9 @@ package com.kjj.cases.live;
import
com.kjj.utils.NetworkUtils
;
import
com.kjj.utils.NetworkUtils
;
/**
/**
* 管理员小程序授权
* 管理员后台授权
* @author zhanghuifeng
* date 2021/2/20-13:46
*/
*/
public
interface
MngAuthorization
{
public
interface
MngAuthorization
{
...
@@ -12,7 +14,7 @@ public interface MngAuthorization {
...
@@ -12,7 +14,7 @@ public interface MngAuthorization {
default
void
mngAuth
(){
default
void
mngAuth
(){
// 创建sso用户 并传到network里
// 创建sso用户 并传到network里
network
.
agentCookies
.
put
(
"csrf_token"
,
"ff715857c2234f6577cbf1a57600c316"
);
network
.
agentCookies
.
put
(
"csrf_token"
,
"ff715857c2234f6577cbf1a57600c316"
);
network
.
agentCookies
.
put
(
"sso_ticket"
,
"dcdc60f6fe4a0c5a439d15d67
90
400cb"
);
network
.
agentCookies
.
put
(
"sso_ticket"
,
"dcdc60f6fe4a0c5a439d15d67
101
400cb"
);
}
}
}
}
src/test/java/com/kjj/cases/live/OpenLive.java
View file @
1abd5758
...
@@ -29,4 +29,6 @@ public class OpenLive implements AdminAuthorization {
...
@@ -29,4 +29,6 @@ public class OpenLive implements AdminAuthorization {
}
}
src/test/java/com/kjj/cases/live/Procurator.java
View file @
1abd5758
...
@@ -24,6 +24,8 @@ public class Procurator implements AdminAuthorization{
...
@@ -24,6 +24,8 @@ public class Procurator implements AdminAuthorization{
agentAuth
();
agentAuth
();
}
}
/*代理人首页直播列表*/
/*代理人首页直播列表*/
@Test
(
description
=
"代理人首页 "
,
priority
=
1
)
@Test
(
description
=
"代理人首页 "
,
priority
=
1
)
public
void
代理人直播列表
()
{
public
void
代理人直播列表
()
{
...
@@ -32,7 +34,7 @@ public class Procurator implements AdminAuthorization{
...
@@ -32,7 +34,7 @@ public class Procurator implements AdminAuthorization{
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
10
);
params
.
put
(
"pageSize"
,
10
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Procurator
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_Procurator
);
List
<
AgentBean
>
agentBeans
=
JsonUtil
.
parseResponseTo
List
Bean
(
response
,
AgentBean
.
class
);
List
<
AgentBean
>
agentBeans
=
JsonUtil
.
parseResponseTo
Page
Bean
(
response
,
AgentBean
.
class
);
if
(
agentBeans
.
size
()
>
0
)
{
if
(
agentBeans
.
size
()
>
0
)
{
AgentBean
bean
=
agentBeans
.
get
(
0
);
AgentBean
bean
=
agentBeans
.
get
(
0
);
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
...
@@ -48,7 +50,7 @@ public class Procurator implements AdminAuthorization{
...
@@ -48,7 +50,7 @@ public class Procurator implements AdminAuthorization{
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageIndex"
,
1
);
params
.
put
(
"pageSize"
,
10
);
params
.
put
(
"pageSize"
,
10
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_AgentEndList
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MOBILE_AgentEndList
);
List
<
AgentEndList
>
agentBeans
=
JsonUtil
.
parseResponseTo
List
Bean
(
response
,
AgentEndList
.
class
);
List
<
AgentEndList
>
agentBeans
=
JsonUtil
.
parseResponseTo
Page
Bean
(
response
,
AgentEndList
.
class
);
if
(
agentBeans
.
size
()
>
0
)
{
if
(
agentBeans
.
size
()
>
0
)
{
AgentEndList
bean
=
agentBeans
.
get
(
0
);
AgentEndList
bean
=
agentBeans
.
get
(
0
);
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
System
.
out
.
println
(
JSON
.
toJSONString
(
agentBeans
));
...
@@ -76,7 +78,7 @@ public class Procurator implements AdminAuthorization{
...
@@ -76,7 +78,7 @@ public class Procurator implements AdminAuthorization{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"sellerName"
,
"你好测试"
+
RandomUtils
.
nextInt
(
1
,
100
));
params
.
put
(
"sellerName"
,
"你好测试"
+
RandomUtils
.
nextInt
(
1
,
100
));
params
.
put
(
"phoneNumber"
,
"152588
90
691"
);
params
.
put
(
"phoneNumber"
,
"152588
101
691"
);
params
.
put
(
"jobNumber"
,
"TTTTTT"
);
params
.
put
(
"jobNumber"
,
"TTTTTT"
);
params
.
put
(
"wechatQrCode"
,
"//yun.dui88.com/kjy/nc/qrcode1/1981ec88d22fe37041feac4724c627670817.png"
);
params
.
put
(
"wechatQrCode"
,
"//yun.dui88.com/kjy/nc/qrcode1/1981ec88d22fe37041feac4724c627670817.png"
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_AgentEditCardInfo
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
MOBILE_AgentEditCardInfo
);
...
...
src/test/java/com/kjj/cases/live/SaveAndUpdate.java
View file @
1abd5758
...
@@ -52,6 +52,7 @@ public class SaveAndUpdate implements AdminAuthorization {
...
@@ -52,6 +52,7 @@ public class SaveAndUpdate implements AdminAuthorization {
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
());
LiveConstants
.
getValue
(
LiveConstants
.
StringKeyEnum
.
LIVE_ID
.
getKey
());
}
}
@Test
(
description
=
"查询直播配置"
,
priority
=
2
)
@Test
(
description
=
"查询直播配置"
,
priority
=
2
)
public
void
查询直播配置
()
{
public
void
查询直播配置
()
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
...
...
src/test/java/com/kjj/config/BasicConfig.java
View file @
1abd5758
...
@@ -449,4 +449,5 @@ public class BasicConfig {
...
@@ -449,4 +449,5 @@ public class BasicConfig {
public
static
final
String
MANAGER_PROMOTIONBATCHMODIFY
=
MANAGER_HOST
+
"/kjy/manager/promotionCode/batchModify"
;
public
static
final
String
MANAGER_PROMOTIONBATCHMODIFY
=
MANAGER_HOST
+
"/kjy/manager/promotionCode/batchModify"
;
public
static
final
String
MANAGER_PROMOTIONCODEBATCHDETAIL
=
MANAGER_HOST
+
"/kjy/manager/promotionCode/batchDetail"
;
public
static
final
String
MANAGER_PROMOTIONCODEBATCHDETAIL
=
MANAGER_HOST
+
"/kjy/manager/promotionCode/batchDetail"
;
}
}
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