Commit c5340f56 authored by 马博's avatar 马博

ui update

parent f6d4c08d
......@@ -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:"+runs);
runs =this.env.getProperty(run+"."+type);
System.out.println("(runs+\".\"+type):"+run+"."+type);
System.out.println("runs:"+run);
if ((runs+"."+type).equals("Ui.group"))return "自动化测试";
return new String(runs.getBytes("ISO-8859-1"), "UTF-8");//ISO-8859-1
}
public static void main(String[] args) throws UnsupportedEncodingException {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment