public List<TestResultData> process()
   {
      List<TestResultData> testResults = new ArrayList<TestResultData>();
      try {
         BufferedReader bufferReader = new BufferedReader(new FileReader(
                  resultFile));
         String line = null;
         while((line = bufferReader.readLine()) != null) {
            if (line.startsWith("RESULT:") && line.endsWith(".xml")) {
               String[] fieldsData = line.split("  ");
               TestResultData resultData = new TestResultData();
               String testNameField = fieldsData[2];
               String methodName = testNameField.substring(testNameField.lastIndexOf(".") + 1);
               String datasetId = (testNameField.indexOf("-") >= 0 ? testNameField.substring(
                        testNameField.indexOf("-") + 1,
                        testNameField.lastIndexOf(methodName) - 1) : null);
               int testClassendIndex = (datasetId == null ? testNameField.lastIndexOf(".")
                        : testNameField.indexOf("-"));
               String testClassName = testNameField.substring(0,
                        testClassendIndex);
               resultData.setTestName(testClassName
                        + (!"test".equals(methodName) ? "-" + methodName : "")); //append method name if TestGroup.
               resultData.setTestConfigId(datasetId);
               resultData.setTestStatus(toTestStatus(fieldsData[3]));
               String suiteNameField = fieldsData[4];
               if (QcConstants.QC_TESTSET_NAME != null) {
                  resultData.setTestSetName(QcConstants.QC_TESTSET_NAME);
               } else {
                  resultData.setTestSetName(suiteNameField.substring(0,
                           suiteNameField.lastIndexOf(".")));
               }
               testResults.add(resultData);
            }
         }
      } catch(FileNotFoundException fnfe) {
         log.error("File is not found :" + resultFile);
      } catch(IOException ioe) {
         log.error("Got an exception while reading file :", ioe);
      }
      return testResults;
   }