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
6d4b8c46
Commit
6d4b8c46
authored
Jun 07, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/20200607-gxh' into 'master'
增加客户告知书管理的自动化测试接口 See merge request
!6
parents
5c4aae80
24693c9a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
202 additions
and
11 deletions
+202
-11
Manager.java
src/test/java/com/oto/cases/otoseller/Manager.java
+184
-4
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+4
-6
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+14
-1
No files found.
src/test/java/com/oto/cases/otoseller/Manager.java
View file @
6d4b8c46
This diff is collapsed.
Click to expand it.
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
6d4b8c46
...
...
@@ -520,10 +520,9 @@ public class Phone implements Authorization {
@Test
(
description
=
"查看公司产品列表"
,
priority
=
38
)
public
void
查看公司产品列表
()
{
String
encodeProductId
=
IdMakeUtil
.
encodingId
(
productId
);
Response
response
=
network
.
getResponse
(
BasicConfig
.
PHONE_listBysellComp
);
int
size
=
response
.
jsonPath
().
getInt
(
"data.
findAll{it.id == '"
+
encodeProductId
+
"'}.
size()"
);
Assert
.
assertEquals
(
size
,
1
,
network
.
message
(
BasicConfig
.
PHONE_listBysellComp
,
"产品列表未包含已上架产品"
,
response
.
body
().
asString
()));
int
size
=
response
.
jsonPath
().
getInt
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
2
,
network
.
message
(
BasicConfig
.
PHONE_listBysellComp
,
"产品列表未包含已上架产品"
,
response
.
body
().
asString
()));
}
@Test
(
description
=
"下架公司产品"
,
priority
=
39
)
...
...
@@ -540,10 +539,9 @@ public class Phone implements Authorization {
public
void
产品下架后公司产品列表不显示
()
{
otoSellerTku
();
String
encodeProductId
=
IdMakeUtil
.
encodingId
(
productId
);
Response
response
=
network
.
postResponse
(
BasicConfig
.
PHONE_listBysellComp
);
int
size
=
response
.
jsonPath
().
getJsonObject
(
"data.
findAll{it.id == "
+
encodeProductId
+
"}.
size()"
);
Assert
.
assertEquals
(
size
,
0
,
network
.
message
(
BasicConfig
.
PHONE_listBysellComp
,
"产品列表未包含已上架产品"
,
response
.
body
().
asString
()));
int
size
=
response
.
jsonPath
().
getJsonObject
(
"data.size()"
);
Assert
.
assertEquals
(
size
,
1
,
network
.
message
(
BasicConfig
.
PHONE_listBysellComp
,
"产品列表未包含已上架产品"
,
response
.
body
().
asString
()));
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
productId
);
...
...
src/test/java/com/oto/config/BasicConfig.java
View file @
6d4b8c46
...
...
@@ -57,7 +57,7 @@ public class BasicConfig {
public
static
final
String
TEST_testerDelete
=
MOBILE_HOST
+
"/test/user/test/delete"
;
public
static
final
String
MANAGER_encryptAuthKey
=
MANAGER_HOST
+
"/kjy/manager/testUser/encryptAuthKey"
;
//***************
OTO销售工作台
***************
//***************
公域引流
***************
public
static
final
String
MANAGER_oto_saveTag
=
MANAGER_HOST
+
"/kjy/manager/oto/tag/save"
;
public
static
final
String
MANAGER_oto_updateTag
=
MANAGER_HOST
+
"/kjy/manager/oto/tag/update"
;
public
static
final
String
MANAGER_oto_deleteTag
=
MANAGER_HOST
+
"/kjy/manager/oto/tag/delete"
;
...
...
@@ -89,7 +89,18 @@ public class BasicConfig {
public
static
final
String
MANAGER_oto_accountBind
=
MANAGER_HOST
+
"/kjy/manager/oto/seller/account/bind"
;
public
static
final
String
MANAGER_oto_accountUnbind
=
MANAGER_HOST
+
"/kjy/manager/oto/seller/account/unbind"
;
public
static
final
String
MANAGER_oto_change
=
MANAGER_HOST
+
"/kjy/manager/oto/seller/phone/change"
;
public
static
final
String
MANAGER_supplier_save
=
MANAGER_HOST
+
"/kjy/manager/oto/supplier/save"
;
public
static
final
String
MANAGER_supplier_update
=
MANAGER_HOST
+
"/kjy/manager/oto/supplier/update"
;
public
static
final
String
MANAGER_supplier_list
=
MANAGER_HOST
+
"/kjy/manager/oto/supplier/list"
;
public
static
final
String
MANAGER_notification_list
=
MANAGER_HOST
+
"/kjy/manager/oto/notification/list"
;
public
static
final
String
MANAGER_product_listByAttachUs
=
MANAGER_HOST
+
"/kjy/manager/oto/product/listByAttachUs"
;
public
static
final
String
MANAGER_notification_save
=
MANAGER_HOST
+
"/kjy/manager/oto/notification/save"
;
public
static
final
String
MANAGER_notification_update
=
MANAGER_HOST
+
"/kjy/manager/oto/notification/update"
;
public
static
final
String
MANAGER_notification_signInvalid
=
MANAGER_HOST
+
"/kjy/manager/oto/notification/signInvalid"
;
public
static
final
String
MANAGER_supplier_listAll
=
MANAGER_HOST
+
"/kjy/manager/oto/supplier/listAll"
;
public
static
final
String
MANAGER_notification_getNotificationTemplate
=
MANAGER_HOST
+
"/kjy/manager/oto/notification/getNotificationTemplate"
;
//*************** OTO销售工作台 ***************
public
static
final
String
WORK_getCaptcha
=
WORK_HOST
+
"/kjy/oto/manager/auth/captcha"
;
public
static
final
String
WORK_login
=
WORK_HOST
+
"/kjy/oto/manager/auth/login"
;
public
static
final
String
WORK_userInfo
=
WORK_HOST
+
"/kjy/oto/manager/auth/userInfo"
;
...
...
@@ -168,6 +179,8 @@ public class BasicConfig {
public
static
final
String
PHONE_getReservationList
=
HOST
+
"/kjy/pub/form/getReservationList"
;
public
static
final
String
PHONE_listCustInterConf
=
PHONE_HOST
+
"/kjy/oto/interview/listCustInterConf"
;
public
static
final
String
PHONE_checkCustPhase
=
PHONE_HOST
+
"/kjy/oto/interview/checkCustPhase"
;
public
static
final
String
PHONE_notification_getDetail
=
PHONE_HOST
+
"/kjy/oto/notification/getDetail"
;
public
static
final
String
PHONE_notification_updateSignatureInfo
=
PHONE_HOST
+
"/kjy/oto/notification/updateSignatureInfo"
;
public
static
final
String
WORK_verifyCode
=
WORK_HOST
+
"/kjy/oto/auto/test/verifyCode"
;
public
static
final
String
WORK_delCust
=
WORK_HOST
+
"/kjy/oto/auto/test/delCust"
;
...
...
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