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
d1db4f51
Commit
d1db4f51
authored
Aug 05, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2021080501_gxh' into 'master'
2021080501 gxh See merge request test-group/kejiji!91
parents
13a37900
85da46f6
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
404 additions
and
4 deletions
+404
-4
PersonCard.java
src/test/java/com/kjj/cases/assistant/card/PersonCard.java
+1
-1
NoviceGuidance.java
...est/java/com/kjj/cases/assistant/menu/NoviceGuidance.java
+378
-0
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+7
-0
BaseUtils.java
src/test/java/com/kjj/utils/BaseUtils.java
+0
-2
NetworkUtils.java
src/test/java/com/kjj/utils/NetworkUtils.java
+13
-0
wechatTestNG.xml
src/test/wechatTestNG.xml
+5
-1
No files found.
src/test/java/com/kjj/cases/assistant/card/PersonCard.java
View file @
d1db4f51
...
...
@@ -747,7 +747,7 @@ public class PersonCard implements Authorization {
Response
response
=
network
.
getResponse
(
params
,
SELLERCARD_getQuestions
);
boolean
success
=
response
.
jsonPath
().
getBoolean
(
"success"
);
Object
data
=
response
.
jsonPath
().
getJsonObject
(
"data"
);
questionId
=
response
.
jsonPath
().
get
JsonObject
(
"data.questionList.get(0).id"
);
questionId
=
response
.
jsonPath
().
get
String
(
"data.questionList.get(0).id"
);
Assert
.
assertTrue
(
success
,
network
.
message
(
params
,
SELLERCARD_getQuestions
,
"接口返回失败"
,
response
.
body
().
asString
()));
Assert
.
assertNotNull
(
data
,
network
.
message
(
params
,
SELLERCARD_getQuestions
,
"配置为空"
,
response
.
body
().
asString
()));
}
...
...
src/test/java/com/kjj/cases/assistant/menu/NoviceGuidance.java
0 → 100644
View file @
d1db4f51
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/config/BasicConfig.java
View file @
d1db4f51
...
...
@@ -623,6 +623,7 @@ public class BasicConfig {
public
static
final
String
QRCODE_create
=
HOST
+
"/kjy/mp/qrcode/create"
;
public
static
final
String
UPLOAD_image
=
HOST
+
"/kjy/mp/upload/image"
;
public
static
final
String
DYNAMIC_addVisit
=
HOST
+
"/kjy/mp/seller/dynamic/addVisit"
;
public
static
final
String
ROOKIEGUIDE_homeGuide
=
HOST
+
"/kjy/mp/rookieGuide/homeGuide"
;
// *************** 支付 ***************
public
static
final
String
PAY_getMiddleDetail
=
HOST
+
"/kjy/mp/payMiddle/getMiddleDetail"
;
...
...
@@ -970,5 +971,11 @@ public class BasicConfig {
public
static
final
String
MANAGER_addExclusiveArea
=
MANAGER_HOST
+
"/kjy/manager/exclusiveArea/add"
;
public
static
final
String
MANAGER_searchTemplateList
=
MANAGER_HOST
+
"/kjy/manager/game/searchTemplateList"
;
public
static
final
String
MANAGER_getTemplateDetail
=
MANAGER_HOST
+
"/kjy/manager/game/getTemplateDetail"
;
public
static
final
String
MANAGER_vipList
=
MANAGER_HOST
+
"/kjy/manager/seller/vipList"
;
public
static
final
String
MANAGER_disableUser
=
MANAGER_HOST
+
"/kjy/manager/testUser/disableUser"
;
public
static
final
String
MANAGER_updateTypeOrDate
=
MANAGER_HOST
+
"/kjy/manager/seller/updateTypeOrDate"
;
public
static
final
String
MANAGER_oamsg
=
HOST
+
"/kjy/notify/oamsg"
;
public
static
final
String
MANAGER_encryptTku
=
MANAGER_HOST
+
"/kjy/manager/testUser/encryptTku"
;
public
static
final
String
MANAGER_changeCompany
=
MANAGER_HOST
+
"/kjy/manager/seller/changeCompany"
;
public
static
final
String
MANAGER_feedBackList
=
MANAGER_HOST
+
"/kjy/manager/feedback/list"
;
}
src/test/java/com/kjj/utils/BaseUtils.java
View file @
d1db4f51
...
...
@@ -44,6 +44,4 @@ public class BaseUtils {
network
.
agentCookies
.
put
(
"sso_ticket"
,
"autotest"
);
}
}
src/test/java/com/kjj/utils/NetworkUtils.java
View file @
d1db4f51
...
...
@@ -115,6 +115,19 @@ public class NetworkUtils {
return
response
;
}
// post xml请求方式
public
Response
postXMLResponse
(
String
str
,
String
path
)
{
Response
response
=
given
()
.
cookies
(
agentCookies
)
.
headers
(
agentHeaders
)
.
body
(
str
)
.
post
(
path
);
if
(!
Objects
.
equals
(
response
.
statusCode
(),
200
)){
System
.
out
.
println
(
"请求状态码错误,path=【"
+
path
+
"】 code=【"
+
response
.
statusCode
()+
"】"
);
}
return
response
;
}
// 管理后台
public
Response
getManagerCookies
(
String
path
){
Response
response
=
given
().
...
...
src/test/wechatTestNG.xml
View file @
d1db4f51
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite
name=
"集客助手"
verbose=
"1"
thread-count=
"3"
>
<test
preserve-order=
"true"
name =
"新手引导"
>
<classes>
<class
name=
"com.kjj.cases.assistant.menu.NoviceGuidance"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"支付"
>
<classes>
<class
name=
"com.kjj.cases.assistant.pay.Pay"
/>
...
...
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