Forum Discussion

srinannapa's avatar
12 years ago

List all the assertion on a Testcase

Hi , I created some assertions on a test case . But i'm unable to figure out how to list or view in a single place the assertions I've created until I execute the test case ? Is there any window to view all the assetions created on the reponse ?

-Srinivas N
  • Hi,

    For a test step you view in the assertions tab.
    http://www.soapui.org/Functional-Testin ... assertions

    For the entire test case you will have to do some groovy scripting as no "view all" window currently exists.
    From viewtopic.php?f=2&t=22685


    def soapStep = testRunner.testCase.testSteps["soap step 1"]
    for( assertion in soapStep.assertionList )
    {
    log.info "Assertion [" + assertion.label + "] has status [" + assertion.status + "]"
    for( e in assertion.errors )
    log.info "-> Error [" + e.message + "]"
    }
  • I think your suggestion would be helpful for me. I will let you know if this works for me Thanks and keep posting such a informative blogs.