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
746e937b
Commit
746e937b
authored
Mar 29, 2021
by
别湘灵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代理人首页
parent
1d80764e
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
339 additions
and
69 deletions
+339
-69
ResourceForm.java
src/test/java/com/kjj/bean/ResourceForm.java
+24
-0
ResourceFree.java
src/test/java/com/kjj/bean/ResourceFree.java
+26
-0
ResourceLink.java
src/test/java/com/kjj/bean/ResourceLink.java
+13
-0
ResourceTestDetail.java
src/test/java/com/kjj/bean/ResourceTestDetail.java
+28
-0
ResourceTestParticipate.java
src/test/java/com/kjj/bean/ResourceTestParticipate.java
+9
-0
LiveVisitors.java
src/test/java/com/kjj/cases/live/LiveVisitors.java
+182
-36
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+27
-7
JsonUtil.java
src/test/java/com/kjj/utils/JsonUtil.java
+7
-1
liveTestNG.xml
src/test/liveTestNG.xml
+23
-25
No files found.
src/test/java/com/kjj/bean/ResourceForm.java
0 → 100644
View file @
746e937b
package
com
.
kjj
.
bean
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
ResourceForm
{
private
String
banner
;
private
List
<
FieldList
>
fieldList
;
private
String
received
;
@Data
public
static
class
FieldList
{
private
String
fieldId
;
private
String
fieldName
;
private
int
fieldType
;
private
int
selectType
;
}
}
src/test/java/com/kjj/bean/ResourceFree.java
0 → 100644
View file @
746e937b
package
com
.
kjj
.
bean
;
import
lombok.Data
;
@Data
public
class
ResourceFree
{
private
String
Kj21OTQ1NTk
;
private
String
name
;
private
String
img
;
private
String
companyName
;
private
String
companyId
;
private
String
received
;
private
String
receivedTime
;
private
int
interactType
;
private
String
recordId
;
private
String
liveId
;
private
String
outLink
;
private
String
outLinkDesc
;
private
String
resourceDesc
;
private
String
resourcePictures
;
private
int
resourceType
;
private
String
resourceButtonTitle
;
private
int
outLinkType
;
private
String
outLinkAppId
;
private
String
formBanner
;
}
src/test/java/com/kjj/bean/ResourceLink.java
0 → 100644
View file @
746e937b
package
com
.
kjj
.
bean
;
import
lombok.Data
;
@Data
public
class
ResourceLink
{
private
String
name
;
private
String
img
;
private
int
interactType
;
private
String
outLink
;
private
String
outLinkType
;
private
String
outLinkAppId
;
}
src/test/java/com/kjj/bean/ResourceTestDetail.java
0 → 100644
View file @
746e937b
package
com
.
kjj
.
bean
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
ResourceTestDetail
{
private
int
testType
;
private
int
clueType
;
private
String
tradeIntroducePictures
;
private
String
suspendImg
;
private
String
mainButtonTitle
;
private
String
saleButtonTitle
;
private
List
<
FieldList
>
fieldList
;
private
String
received
;
@Data
public
static
class
FieldList
{
private
String
fieldId
;
private
String
fieldValue
;
private
String
fieldSubmitIds
;
}
private
String
liveId
;
private
String
confId
;
private
int
interactType
;
}
src/test/java/com/kjj/bean/ResourceTestParticipate.java
0 → 100644
View file @
746e937b
package
com
.
kjj
.
bean
;
import
lombok.Data
;
@Data
public
class
ResourceTestParticipate
{
private
int
percent
;
private
String
nickname
;
}
src/test/java/com/kjj/cases/live/LiveVisitors.java
View file @
746e937b
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/config/BasicConfig.java
View file @
746e937b
...
@@ -3,7 +3,7 @@ package com.kjj.config;
...
@@ -3,7 +3,7 @@ package com.kjj.config;
public
class
BasicConfig
{
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
...
@@ -127,16 +127,36 @@ public class BasicConfig {
...
@@ -127,16 +127,36 @@ public class BasicConfig {
//访客端领取资料//
//访客端领取资料//
//查询资料列表//
//查询资料列表//
public
static
final
String
MOBILE_Resource
=
MOBILE_HOST
+
"/clue/resource/list"
;
public
static
final
String
MOBILE_Resource
=
MOBILE_HOST
+
"/clue/resource/list"
;
//公众号领取//
public
static
final
String
MOBILE_OfficialAccounts
=
MOBILE_HOST
+
"/kjy/live/user/resource/receive"
;
//表单资料领取//
//表单资料查询//
public
static
final
String
MOBILE_
=
MOBILE_HOST
+
"/kjy/live/user/resource/receive"
;
public
static
final
String
MOBILE_Form
=
MOBILE_HOST
+
"/clue/resource/form/detail"
;
//表单资料查询//
public
static
final
String
MOBILE_FormSubmit
=
MOBILE_HOST
+
"/clue/resource/form/submit"
;
//链接资料查询
public
static
final
String
MOBILE_Link1
=
MOBILE_HOST
+
"/clue/info/interact"
;
//链接资料领取
public
static
final
String
MOBILE_Link
=
MOBILE_HOST
+
"/kjy/live/user/resource/receive"
;
//免费领
public
static
final
String
MOBILE_ResourceFree
=
MOBILE_HOST
+
"/kjy/live/user/resource/findDetailByConfId"
;
//秒薪测试查询
public
static
final
String
MOBILE_ResourceTestDetail
=
MOBILE_HOST
+
"/clue/resource/test/detail"
;
public
static
final
String
MOBILE_ResourceTestParticipate
=
MOBILE_HOST
+
"/clue/resource/test/participate"
;
public
static
final
String
MOBILE_ResourceTestSubmit
=
MOBILE_HOST
+
"/clue/resource/test/submit"
;
//访客端红包
public
static
final
String
MOBILE_OrdinaryRed
=
MOBILE_HOST
+
"/clue/red/findRedList"
;
public
static
final
String
MOBILE_OrdinaryRed1
=
MOBILE_HOST
+
"/clue/red/findSimpleDetail"
;
//访客端领取资料//
public
static
final
String
MOBILE_GetAgentPosterInfo
=
MOBILE_HOST
+
"/kjy/live/share/getAgentPosterInfo"
;
public
static
final
String
MOBILE_GetAgentPosterInfo
=
MOBILE_HOST
+
"/kjy/live/share/getAgentPosterInfo"
;
...
...
src/test/java/com/kjj/utils/JsonUtil.java
View file @
746e937b
...
@@ -33,11 +33,17 @@ public class JsonUtil {
...
@@ -33,11 +33,17 @@ public class JsonUtil {
* @param <T>
* @param <T>
* @return
* @return
*/
*/
public
static
<
T
>
List
<
T
>
parseResponseTo
List
Bean
(
Response
response
,
Class
<
T
>
tClass
){
public
static
<
T
>
List
<
T
>
parseResponseTo
Page
Bean
(
Response
response
,
Class
<
T
>
tClass
){
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
String
str
=
new
JsonBuilder
(
data
).
toString
();
String
str
=
new
JsonBuilder
(
data
).
toString
();
JSONObject
jsonObject
=
JSON
.
parseObject
(
str
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
str
);
JSONArray
array
=
jsonObject
.
getJSONArray
(
"list"
);
JSONArray
array
=
jsonObject
.
getJSONArray
(
"list"
);
return
array
.
toJavaList
(
tClass
);
return
array
.
toJavaList
(
tClass
);
}
}
public
static
<
T
>
List
<
T
>
parseResponseToListBean
(
Response
response
,
Class
<
T
>
tClass
){
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
String
str
=
new
JsonBuilder
(
data
).
toString
();
return
JSON
.
parseArray
(
str
,
tClass
);
}
}
}
src/test/liveTestNG.xml
View file @
746e937b
...
@@ -26,44 +26,42 @@
...
@@ -26,44 +26,42 @@
</test>
</test>
<test
preserve-order=
"true"
name=
"助播-开启直播"
>
<classes>
<class
name=
"com.kjj.cases.live.OpenLive"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"访客券码领取"
>
<test
preserve-order=
"true"
name=
"访客券码领取"
>
<classes>
<classes>
<class
name=
"com.kjj.cases.live.User"
/>
<class
name=
"com.kjj.cases.live.User"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"指定中奖"
>
<classes>
<class
name=
"com.kjj.cases.live.DesignatedWinner"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"访客领取资料"
>
<classes>
<class
name=
"com.kjj.cases.live.LiveVisitors"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"获取代理人排行榜及客户信息"
>
<classes>
<class
name=
"com.kjj.cases.live.LiveAgent"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"助播-开启直播"
>
<test
preserve-order=
"true"
name=
"助播-开启直播"
>
<classes>
<classes>
<class
name=
"com.kjj.cases.live.OpenLive"
/>
<class
name=
"com.kjj.cases.live.OpenLive"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"助播-结束直播"
>
<!-- <test preserve-order="true" name="指定中奖">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.live.DesignatedWinner"/>-->
<!-- </classes>-->
<!-- </test>-->
<test
preserve-order=
"true"
name=
"访客领取资料"
>
<classes>
<classes>
<class
name=
"com.kjj.cases.live.
CloseLive
"
/>
<class
name=
"com.kjj.cases.live.
LiveVisitors
"
/>
</classes>
</classes>
</test>
</test>
<!-- <test preserve-order="true" name="获取代理人排行榜及客户信息">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.live.LiveAgent"/>-->
<!-- </classes>-->
<!-- </test>-->
<!-- <test preserve-order="true" name="助播-结束直播">-->
<!-- <classes>-->
<!-- <class name="com.kjj.cases.live.CloseLive"/>-->
<!-- </classes>-->
<!-- </test>-->
...
...
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