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
16e37d73
Commit
16e37d73
authored
Aug 02, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/20210730-xmc' into 'master'
解决'客户详情页_来访记录'执行报错 See merge request test-group/kejiji!88
parents
10b96bcd
6e5dcc1d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
6 deletions
+28
-6
VisitRecords.java
src/test/java/com/kjj/bean/whoSawMe/VisitRecords.java
+19
-0
ForwardAndRead.java
...java/com/kjj/cases/assistant/whoSawMe/ForwardAndRead.java
+1
-0
MyCustomer.java
...est/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
+8
-6
No files found.
src/test/java/com/kjj/bean/whoSawMe/VisitRecords.java
0 → 100644
View file @
16e37d73
package
com
.
kjj
.
bean
.
whoSawMe
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
VisitRecords
{
private
List
<
recordsList
>
records
;
@Data
public
static
class
recordsList
{
private
String
clueId
;
private
int
clueType
;
private
String
contentId
;
private
String
contentType
;
private
String
scid
;
}
}
src/test/java/com/kjj/cases/assistant/whoSawMe/ForwardAndRead.java
View file @
16e37d73
package
com
.
kjj
.
cases
.
assistant
.
whoSawMe
;
package
com
.
kjj
.
cases
.
assistant
.
whoSawMe
;
import
com.kjj.cases.admin.Authorization
;
import
com.kjj.cases.admin.Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.utils.BaseUtils
;
...
...
src/test/java/com/kjj/cases/assistant/whoSawMe/MyCustomer.java
View file @
16e37d73
package
com
.
kjj
.
cases
.
assistant
.
whoSawMe
;
package
com
.
kjj
.
cases
.
assistant
.
whoSawMe
;
import
com.kjj.bean.whoSawMe.ChatList
;
import
com.kjj.bean.whoSawMe.*
;
import
com.kjj.bean.whoSawMe.CustFavorite
;
import
com.kjj.bean.whoSawMe.LinkList
;
import
com.kjj.bean.whoSawMe.RemindInfo
;
import
com.kjj.cases.admin.Authorization
;
import
com.kjj.cases.admin.Authorization
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.config.BasicConfig
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.utils.BaseUtils
;
...
@@ -402,8 +399,13 @@ public class MyCustomer implements Authorization {
...
@@ -402,8 +399,13 @@ public class MyCustomer implements Authorization {
param
.
put
(
"timeOrderType"
,
2
);
param
.
put
(
"timeOrderType"
,
2
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
CUSTVISITLIST
);
response
=
network
.
getResponse
(
param
,
BasicConfig
.
CUSTVISITLIST
);
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
CUSTVISITLIST
,
"接口请求失败"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
response
.
jsonPath
().
getBoolean
(
"success"
),
network
.
message
(
param
,
BasicConfig
.
CUSTVISITLIST
,
"接口请求失败"
,
response
.
body
().
asString
()));
List
<
Object
>
visitLists
=
response
.
jsonPath
().
getList
(
"data.list"
);
List
<
VisitRecords
>
visitRecords
=
JsonUtil
.
parseResponseToPageBean
(
response
,
VisitRecords
.
class
);
Assert
.
assertEquals
(
visitLists
.
size
(),
visitCount
,
network
.
message
(
param
,
BasicConfig
.
CUSTVISITLIST
,
"访客来访记录数目与来访次数不符"
,
response
.
body
().
asString
()));
VisitRecords
.
recordsList
recordsOfContent
=
visitRecords
.
get
(
0
).
getRecords
().
get
(
0
);
VisitRecords
.
recordsList
recordsOfClue
=
visitRecords
.
get
(
0
).
getRecords
().
get
(
1
);
String
contentId
=
recordsOfContent
.
getContentId
();
int
clueType
=
recordsOfClue
.
getClueType
();
Assert
.
assertEquals
(
contentId
,
BasicConfig
.
ARTICLE_CONTENTID
,
network
.
message
(
param
,
BasicConfig
.
CUSTVISITLIST
,
"访问记录详情有误"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
clueType
,
31
,
network
.
message
(
param
,
BasicConfig
.
CUSTVISITLIST
,
"访问记录详情有误"
,
response
.
body
().
asString
()));
}
}
// 客户详情页_任务蒙层
// 客户详情页_任务蒙层
...
...
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