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
0a480f1b
Commit
0a480f1b
authored
Aug 05, 2019
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
04a21001
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
22 deletions
+26
-22
DingdingResult.java
src/test/java/base/DingdingResult.java
+26
-22
No files found.
src/test/java/base/DingdingResult.java
View file @
0a480f1b
...
...
@@ -151,40 +151,44 @@ public class DingdingResult {
System
.
out
.
println
(
"run+\".\"+type:"
+
run
+
"."
+
type
);
if
((
run
+
"."
+
type
).
equals
(
"ui.group"
))
return
"ui自动化测试"
;
run
=
this
.
env
.
getProperty
(
run
+
"."
+
type
);
// System.out.println("(runs+\".\"+type):"+run+"."+type);
// System.out.println("runs:"+run);
System
.
out
.
println
(
"run:"
+
run
);
return
new
String
(
run
.
getBytes
(
"ISO-8859-1"
),
"UTF-8"
);
//ISO-8859-1
String
returnString
=
new
String
(
run
.
getBytes
(
"ISO-8859-1"
),
"UTF-8"
);
//ISO-8859-1
return
returnString
;
}
public
static
void
main
(
String
[]
args
)
throws
UnsupportedEncodingException
{
String
s
=
"**/*_signTest.java"
;
s
=
s
.
substring
(
s
.
indexOf
(
"_"
)+
1
,
s
.
indexOf
(
"."
));
System
.
out
.
println
(
s
);
// String s = "**/*_signTest.java";
// s = s.substring(s.indexOf("_")+1,s.indexOf("."));
// System.out.println(s);
//
//
// ApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
// Environment env=context.getBean(Environment.class);
// String ss = env.getProperty("pluginTest.names");
// System.out.println(ss =new String(ss.getBytes("ISO-8859-1"), "UTF-8"));
//
//
// String run = "**/*_signTest.java";
// String type = "names";
// run = run.substring(run.indexOf("_")+1, run.indexOf("."));
// run =env.getProperty(run+"."+type);
// System.out.println(run = new String(run.getBytes("ISO-8859-1"), "UTF-8"));
// String[] sp =run.split(",");
// List<String> list = Arrays.asList(sp);
// List<String> names = new ArrayList<>();
// names.addAll(list);
ApplicationContext
context
=
new
AnnotationConfigApplicationContext
(
Config
.
class
);
Environment
env
=
context
.
getBean
(
Environment
.
class
);
String
ss
=
env
.
getProperty
(
"
pluginTest.names
"
);
String
ss
=
env
.
getProperty
(
"
Cms_ui.group
"
);
System
.
out
.
println
(
ss
=
new
String
(
ss
.
getBytes
(
"ISO-8859-1"
),
"UTF-8"
));
String
run
=
"**/*_signTest.java"
;
String
type
=
"names"
;
run
=
run
.
substring
(
run
.
indexOf
(
"_"
)+
1
,
run
.
indexOf
(
"."
));
run
=
env
.
getProperty
(
run
+
"."
+
type
);
System
.
out
.
println
(
run
=
new
String
(
run
.
getBytes
(
"ISO-8859-1"
),
"UTF-8"
));
String
[]
sp
=
run
.
split
(
","
);
List
<
String
>
list
=
Arrays
.
asList
(
sp
);
List
<
String
>
names
=
new
ArrayList
<>();
names
.
addAll
(
list
);
}
}
\ No newline at end of file
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