title: How to create the Summary Report using groovy in soap ui for Project
body: <p>I am in the middle of preparing the HTML summary report for my soap ui project using groovy </p>
  
  <p>Using below tear down script I can read the test case status and name but am not sure about for project report since the tear down can be written under the test suite.</p>
  
  <p><code>enter code here</code>
  {Code}</p>
  
  <pre><code>def failedTestCases = 0
  
  runner.results.each { testCaseResult -&gt;
      def name = testCaseResult.testCase.name
      if(testCaseResult.status.toString() == 'FAILED'){
          failedTestCases ++
          log.info "$name has failed"
          testCaseResult.results.each{ testStepResults -&gt;
              testStepResults.messages.each() { msg -&gt; log.info msg } 
          }
      }else{
          log.info "$name works correctly"
      }
  }
  
  log.info "total failed: $failedTestCases"
  </code></pre>
  
  <p>{Code}</p>