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
92954236
Commit
92954236
authored
May 13, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feafture/20220509-gxh' into 'master'
增加OTO销售工作台移动端1.1的测试用例 See merge request test-group/kejiji!256
parents
0354aff0
4d25af2a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Phone.java
src/test/java/com/kjj/cases/otoseller/Phone.java
+2
-1
Work.java
src/test/java/com/kjj/cases/otoseller/Work.java
+3
-3
No files found.
src/test/java/com/kjj/cases/otoseller/Phone.java
View file @
92954236
...
...
@@ -16,6 +16,7 @@ import java.util.ArrayList;
import
java.util.HashMap
;
import
java.util.Map
;
import
static
com
.
kjj
.
cases
.
otoseller
.
Work
.
phone
;
import
static
com
.
kjj
.
utils
.
BaseUtils
.*;
import
static
com
.
kjj
.
utils
.
ThreadSleepUtils
.
sleep
;
//手机端
...
...
@@ -630,7 +631,7 @@ public class Phone implements Authorization {
@Test
(
description
=
"删除客户填写的表单记录"
,
priority
=
80
)
public
void
删除客户填写的表单记录
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"phoneNum"
,
"17830855590"
);
params
.
put
(
"phoneNum"
,
phone
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_delPubFormRecord
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_delPubFormRecord
,
"删除客户表单记录失败"
,
response
.
body
().
asString
()));
...
...
src/test/java/com/kjj/cases/otoseller/Work.java
View file @
92954236
...
...
@@ -22,10 +22,11 @@ public class Work implements Authorization {
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
public
int
tagId
;
//标签ID
public
int
custId
;
//客户ID
public
String
phone
;
//客户手机号
public
static
String
phone
=
"15938213001"
;
//客户手机号
public
int
followTimes
;
//跟进次数
public
static
Map
<
String
,
Integer
>
header
;
public
static
Map
<
String
,
Integer
>
chart
;
@BeforeTest
public
void
setUp
(){
header
=
new
HashMap
<>();
...
...
@@ -80,7 +81,6 @@ public class Work implements Authorization {
@Test
(
description
=
"公域引流_填写表单"
,
priority
=
4
)
public
void
公域引流
_
填写表单
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
phone
=
"17830855590"
;
params
.
put
(
"formId"
,
"Kj20ODA3"
);
params
.
put
(
"phoneNum"
,
phone
);
params
.
put
(
"urlLink"
,
"https://kjj-static.duibatest.com.cn/cpic-home/202111261430?formId=Kj20ODA3&channel=bd&agent=x"
);
...
...
@@ -495,7 +495,7 @@ public class Work implements Authorization {
params
.
put
(
"pageSize"
,
10
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
MANAGER_oto_customerPhone
);
String
data
=
response
.
jsonPath
().
getString
(
"data"
);
Assert
.
assertEquals
(
data
,
"17830855590"
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_qaDetail
,
"解密手机号失败"
,
response
.
body
().
asString
()));
Assert
.
assertEquals
(
data
,
phone
,
network
.
message
(
params
,
BasicConfig
.
MANAGER_oto_qaDetail
,
"解密手机号失败"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"公域引流_查询问题详情"
,
priority
=
47
)
...
...
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