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
c5340f56
Commit
c5340f56
authored
Jan 09, 2019
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui update
parent
f6d4c08d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
DingdingResult.java
src/test/java/base/DingdingResult.java
+8
-8
No files found.
src/test/java/base/DingdingResult.java
View file @
c5340f56
...
...
@@ -87,7 +87,7 @@ public class DingdingResult {
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
Object
[]
mygroup
=
new
Object
[
1
];
String
[]
mygroups
=
new
String
[
1
];
mygroups
[
0
]=
getByRun
(
run
,
"
group
"
);
mygroups
[
0
]=
getByRun
(
run
,
"
t
"
);
System
.
out
.
println
(
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~group:"
+
mygroups
[
0
]);
result
.
put
(
"group"
,
mygroups
);
result
.
put
(
"project"
,
project
);
...
...
@@ -138,13 +138,13 @@ public class DingdingResult {
return
getByRun
(
run
,
"job"
);
}
public
String
getByRun
(
String
run
,
String
type
)
throws
UnsupportedEncodingException
{
run
=
run
.
substring
(
run
.
indexOf
(
"_"
)+
1
,
run
.
indexOf
(
"."
));
System
.
out
.
println
(
"before run:"
+
run
);
run
=
this
.
env
.
getProperty
(
run
+
"."
+
type
);
System
.
out
.
println
(
"(run+\".\"+type):"
+
run
+
"."
+
type
);
System
.
out
.
println
(
"run:"
+
run
);
if
((
run
+
"."
+
type
).
equals
(
"Ui.group"
))
return
"自动化测试"
;
return
new
String
(
run
.
getBytes
(
"ISO-8859-1"
),
"UTF-8"
);
//ISO-8859-1
String
runs
=
run
.
substring
(
run
.
indexOf
(
"_"
)+
1
,
run
.
indexOf
(
"."
));
System
.
out
.
println
(
"before run:"
+
run
s
);
run
s
=
this
.
env
.
getProperty
(
run
+
"."
+
type
);
System
.
out
.
println
(
"(run
s
+\".\"+type):"
+
run
+
"."
+
type
);
System
.
out
.
println
(
"run
s
:"
+
run
);
if
((
run
s
+
"."
+
type
).
equals
(
"Ui.group"
))
return
"自动化测试"
;
return
new
String
(
run
s
.
getBytes
(
"ISO-8859-1"
),
"UTF-8"
);
//ISO-8859-1
}
public
static
void
main
(
String
[]
args
)
throws
UnsupportedEncodingException
{
...
...
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