title: How to get assertion value using groovy script
body: <p>I have one test step which contains two assertion.</p>
  
  <ul>
  <li>Not SOAP Fault</li>
  <li>Contains. The Condition is that response should contain "Message Sent Successfully"</li>
  </ul>
  
  <p>Now I have one groovy script, from where I am executing this test step. Using this groovy script I need to print assertion name, Value and Status. Below is the code I have written:</p>
  
  <pre><code>testStepSrc = testCase.getTestStepByName(testName)
  Assertioncounter = testStepSrc.getAssertionList().size()
  for (AssertionCount in 0..Assertioncounter-1)
  {
  log.info("Assertion :" + testStepSrc.getAssertionAt(AssertionCount).getName() + " :: " + testStepSrc.getAssertionAt(AssertionCount).getStatus())
  
  error = testStepSrc.getAssertionAt(AssertionCount).getErrors()
  if (error != null)
     {
      log.error(error[0].getMessage())
     }
   }
  </code></pre>
  
  <p>but in output it is displaying like:</p>
  
  <pre><code>Wed Sep 04 17:21:11 IST 2013:INFO:Assertion :Not SOAP Fault :: VALID
  Wed Sep 04 17:21:11 IST 2013:INFO:Assertion :Contains :: VALID
  </code></pre>
  
  <p>As you can see, I am able to print assertion name and status but not the value of 'Contains' assertion. Please help me how to get the value of a particular assertion.</p>
  
  <p>Thanks in advance.</p>