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
7fd23549
Commit
7fd23549
authored
Jul 25, 2020
by
Su-Yi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改声明方式
parent
356203fc
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
2074 additions
and
797 deletions
+2074
-797
Article.java
src/test/java/com/kjj/qa/cases/Article.java
+5
-5
Boss.java
src/test/java/com/kjj/qa/cases/Boss.java
+7
-6
CircleFriends.java
src/test/java/com/kjj/qa/cases/CircleFriends.java
+4
-4
GreetingCard.java
src/test/java/com/kjj/qa/cases/GreetingCard.java
+6
-6
SellerCard.java
src/test/java/com/kjj/qa/cases/SellerCard.java
+2
-2
BasicConfig.java
src/test/java/com/kjj/qa/config/BasicConfig.java
+1
-1
NetworkUtils.java
src/test/java/com/kjj/qa/utils/NetworkUtils.java
+15
-2
Article.class
target/test-classes/com/kjj/qa/cases/Article.class
+0
-0
report.html
test-output/report.html
+2034
-771
No files found.
src/test/java/com/kjj/qa/cases/Article.java
View file @
7fd23549
...
@@ -15,11 +15,11 @@ import java.util.Map;
...
@@ -15,11 +15,11 @@ import java.util.Map;
public
class
Article
{
public
class
Article
{
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
String
sid
=
""
;
// 加密的销售ID
public
String
sid
;
// 加密的销售ID
String
articleContentId
=
""
;
// 文章的contentId
public
String
articleContentId
;
// 文章的contentId
String
scid
=
""
;
// getScid后的文章id
public
String
scid
;
// getScid后的文章id
String
userId
=
""
;
// 代理人用户ID
public
String
userId
;
// 代理人用户ID
String
visitId
=
""
;
// 访问记录ID
public
String
visitId
;
// 访问记录ID
@BeforeClass
@BeforeClass
public
void
setUp
()
{
public
void
setUp
()
{
...
...
src/test/java/com/kjj/qa/cases/Boss.java
View file @
7fd23549
...
@@ -19,12 +19,13 @@ import static com.kjj.qa.config.BasicConfig.BOSS_USERINFO;
...
@@ -19,12 +19,13 @@ import static com.kjj.qa.config.BasicConfig.BOSS_USERINFO;
public
class
Boss
{
public
class
Boss
{
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
String
sellerId
=
""
;
public
String
sellerId
;
String
usellerId
=
""
;
public
String
usellerId
;
String
sids
=
""
;
public
String
sids
;
String
visitorame
=
""
;
public
String
visitorame
;
String
sellername
=
""
;
public
String
sellername
;
String
superiorname
=
""
;
public
String
superiorname
;
@BeforeClass
@BeforeClass
public
void
setUp
()
{
public
void
setUp
()
{
...
...
src/test/java/com/kjj/qa/cases/CircleFriends.java
View file @
7fd23549
...
@@ -17,10 +17,10 @@ import static com.kjj.qa.config.BasicConfig.*;
...
@@ -17,10 +17,10 @@ import static com.kjj.qa.config.BasicConfig.*;
public
class
CircleFriends
{
public
class
CircleFriends
{
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
int
firstTagId
=
0
;
public
int
firstTagId
;
String
contentId
=
""
;
public
String
contentId
;
String
tagId
=
""
;
public
String
tagId
;
String
tagName
=
""
;
public
String
tagName
;
@BeforeClass
@BeforeClass
public
void
setUp
()
{
public
void
setUp
()
{
...
...
src/test/java/com/kjj/qa/cases/GreetingCard.java
View file @
7fd23549
...
@@ -16,12 +16,12 @@ import static com.kjj.qa.config.BasicConfig.*;
...
@@ -16,12 +16,12 @@ import static com.kjj.qa.config.BasicConfig.*;
public
class
GreetingCard
{
public
class
GreetingCard
{
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
int
tagId
=
0
;
public
int
tagId
;
String
greetingName
=
""
;
public
String
greetingName
;
String
contentId
=
""
;
public
String
contentId
;
String
scid
=
""
;
public
String
scid
;
String
shareId
=
""
;
public
String
shareId
;
String
confId
=
""
;
public
String
confId
;
@BeforeClass
@BeforeClass
...
...
src/test/java/com/kjj/qa/cases/SellerCard.java
View file @
7fd23549
...
@@ -16,8 +16,8 @@ import java.util.Map;
...
@@ -16,8 +16,8 @@ import java.util.Map;
public
class
SellerCard
{
public
class
SellerCard
{
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
p
rivate
String
scid
=
""
;
p
ublic
String
scid
;
p
rivate
String
sellerId
=
""
;
p
ublic
String
sellerId
;
@BeforeClass
@BeforeClass
public
void
setUp
()
{
public
void
setUp
()
{
...
...
src/test/java/com/kjj/qa/config/BasicConfig.java
View file @
7fd23549
...
@@ -4,7 +4,7 @@ public class BasicConfig {
...
@@ -4,7 +4,7 @@ public class BasicConfig {
public
static
int
apiCount
;
//接口数量统计
public
static
int
apiCount
;
//接口数量统计
// 是否开启钉钉机器人推送
// 是否开启钉钉机器人推送
public
static
final
boolean
isPushReport
=
tru
e
;
//true
public
static
final
boolean
isPushReport
=
fals
e
;
//true
// 代理人 TKU
// 代理人 TKU
public
static
String
AGENT_TKU
=
null
;
public
static
String
AGENT_TKU
=
null
;
...
...
src/test/java/com/kjj/qa/utils/NetworkUtils.java
View file @
7fd23549
...
@@ -123,7 +123,14 @@ public class NetworkUtils {
...
@@ -123,7 +123,14 @@ public class NetworkUtils {
.
post
(
DINGTALKPATH
);
.
post
(
DINGTALKPATH
);
}
}
//带参的接口信息
/**
* 带参的接口完整信息
* @param params 接口参数
* @param path 接口路径
* @param errorMessage 自己打印的错误信息
* @param responseBody 返回的response
* @return 完整的接口信息
*/
public
String
message
(
Map
<
String
,
Object
>
params
,
String
path
,
String
errorMessage
,
String
responseBody
){
public
String
message
(
Map
<
String
,
Object
>
params
,
String
path
,
String
errorMessage
,
String
responseBody
){
return
"\n"
+
"path: "
+
path
+
return
"\n"
+
"path: "
+
path
+
"\n"
+
"params: "
+
params
+
"\n"
+
"params: "
+
params
+
...
@@ -131,7 +138,13 @@ public class NetworkUtils {
...
@@ -131,7 +138,13 @@ public class NetworkUtils {
"\n"
+
"response:"
+
responseBody
+
"\n"
;
"\n"
+
"response:"
+
responseBody
+
"\n"
;
}
}
//不带参的接口信息
/**
* 不带参的接口完整信息
* @param path 接口路径
* @param errorMessage 自己打印的错误信息
* @param responseBody 返回的response
* @return 完整的接口信息
*/
public
String
message
(
String
path
,
String
errorMessage
,
String
responseBody
){
public
String
message
(
String
path
,
String
errorMessage
,
String
responseBody
){
return
"\n"
+
"path: "
+
path
+
return
"\n"
+
"path: "
+
path
+
"\n"
+
"message: "
+
errorMessage
+
"\n"
+
"message: "
+
errorMessage
+
...
...
target/test-classes/com/kjj/qa/cases/Article.class
View file @
7fd23549
No preview for this file type
test-output/report.html
View file @
7fd23549
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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