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
f2c7b424
Commit
f2c7b424
authored
Mar 08, 2021
by
别湘灵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'master' of /Users/biexiangling/Documents/kejiji with conflicts.
parent
4632584d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4357 additions
and
284 deletions
+4357
-284
Procurator.java
src/test/java/com/kjj/cases/live/Procurator.java
+53
-0
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+14
-1
liveTestNG.xml
src/test/liveTestNG.xml
+5
-0
report.html
test-output/report.html
+4285
-283
No files found.
src/test/java/com/kjj/cases/live/Procurator.java
0 → 100644
View file @
f2c7b424
package
com
.
kjj
.
cases
.
live
;
import
com.kjj.bean.AnswerBean
;
import
com.kjj.bean.AnswerListBean
;
import
com.kjj.bean.RewardPkBean
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.utils.BaseUtils
;
import
io.restassured.response.Response
;
import
org.apache.commons.lang3.time.DateUtils
;
import
org.testng.Assert
;
import
org.testng.annotations.AfterClass
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
java.io.IOException
;
import
java.util.*
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
ISVIPSUBSCRIBE
;
public
class
Procurator
implements
AdminAuthorization
{
@BeforeClass
public
void
setUp
()
{
adminAuth
();
}
public
String
liveID
;
/*代理人端*/
/*代理人首页*/
@Test
(
description
=
"代理人首页"
,
priority
=
1
)
public
void
Agent
()
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"liveId"
,
liveID
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MANAGER_Procurator
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data.list.[0].liveid"
);
System
.
out
.
println
(
data
);
Assert
.
assertNotNull
(
data
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_Procurator
,
"查询代理人直播列表"
,
response
.
body
().
asString
()));
}
/*代理人个人信息*/
}
src/test/java/com/kjj/config/BasicConfig.java
View file @
f2c7b424
...
@@ -4,7 +4,7 @@ public class BasicConfig {
...
@@ -4,7 +4,7 @@ public class BasicConfig {
public
static
int
apiCount
;
//接口数量统计
public
static
int
apiCount
;
//接口数量统计
// 是否开启钉钉机器人推送
// 是否开启钉钉机器人推送
public
static
final
boolean
isPushReport
=
tru
e
;
//true
public
static
final
boolean
isPushReport
=
fals
e
;
//true
// 代理人微信昵称
// 代理人微信昵称
public
static
final
String
WECHAT_NAME
=
"客集集-梦晨"
;
//true
public
static
final
String
WECHAT_NAME
=
"客集集-梦晨"
;
//true
...
@@ -74,6 +74,19 @@ public class BasicConfig {
...
@@ -74,6 +74,19 @@ public class BasicConfig {
public
static
final
String
MANAGER_SAVEORUPDATE7
=
MANAGER_HOST
+
"/kjy/manager/welfare/pre/conf/saveOrUpdate"
;
public
static
final
String
MANAGER_SAVEORUPDATE7
=
MANAGER_HOST
+
"/kjy/manager/welfare/pre/conf/saveOrUpdate"
;
// *************** 代理人 ***************
//用户信息//
public
static
final
String
MANAGER_ISProcurator
=
MANAGER_HOST
+
"/kjy/live/userInfo"
;
public
static
final
String
MANAGER_Procurator
=
MANAGER_HOST
+
"/kjy/live/agent/liveList"
;
//***************直播素材*****************
//***************直播素材*****************
public
static
final
String
MANAGER_SAVEORUPDATE6
=
MANAGER_HOST
+
"/kjy/manager/conf/base/welfare/saveOrUpdate"
;
public
static
final
String
MANAGER_SAVEORUPDATE6
=
MANAGER_HOST
+
"/kjy/manager/conf/base/welfare/saveOrUpdate"
;
...
...
src/test/liveTestNG.xml
View file @
f2c7b424
...
@@ -6,6 +6,11 @@
...
@@ -6,6 +6,11 @@
<class
name=
"com.kjj.cases.live.SaveAndUpdate"
/>
<class
name=
"com.kjj.cases.live.SaveAndUpdate"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"代理人首页"
>
<classes>
<class
name=
"com.kjj.cases.live.Procurator"
/>
</classes>
</test>
<!-- <test preserve-order="true" name="直播素材">-->
<!-- <test preserve-order="true" name="直播素材">-->
<!-- <classes>-->
<!-- <classes>-->
...
...
test-output/report.html
View file @
f2c7b424
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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