Ejemplo n.º 1
0
 public static String getRunDescription(TestCaseList l) {
   for (Iterator i = l.getList().iterator(); i.hasNext(); ) {
     TestCaseEdit tce = (TestCaseEdit) i.next();
     if (tce.getTestable() instanceof TestRunnerTestCaseAdapter) {
       TestRunnerTestCaseAdapter a = (TestRunnerTestCaseAdapter) tce.getTestable();
       String description = a.getTestRunnerTestCase().getTestRun().getDescription();
       if (description != null && description.length() > 0) {
         return "  <desc>" + StringUtil.escapeHTML(description) + "</desc>" + StringUtil.newLine;
       }
       return "";
     }
   }
   return "";
 }
Ejemplo n.º 2
0
 public static String getRunWorkspace(TestCaseList l) {
   for (Iterator i = l.getList().iterator(); i.hasNext(); ) {
     TestCaseEdit tce = (TestCaseEdit) i.next();
     if (tce.getTestable() instanceof TestRunnerTestCaseAdapter) {
       TestRunnerTestCaseAdapter a = (TestRunnerTestCaseAdapter) tce.getTestable();
       File workspace = a.getTestRunnerTestCase().getTestRun().getWorkspace();
       if (workspace != null) {
         return "  <workspace file=\""
             + StringUtil.escapeHTML(workspace.toString())
             + "\"/>"
             + StringUtil.newLine;
       }
       return "";
     }
   }
   return "";
 }
Ejemplo n.º 3
0
 public String getTestXML(TestRunnerTestCaseAdapter adapter) {
   return adapter.getTestRunnerTestCase().toXml();
 }