Kaydet (Commit) 0915c666 authored tarafından Liu Zhe's avatar Liu Zhe

#120394# - Modify PVT script to support Linux System

üst e945b491
...@@ -62,10 +62,11 @@ public class GenerateReports { ...@@ -62,10 +62,11 @@ public class GenerateReports {
String testScenario; String testScenario;
String testResult; String testResult;
while(line != null) while((line = in.readLine())!= null)
{ {
testScenario = line.substring(0, line.indexOf(":")); String temp = line.substring(9);
testResult = line.substring(line.indexOf(":") + 2); testScenario = temp.substring(0, temp.indexOf(":"));
testResult = temp.substring(temp.indexOf(":") + 2);
System.out.println(testScenario + " " + testResult); System.out.println(testScenario + " " + testResult);
if(map.containsKey(testScenario)) if(map.containsKey(testScenario))
{ {
...@@ -77,7 +78,7 @@ public class GenerateReports { ...@@ -77,7 +78,7 @@ public class GenerateReports {
array.add(testResult); array.add(testResult);
map.put(testScenario, array); map.put(testScenario, array);
} }
line = in.readLine(); // line = in.readLine();
} }
......
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