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
07b70c06
Commit
07b70c06
authored
Jun 20, 2020
by
Su-Yi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改tku
parent
8d2e7d95
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
684 additions
and
283 deletions
+684
-283
Article.java
src/test/java/com/kjj/qa/cases/Article.java
+107
-36
SellerCard.java
src/test/java/com/kjj/qa/cases/SellerCard.java
+4
-4
Video.java
src/test/java/com/kjj/qa/cases/Video.java
+4
-0
BasicConfig.java
src/test/java/com/kjj/qa/config/BasicConfig.java
+6
-2
SellerCard.class
target/test-classes/com/kjj/qa/cases/SellerCard.class
+0
-0
DingTalkUtil.class
target/test-classes/com/kjj/qa/utils/DingTalkUtil.class
+0
-0
NetworkUtil.class
target/test-classes/com/kjj/qa/utils/NetworkUtil.class
+0
-0
report.html
test-output/report.html
+563
-241
No files found.
src/test/java/com/kjj/qa/cases/Article.java
View file @
07b70c06
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/qa/cases/SellerCard.java
View file @
07b70c06
...
@@ -124,13 +124,13 @@ public class SellerCard {
...
@@ -124,13 +124,13 @@ public class SellerCard {
params
.
put
(
"isPersonal"
,
false
);
params
.
put
(
"isPersonal"
,
false
);
Response
response
=
network
.
getResponse
(
params
,
SELLERCARD_APPRAISELISTNEW
);
Response
response
=
network
.
getResponse
(
params
,
SELLERCARD_APPRAISELISTNEW
);
int
totalCount
=
response
.
jsonPath
().
getInt
(
"data.appraiseList.totalCount"
)
;
boolean
hasAppraise
=
response
.
jsonPath
().
getInt
(
"data.appraiseList.totalCount"
)
>
0
;
Assert
.
assert
Equals
(
totalCount
,
10
,
network
.
message
(
params
,
SELLERCARD_APPRAISELISTNEW
,
"获取用户评价失败"
));
Assert
.
assert
True
(
hasAppraise
,
network
.
message
(
params
,
SELLERCARD_APPRAISELISTNEW
,
"获取用户评价失败"
));
params
.
put
(
"isPersonal"
,
true
);
params
.
put
(
"isPersonal"
,
true
);
response
=
network
.
getResponse
(
params
,
SELLERCARD_APPRAISELISTNEW
);
response
=
network
.
getResponse
(
params
,
SELLERCARD_APPRAISELISTNEW
);
totalCount
=
response
.
jsonPath
().
getInt
(
"data.appraiseList.totalCount"
)
;
hasAppraise
=
response
.
jsonPath
().
getInt
(
"data.appraiseList.totalCount"
)
==
0
;
Assert
.
assert
Equals
(
totalCount
,
0
,
network
.
message
(
params
,
SELLERCARD_APPRAISELISTNEW
,
"获取专业评价失败"
));
Assert
.
assert
True
(
hasAppraise
,
network
.
message
(
params
,
SELLERCARD_APPRAISELISTNEW
,
"获取专业评价失败"
));
}
}
@Test
(
description
=
"互动问答"
,
priority
=
6
)
//priorty 方法执行优先级
@Test
(
description
=
"互动问答"
,
priority
=
6
)
//priorty 方法执行优先级
...
...
src/test/java/com/kjj/qa/cases/Video.java
0 → 100644
View file @
07b70c06
package
com
.
kjj
.
qa
.
cases
;
public
class
Video
{
}
src/test/java/com/kjj/qa/config/BasicConfig.java
View file @
07b70c06
...
@@ -10,7 +10,7 @@ public class BasicConfig {
...
@@ -10,7 +10,7 @@ public class BasicConfig {
// 用户微信昵称
// 用户微信昵称
public
static
final
String
WECHAT_NAME
=
"小疙瘩人寿"
;
//
public
static
final
String
WECHAT_NAME
=
"小疙瘩人寿"
;
//
// 用户tku
// 用户tku
public
static
final
String
AGENT_TKU
=
"T3gM31f18jAW2
hsnKuESSiTGVBgxwzmmQEx5fjnfuwqrqqqMaeynB4hwVURPegVTAaaXPDgBjUUz4svAhM
"
;
public
static
final
String
AGENT_TKU
=
"T3gM31f18jAW2
jcSyseVf1XMu1Ek2DWqnFSrBQ9Wi1dJZuUVwTKoiEPVBWCg41PHVvnjkdWKiqGfinWZ4X
"
;
...
@@ -26,7 +26,7 @@ public class BasicConfig {
...
@@ -26,7 +26,7 @@ public class BasicConfig {
public
static
final
String
HOST
=
"https://kjj.m.duibatest.com.cn"
;
// "https://kjj.m.duiba.com.cn";
public
static
final
String
HOST
=
"https://kjj.m.duibatest.com.cn"
;
// "https://kjj.m.duiba.com.cn";
// *************** TKU ***************
// *************** TKU ***************
public
static
final
String
VISITOR_TKU
=
"T3gM31f18jAW
udwfTW6o9zs27w5xMjdhLHsKVP3cHo9Aj7Q4Fg7WyEkqXiKWWdLHka1jjGseU7JpgC2UaU
"
;
public
static
final
String
VISITOR_TKU
=
"T3gM31f18jAW
2hicRDxbwHFSuwA4MMVLLeHZ5G4yvb3kN3PeAJu6T4SYLjBqEdVj2rNy2gA2DQRHowL8c9
"
;
// *************** 素材ID ***************
// *************** 素材ID ***************
public
static
final
String
ARTICLE_CONTENTID
=
"Kj21NjM4NDc"
;
public
static
final
String
ARTICLE_CONTENTID
=
"Kj21NjM4NDc"
;
...
@@ -54,6 +54,8 @@ public class BasicConfig {
...
@@ -54,6 +54,8 @@ public class BasicConfig {
public
static
final
String
CHECKUNREAD
=
"/kjy/mp/chat/checkUnread"
;
public
static
final
String
CHECKUNREAD
=
"/kjy/mp/chat/checkUnread"
;
public
static
final
String
CONTENT_READ
=
"/kjy/mp/content/read"
;
// *************** 支付 ***************
// *************** 支付 ***************
public
static
final
String
PAY_GETMIDDLEDETAIL
=
"/kjy/mp/payMiddle/getMiddleDetail"
;
public
static
final
String
PAY_GETMIDDLEDETAIL
=
"/kjy/mp/payMiddle/getMiddleDetail"
;
...
@@ -151,6 +153,8 @@ public class BasicConfig {
...
@@ -151,6 +153,8 @@ public class BasicConfig {
public
static
final
String
ARTICLE_ENHANCEDCOLUMN_GETFAQS
=
"/kjy/mp/enhancedColumn/getFAQs"
;
public
static
final
String
ARTICLE_ENHANCEDCOLUMN_GETFAQS
=
"/kjy/mp/enhancedColumn/getFAQs"
;
public
static
final
String
ARTICLE_GETEXPLOSIONCONTENTLIST
=
"/kjy/mp/explosioncontent/getExplosionContentList"
;
// ************** 设置中心 ***************
// ************** 设置中心 ***************
public
static
final
String
SELLERCONFIG_EDITCONFIG
=
"/kjy/mp/sellerConfig/editConfig"
;
public
static
final
String
SELLERCONFIG_EDITCONFIG
=
"/kjy/mp/sellerConfig/editConfig"
;
...
...
target/test-classes/com/kjj/qa/cases/SellerCard.class
View file @
07b70c06
No preview for this file type
target/test-classes/com/kjj/qa/utils/DingTalkUtil.class
View file @
07b70c06
No preview for this file type
target/test-classes/com/kjj/qa/utils/NetworkUtil.class
View file @
07b70c06
No preview for this file type
test-output/report.html
View file @
07b70c06
This diff is collapsed.
Click to expand it.
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