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
3dbf309b
Commit
3dbf309b
authored
Sep 14, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加约面日历和非一面面访信息维护
parent
137f7f41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+21
-9
No files found.
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
3dbf309b
...
...
@@ -379,18 +379,18 @@ public class Phone implements Authorization {
scanCode
(
IdMakeUtil
.
encodingId
((
Long
)
scanCodeId
),
1047
);
}
@Test
(
description
=
"查询
异常
面访回填信息"
,
priority
=
29
)
public
void
查询
异常
面访回填信息
(){
@Test
(
description
=
"查询
失效
面访回填信息"
,
priority
=
29
)
public
void
查询
失效
面访回填信息
(){
otoSellerTku
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
interviewIds
.
get
(
0
));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_custExtDetail
);
String
custAddress
=
response
.
jsonPath
().
getString
(
"data.cust
Address"
);
String
interviewAddress
=
response
.
jsonPath
().
getString
(
"data.interview
Address"
);
int
commitPlanFlag
=
response
.
jsonPath
().
getInt
(
"data.commitPlanFlag"
);
int
giveProspectusFlag
=
response
.
jsonPath
().
getInt
(
"data.giveProspectusFlag"
);
Assert
.
assertNotNull
(
custAddress
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custExtDetail
,
"客户
地址为空"
,
response
.
body
().
asString
()));
Assert
.
assert
Equals
(
giveProspectusFlag
,
1
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custExtDetail
,
"是否可送计划书不为是
"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
commitPlanFlag
,
1
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custExtDetail
,
"是否已送计划书不为是
"
,
response
.
body
().
asString
()));
String
giveProspectusFlag
=
response
.
jsonPath
().
getString
(
"data.giveProspectusFlag"
);
Assert
.
assertNotNull
(
interviewAddress
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custExtDetail
,
"面访
地址为空"
,
response
.
body
().
asString
()));
Assert
.
assert
Null
(
giveProspectusFlag
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custExtDetail
,
"是否可送计划书不为空
"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
commitPlanFlag
,
0
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custExtDetail
,
"是否已送计划书不为否
"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"上传社区参观面访详情"
,
priority
=
30
)
...
...
@@ -453,13 +453,13 @@ public class Phone implements Authorization {
}
@Test
(
description
=
"创建送计划书面访"
,
priority
=
3
5
)
@Test
(
description
=
"创建送计划书面访"
,
priority
=
3
4
)
public
void
创建送计划书面访
(){
otoSellerTku
();
interviewIds
.
add
(
saveInterview
(
cust_id
,
2
));
}
@Test
(
description
=
"客户完成送计划书面访并扫码"
,
priority
=
3
6
)
@Test
(
description
=
"客户完成送计划书面访并扫码"
,
priority
=
3
5
)
public
void
客户完成送计划书面访并扫码
()
throws
SQLException
{
agentTku
();
Map
<
String
,
Object
>
result
=
KjyLiveNormalDB
.
getInstance
().
findSimpleResult
(
UserSqlFactory
.
selectCodeIdByCustomerId
,
IdMakeUtil
.
decodingId
(
cust_id
));
...
...
@@ -468,6 +468,18 @@ public class Phone implements Authorization {
scanCode
(
IdMakeUtil
.
encodingId
((
Long
)
scanCodeId
),
1047
);
}
@Test
(
description
=
"查询异常通过面访回填信息"
,
priority
=
36
)
public
void
查询异常通过面访回填信息
(){
otoSellerTku
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
interviewIds
.
get
(
0
));
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
PHONE_custExtDetail
);
int
commitPlanFlag
=
response
.
jsonPath
().
getInt
(
"data.commitPlanFlag"
);
int
giveProspectusFlag
=
response
.
jsonPath
().
getInt
(
"data.giveProspectusFlag"
);
Assert
.
assertEquals
(
giveProspectusFlag
,
1
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custExtDetail
,
"是否可送计划书不为空"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
commitPlanFlag
,
1
,
network
.
message
(
params
,
BasicConfig
.
PHONE_custExtDetail
,
"是否已送计划书不为否"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"二次正常扫码面访异常类型为空"
,
priority
=
37
)
public
void
二次正常扫码面访异常类型为空
(){
...
...
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