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
eb7c5de7
Commit
eb7c5de7
authored
Feb 23, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改目录
parent
f5e48399
Changes
24
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
4462 additions
and
4756 deletions
+4462
-4756
compiler.xml
.idea/compiler.xml
+0
-8
misc.xml
.idea/misc.xml
+0
-7
Article.java
src/test/java/com/kjj/cases/basics/Article.java
+4
-3
Boss.java
src/test/java/com/kjj/cases/basics/Boss.java
+3
-3
BossTest.java
src/test/java/com/kjj/cases/basics/BossTest.java
+10
-10
CircleFriends.java
src/test/java/com/kjj/cases/basics/CircleFriends.java
+3
-3
GreetingCard.java
src/test/java/com/kjj/cases/basics/GreetingCard.java
+4
-4
Home.java
src/test/java/com/kjj/cases/basics/Home.java
+2
-2
Pay.java
src/test/java/com/kjj/cases/basics/Pay.java
+4
-4
SellerCard.java
src/test/java/com/kjj/cases/basics/SellerCard.java
+16
-16
Upload.java
src/test/java/com/kjj/cases/basics/Upload.java
+4
-4
Video.java
src/test/java/com/kjj/cases/basics/Video.java
+5
-0
BasicConfig.java
src/test/java/com/kjj/config/BasicConfig.java
+2
-2
ExtentTestNGIReporterListener.java
...st/java/com/kjj/config/ExtentTestNGIReporterListener.java
+8
-8
Novice.java
src/test/java/com/kjj/qa/cases/Novice.java
+0
-285
uploadCase.mp4
src/test/java/com/kjj/resource/uploadCase.mp4
+0
-0
Base58.java
src/test/java/com/kjj/utils/Base58.java
+1
-1
BaseUtils.java
src/test/java/com/kjj/utils/BaseUtils.java
+2
-2
BlowfishUtils.java
src/test/java/com/kjj/utils/BlowfishUtils.java
+1
-1
DingTalkUtils.java
src/test/java/com/kjj/utils/DingTalkUtils.java
+3
-3
MysqlUtils.java
src/test/java/com/kjj/utils/MysqlUtils.java
+1
-1
NetworkUtils.java
src/test/java/com/kjj/utils/NetworkUtils.java
+2
-2
testNG.xml
src/test/testNG.xml
+9
-9
report.html
test-output/report.html
+4378
-4378
No files found.
.idea/compiler.xml
View file @
eb7c5de7
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"CompilerConfiguration"
>
<component
name=
"CompilerConfiguration"
>
<annotationProcessing>
<profile
name=
"Maven default annotation processors profile"
enabled=
"true"
>
<sourceOutputDir
name=
"target/generated-sources/annotations"
/>
<sourceTestOutputDir
name=
"target/generated-test-sources/test-annotations"
/>
<outputRelativeToContentRoot
value=
"true"
/>
<module
name=
"kjj"
/>
</profile>
</annotationProcessing>
<bytecodeTargetLevel
target=
"1.8"
>
<bytecodeTargetLevel
target=
"1.8"
>
<module
name=
"kejiji"
target=
"1.8"
/>
<module
name=
"kejiji"
target=
"1.8"
/>
</bytecodeTargetLevel>
</bytecodeTargetLevel>
...
...
.idea/misc.xml
View file @
eb7c5de7
...
@@ -7,13 +7,6 @@
...
@@ -7,13 +7,6 @@
<component
name=
"JavaScriptSettings"
>
<component
name=
"JavaScriptSettings"
>
<option
name=
"languageLevel"
value=
"ES6"
/>
<option
name=
"languageLevel"
value=
"ES6"
/>
</component>
</component>
<component
name=
"MavenProjectsManager"
>
<option
name=
"originalFiles"
>
<list>
<option
value=
"$PROJECT_DIR$/pom.xml"
/>
</list>
</option>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_8"
default=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_8"
default=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/out"
/>
<output
url=
"file://$PROJECT_DIR$/out"
/>
</component>
</component>
...
...
src/test/java/com/kjj/
qa/case
s/Article.java
→
src/test/java/com/kjj/
cases/basic
s/Article.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
case
s
;
package
com
.
kjj
.
cases
.
basic
s
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.*;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
import
com.kjj.
qa.
utils.NetworkUtils
;
import
com.kjj.utils.NetworkUtils
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.Assert
;
...
@@ -488,4 +488,5 @@ public class Article {
...
@@ -488,4 +488,5 @@ public class Article {
network
.
agentCookies
.
put
(
"tku"
,
AGENT_TKU
);
//tku 切换为访客的
network
.
agentCookies
.
put
(
"tku"
,
AGENT_TKU
);
//tku 切换为访客的
apiCount
+=
13
;
apiCount
+=
13
;
}
}
}
}
src/test/java/com/kjj/
qa/case
s/Boss.java
→
src/test/java/com/kjj/
cases/basic
s/Boss.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
case
s
;
package
com
.
kjj
.
cases
.
basic
s
;
import
com.kjj.
qa.
utils.NetworkUtils
;
import
com.kjj.utils.NetworkUtils
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.Assert
;
import
org.testng.annotations.AfterClass
;
import
org.testng.annotations.AfterClass
;
...
@@ -13,7 +13,7 @@ import java.util.HashMap;
...
@@ -13,7 +13,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.*;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
public
class
Boss
{
public
class
Boss
{
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
...
...
src/test/java/com/kjj/
qa/case
s/BossTest.java
→
src/test/java/com/kjj/
cases/basic
s/BossTest.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
case
s
;
package
com
.
kjj
.
cases
.
basic
s
;
import
com.kjj.
qa.
utils.BaseUtils
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.
qa.
utils.NetworkUtils
;
import
com.kjj.utils.NetworkUtils
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.Assert
;
import
org.testng.annotations.AfterClass
;
import
org.testng.annotations.AfterClass
;
...
@@ -14,13 +14,13 @@ import java.util.HashMap;
...
@@ -14,13 +14,13 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
BOSS_CREATE
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
BOSS_CREATE
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
BOSS_DETAIL
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
BOSS_DETAIL
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
BOSS_EDITCONFIG
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
BOSS_EDITCONFIG
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
BOSS_ISDEMO
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
BOSS_ISDEMO
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
BOSS_PUBLISH
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
BOSS_PUBLISH
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
BOSS_RECEIVERLIST
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
BOSS_RECEIVERLIST
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
BOSS_TEAMTASKLIST
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
BOSS_TEAMTASKLIST
;
public
class
BossTest
{
public
class
BossTest
{
...
...
src/test/java/com/kjj/
qa/case
s/CircleFriends.java
→
src/test/java/com/kjj/
cases/basic
s/CircleFriends.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
case
s
;
package
com
.
kjj
.
cases
.
basic
s
;
import
com.kjj.
qa.
utils.NetworkUtils
;
import
com.kjj.utils.NetworkUtils
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.Assert
;
...
@@ -12,7 +12,7 @@ import java.util.HashMap;
...
@@ -12,7 +12,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.*;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
public
class
CircleFriends
{
public
class
CircleFriends
{
...
...
src/test/java/com/kjj/
qa/case
s/GreetingCard.java
→
src/test/java/com/kjj/
cases/basic
s/GreetingCard.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
case
s
;
package
com
.
kjj
.
cases
.
basic
s
;
import
com.kjj.
qa.
utils.BaseUtils
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.
qa.
utils.NetworkUtils
;
import
com.kjj.utils.NetworkUtils
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.Assert
;
import
org.testng.annotations.AfterClass
;
import
org.testng.annotations.AfterClass
;
...
@@ -12,7 +12,7 @@ import java.io.IOException;
...
@@ -12,7 +12,7 @@ import java.io.IOException;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.*;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
public
class
GreetingCard
{
public
class
GreetingCard
{
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
...
...
src/test/java/com/kjj/
qa/case
s/Home.java
→
src/test/java/com/kjj/
cases/basic
s/Home.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
case
s
;
package
com
.
kjj
.
cases
.
basic
s
;
import
com.kjj.
qa.
utils.NetworkUtils
;
import
com.kjj.utils.NetworkUtils
;
import
org.testng.annotations.*
;
import
org.testng.annotations.*
;
public
class
Home
{
public
class
Home
{
...
...
src/test/java/com/kjj/
qa/case
s/Pay.java
→
src/test/java/com/kjj/
cases/basic
s/Pay.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
case
s
;
package
com
.
kjj
.
cases
.
basic
s
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.*;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
import
static
io
.
restassured
.
RestAssured
.
given
;
import
static
io
.
restassured
.
RestAssured
.
given
;
import
com.kjj.
qa.
utils.BaseUtils
;
import
com.kjj.utils.BaseUtils
;
import
com.kjj.
qa.
utils.NetworkUtils
;
import
com.kjj.utils.NetworkUtils
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.Assert
;
import
org.testng.annotations.*
;
import
org.testng.annotations.*
;
...
...
src/test/java/com/kjj/
qa/case
s/SellerCard.java
→
src/test/java/com/kjj/
cases/basic
s/SellerCard.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
case
s
;
package
com
.
kjj
.
cases
.
basic
s
;
import
com.kjj.
qa.
utils.NetworkUtils
;
import
com.kjj.utils.NetworkUtils
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.Assert
;
import
org.testng.annotations.AfterClass
;
import
org.testng.annotations.AfterClass
;
...
@@ -12,20 +12,20 @@ import java.io.IOException;
...
@@ -12,20 +12,20 @@ import java.io.IOException;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
ISVIPSUBSCRIBE
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
ISVIPSUBSCRIBE
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_APPRAISELISTNEW
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
SELLERCARD_APPRAISELISTNEW
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_COMPANYLIST
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
SELLERCARD_COMPANYLIST
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_EDITBASEINFO
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
SELLERCARD_EDITBASEINFO
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_EDITMAJORGOODAUTH
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
SELLERCARD_EDITMAJORGOODAUTH
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_GETQUESTIONS
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
SELLERCARD_GETQUESTIONS
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_ISDISPLAYACTIVITY
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
SELLERCARD_ISDISPLAYACTIVITY
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_PERSONALPROFILE
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
SELLERCARD_PERSONALPROFILE
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_PRODUCTLIST
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
SELLERCARD_PRODUCTLIST
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_SELLERCARDCASENEW
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
SELLERCARD_SELLERCARDCASENEW
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
SELLERCARD_TOPOFDETAIL
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
SELLERCARD_TOPOFDETAIL
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
VERSION_INFO
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
VERSION_INFO
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
WECHAT_NAME
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
WECHAT_NAME
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.
apiCount
;
import
static
com
.
kjj
.
config
.
BasicConfig
.
apiCount
;
public
class
SellerCard
{
public
class
SellerCard
{
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
private
static
final
NetworkUtils
network
=
NetworkUtils
.
getInstance
();
...
...
src/test/java/com/kjj/
qa/case
s/Upload.java
→
src/test/java/com/kjj/
cases/basic
s/Upload.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
case
s
;
package
com
.
kjj
.
cases
.
basic
s
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.*;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
import
com.kjj.
qa.
utils.NetworkUtils
;
import
com.kjj.utils.NetworkUtils
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.Assert
;
import
org.testng.annotations.*
;
import
org.testng.annotations.*
;
...
@@ -117,7 +117,7 @@ public class Upload {
...
@@ -117,7 +117,7 @@ public class Upload {
@Test
(
description
=
"上传_本地视频"
,
priority
=
5
)
@Test
(
description
=
"上传_本地视频"
,
priority
=
5
)
public
void
上传
_
本地视频
()
throws
IOException
{
public
void
上传
_
本地视频
()
throws
IOException
{
//1.上传视频到oss
//1.上传视频到oss
String
videoFile
=
"src/test/java/com/kjj/
qa/
resource/uploadCase.mp4"
;
String
videoFile
=
"src/test/java/com/kjj/resource/uploadCase.mp4"
;
Response
response
=
network
.
postFileResponse
(
videoFile
,
UPLOAD_UPLOADVEDIO
);
Response
response
=
network
.
postFileResponse
(
videoFile
,
UPLOAD_UPLOADVEDIO
);
String
videoUrl
=
response
.
jsonPath
().
getString
(
"data.videoUrl"
);
String
videoUrl
=
response
.
jsonPath
().
getString
(
"data.videoUrl"
);
String
firstFrameUrl
=
response
.
jsonPath
().
getString
(
"data.firstFrameUrl"
);
String
firstFrameUrl
=
response
.
jsonPath
().
getString
(
"data.firstFrameUrl"
);
...
...
src/test/java/com/kjj/
qa/case
s/Video.java
→
src/test/java/com/kjj/
cases/basic
s/Video.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
case
s
;
package
com
.
kjj
.
cases
.
basic
s
;
public
class
Video
{
public
class
Video
{
...
...
src/test/java/com/kjj/
qa/
config/BasicConfig.java
→
src/test/java/com/kjj/config/BasicConfig.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
config
;
package
com
.
kjj
.
config
;
public
class
BasicConfig
{
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
// 代理人微信昵称
// 代理人微信昵称
public
static
final
String
WECHAT_NAME
=
"客集集-梦晨"
;
//true
public
static
final
String
WECHAT_NAME
=
"客集集-梦晨"
;
//true
...
...
src/test/java/com/kjj/
qa/
config/ExtentTestNGIReporterListener.java
→
src/test/java/com/kjj/config/ExtentTestNGIReporterListener.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
config
;
package
com
.
kjj
.
config
;
import
com.aventstack.extentreports.ExtentReports
;
import
com.aventstack.extentreports.ExtentReports
;
...
@@ -14,7 +14,7 @@ import org.testng.xml.XmlSuite;
...
@@ -14,7 +14,7 @@ import org.testng.xml.XmlSuite;
import
java.io.File
;
import
java.io.File
;
import
java.util.*
;
import
java.util.*
;
import
com.kjj.
qa.
utils.DingTalkUtils
;
import
com.kjj.utils.DingTalkUtils
;
public
class
ExtentTestNGIReporterListener
implements
IReporter
{
public
class
ExtentTestNGIReporterListener
implements
IReporter
{
// 生成的路径以及文件名
// 生成的路径以及文件名
...
@@ -79,29 +79,29 @@ public class ExtentTestNGIReporterListener implements IReporter {
...
@@ -79,29 +79,29 @@ public class ExtentTestNGIReporterListener implements IReporter {
// 统计SuiteResult下的数据
// 统计SuiteResult下的数据
int
passSize
=
r
.
getTestContext
().
getPassedTests
().
size
();
int
passSize
=
r
.
getTestContext
().
getPassedTests
().
size
();
int
failSize
=
r
.
getTestContext
().
getFailedTests
().
size
();
int
failSize
=
r
.
getTestContext
().
getFailedTests
().
size
();
int
skipSize
=
r
.
getTestContext
().
getSkippedTests
().
size
();
//
int skipSize = r.getTestContext().getSkippedTests().size();
suitePassSize
+=
passSize
;
suitePassSize
+=
passSize
;
suiteFailSize
+=
failSize
;
suiteFailSize
+=
failSize
;
suiteSkipSize
+=
skipSize
;
//
suiteSkipSize += skipSize;
if
(
failSize
>
0
)
{
if
(
failSize
>
0
)
{
resultNode
.
getModel
().
setStatus
(
Status
.
FAIL
);
resultNode
.
getModel
().
setStatus
(
Status
.
FAIL
);
}
}
resultNode
.
getModel
().
setDescription
(
resultNode
.
getModel
().
setDescription
(
String
.
format
(
"Pass: %s ; Fail: %s ;
Skip: %s ;"
,
passSize
,
failSize
,
skip
Size
));
String
.
format
(
"Pass: %s ; Fail: %s ;
"
,
passSize
,
fail
Size
));
}
}
buildTestNodes
(
resultNode
,
context
.
getFailedTests
(),
Status
.
FAIL
);
buildTestNodes
(
resultNode
,
context
.
getFailedTests
(),
Status
.
FAIL
);
buildTestNodes
(
resultNode
,
context
.
getSkippedTests
(),
Status
.
SKIP
);
//
buildTestNodes(resultNode, context.getSkippedTests(), Status.SKIP);
buildTestNodes
(
resultNode
,
context
.
getPassedTests
(),
Status
.
PASS
);
buildTestNodes
(
resultNode
,
context
.
getPassedTests
(),
Status
.
PASS
);
}
}
if
(
suiteTest
!=
null
)
{
if
(
suiteTest
!=
null
)
{
suiteTest
.
getModel
().
setDescription
(
suiteTest
.
getModel
().
setDescription
(
String
.
format
(
"Pass: %s ; Fail: %s ;
Skip: %s ;"
,
suitePassSize
,
suiteFailSize
,
suiteSkip
Size
));
String
.
format
(
"Pass: %s ; Fail: %s ;
"
,
suitePassSize
,
suiteFail
Size
));
if
(
suiteFailSize
>
0
)
{
if
(
suiteFailSize
>
0
)
{
suiteTest
.
getModel
().
setStatus
(
Status
.
FAIL
);
suiteTest
.
getModel
().
setStatus
(
Status
.
FAIL
);
}
}
}
}
String
context
=
String
.
format
(
"通过的用例数: %s\n失败的用例数: %s\n
跳过的用例数: %s\n
"
,
suitePassSize
,
suiteFailSize
,
suiteSkipSize
);
String
context
=
String
.
format
(
"通过的用例数: %s\n失败的用例数: %s\n"
,
suitePassSize
,
suiteFailSize
,
suiteSkipSize
);
try
{
try
{
DingTalkUtils
.
sendVal
(
context
);
DingTalkUtils
.
sendVal
(
context
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/test/java/com/kjj/qa/cases/Novice.java
deleted
100644 → 0
View file @
f5e48399
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/
qa/
resource/uploadCase.mp4
→
src/test/java/com/kjj/resource/uploadCase.mp4
View file @
eb7c5de7
File moved
src/test/java/com/kjj/
qa/
utils/Base58.java
→
src/test/java/com/kjj/utils/Base58.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
utils
;
package
com
.
kjj
.
utils
;
import
java.io.UnsupportedEncodingException
;
import
java.io.UnsupportedEncodingException
;
...
...
src/test/java/com/kjj/
qa/
utils/BaseUtils.java
→
src/test/java/com/kjj/utils/BaseUtils.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
utils
;
package
com
.
kjj
.
utils
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
import
org.testng.Assert
;
import
org.testng.Assert
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.*;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
...
src/test/java/com/kjj/
qa/
utils/BlowfishUtils.java
→
src/test/java/com/kjj/utils/BlowfishUtils.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
utils
;
package
com
.
kjj
.
utils
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
javax.crypto.Cipher
;
import
javax.crypto.Cipher
;
...
...
src/test/java/com/kjj/
qa/
utils/DingTalkUtils.java
→
src/test/java/com/kjj/utils/DingTalkUtils.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
utils
;
package
com
.
kjj
.
utils
;
import
io.restassured.response.Response
;
import
io.restassured.response.Response
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.*;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -17,7 +17,7 @@ public class DingTalkUtils {
...
@@ -17,7 +17,7 @@ public class DingTalkUtils {
+
context
+
context
+
"总接口数:"
+
apiCount
+
"\n"
+
"总接口数:"
+
apiCount
+
"\n"
+
"报告地址: http://10.172.58.199/view/kkk/job/kejiji_interface/HTML_20Report\n"
+
"报告地址: http://10.172.58.199/view/kkk/job/kejiji_interface/HTML_20Report\n"
+
"@
李浩弘 @张震 @别湘灵 @张艳玲 @张慧锋
"
;
+
"@
张慧锋 @张艳玲 @张震 @别湘灵
"
;
System
.
out
.
println
(
context
);
System
.
out
.
println
(
context
);
...
...
src/test/java/com/kjj/
qa/
utils/MysqlUtils.java
→
src/test/java/com/kjj/utils/MysqlUtils.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
utils
;
package
com
.
kjj
.
utils
;
import
java.sql.*
;
import
java.sql.*
;
...
...
src/test/java/com/kjj/
qa/
utils/NetworkUtils.java
→
src/test/java/com/kjj/utils/NetworkUtils.java
View file @
eb7c5de7
package
com
.
kjj
.
qa
.
utils
;
package
com
.
kjj
.
utils
;
import
static
com
.
kjj
.
qa
.
config
.
BasicConfig
.*;
import
static
com
.
kjj
.
config
.
BasicConfig
.*;
import
static
io
.
restassured
.
RestAssured
.*;
import
static
io
.
restassured
.
RestAssured
.*;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
...
...
src/test/testNG.xml
View file @
eb7c5de7
...
@@ -13,47 +13,47 @@
...
@@ -13,47 +13,47 @@
<!-- </test>-->
<!-- </test>-->
<test
preserve-order=
"true"
name=
"支付"
>
<test
preserve-order=
"true"
name=
"支付"
>
<classes>
<classes>
<class
name=
"com.kjj.
qa.case
s.Pay"
/>
<class
name=
"com.kjj.
cases.basic
s.Pay"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"名片"
>
<test
preserve-order=
"true"
name=
"名片"
>
<classes>
<classes>
<class
name=
"com.kjj.
qa.case
s.SellerCard"
/>
<class
name=
"com.kjj.
cases.basic
s.SellerCard"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"上传"
>
<test
preserve-order=
"true"
name=
"上传"
>
<classes>
<classes>
<class
name=
"com.kjj.
qa.case
s.Upload"
/>
<class
name=
"com.kjj.
cases.basic
s.Upload"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"文章"
>
<test
preserve-order=
"true"
name=
"文章"
>
<classes>
<classes>
<class
name=
"com.kjj.
qa.case
s.Article"
/>
<class
name=
"com.kjj.
cases.basic
s.Article"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"发圈"
>
<test
preserve-order=
"true"
name=
"发圈"
>
<classes>
<classes>
<class
name=
"com.kjj.
qa.case
s.CircleFriends"
/>
<class
name=
"com.kjj.
cases.basic
s.CircleFriends"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"boss看板"
>
<test
preserve-order=
"true"
name=
"boss看板"
>
<classes>
<classes>
<class
name=
"com.kjj.
qa.case
s.Boss"
/>
<class
name=
"com.kjj.
cases.basic
s.Boss"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"boss看板演示版"
>
<test
preserve-order=
"true"
name=
"boss看板演示版"
>
<classes>
<classes>
<class
name=
"com.kjj.
qa.case
s.BossTest"
/>
<class
name=
"com.kjj.
cases.basic
s.BossTest"
/>
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"贺卡"
>
<test
preserve-order=
"true"
name=
"贺卡"
>
<classes>
<classes>
<class
name=
"com.kjj.
qa.case
s.GreetingCard"
/>
<class
name=
"com.kjj.
cases.basic
s.GreetingCard"
/>
</classes>
</classes>
</test>
</test>
<!-- 监听器-->
<!-- 监听器-->
<listeners>
<listeners>
<listener
class-name=
"com.kjj.
qa.
config.ExtentTestNGIReporterListener"
/>
<listener
class-name=
"com.kjj.config.ExtentTestNGIReporterListener"
/>
</listeners>
</listeners>
</suite>
</suite>
<!-- Suite -->
<!-- Suite -->
...
...
test-output/report.html
View file @
eb7c5de7
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