Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
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
马博
test-platform
Commits
b4744afd
Commit
b4744afd
authored
Dec 05, 2018
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
8875e60e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
pom.xml
pom.xml
+6
-0
DingdingResult.java
src/test/java/base/DingdingResult.java
+5
-1
Postman.java
src/test/java/base/Postman.java
+10
-0
No files found.
pom.xml
View file @
b4744afd
...
...
@@ -261,6 +261,12 @@
<artifactId>
guava
</artifactId>
<version>
21.0
</version>
</dependency>
<dependency>
<groupId>
cn.com.duiba.tool
</groupId>
<artifactId>
java-gitlab-api
</artifactId>
<version>
1.3.8
</version>
</dependency>
</dependencies>
<build>
...
...
src/test/java/base/DingdingResult.java
View file @
b4744afd
...
...
@@ -52,6 +52,10 @@ public class DingdingResult {
names
.
addAll
(
Arrays
.
asList
(
getNames
));
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"jobName"
,
getJob
());
changes
=
Postman
.
sendFindTestApp
(
params
);
/*从jenkins上获取项目变更
Map<String,String> resentChanges=BeTested.getChangesWithin(30,changeMap);
System.out.println(resentChanges);
if(resentChanges!=null&&resentChanges.size()>0){
...
...
@@ -77,7 +81,7 @@ public class DingdingResult {
if(changes.length()>140){
changes=changes.substring(0,141)+"……";
}
//project="tuia-media";
*/
this
.
total
=
total
;
this
.
passCount
=
passCount
;
this
.
skipCount
=
skipCount
;
...
...
src/test/java/base/Postman.java
View file @
b4744afd
...
...
@@ -25,6 +25,7 @@ public class Postman {
final
static
String
testPlatformUrl
=
"http://101.37.27.82:8080/insert"
;
final
static
String
miriaUrl
=
"http://miria-aliyun.duibatest.com.cn/autoTest/finish"
;
final
static
String
miriaUrlTesting
=
"http://miria-aliyun.duibatest.com.cn/autoTest/testing"
;
final
static
String
miriaUrlFindTestApp
=
"http://miria-aliyun.duibatest.com.cn/autoTest/findTestApp"
;
//dingdingUrl="http://www.json.cn/";
private
static
Logger
logger
=
LogManager
.
getLogger
(
Postman
.
class
);
...
...
@@ -67,6 +68,15 @@ public class Postman {
System
.
out
.
println
(
"miriaUrl:"
+
miriaUrlTesting
);
System
.
out
.
println
(
"miria响应结果:"
+
response
.
asString
());
}
public
static
String
sendFindTestApp
(
Map
result
){
Response
response
=
given
().
params
(
result
).
get
(
miriaUrlFindTestApp
);
System
.
out
.
println
(
"jobName:"
+
result
.
get
(
"jobName"
));
System
.
out
.
println
(
"miriaUrl:"
+
miriaUrlTesting
);
System
.
out
.
println
(
"miria响应结果:"
+
response
.
asString
());
String
value
=
response
.
jsonPath
().
getString
(
"value"
);
return
value
;
}
public
static
Boolean
getName
(){
Calendar
c
=
Calendar
.
getInstance
();
Date
date
=
new
Date
();
...
...
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