Forum Discussion

andrew_laser's avatar
andrew_laser
Occasional Contributor
14 years ago

selectFromCurrent() method causes soapUI crash

When executed in script assertion the following method makes soapUI 4.0.1 unstable or it just hangs (probability 50/50)
com.eviware.soapui.impl.wsdl.teststeps.assertions.basic.XPathContainsAssertion.selectFromCurrent()

Steps to reproduce:
1)Create "Test Request" test step
2)create XPath assertion (e.g. with name 'ResponseAssertion') and fill "XPath expression" field, leave "Expected Results" empty
3)create Script assertion and put it BEFORE XPath assertion (or AFTER)
4) put the following script into script assertion
context.getCurrentStep().getAssertionByName('ResponseAssertion').selectFromCurrent()
log.info "Assigned current result as expected"

5) try to run the test step

The results are unpredictable:
- Stack overflow popup. In this case "scripts log" displays hundreds of lines
INFO:Assigned current result as expected

- soapUI just hangs, and I need to use Task Manager to close it
- Null popup
- in any case soapUI becomes unstable
- Sometimes the Expected Result in 'ResponseAssertion' is set, sometimes it remains unchanged
  • Hi,

    thanks for reporting this (very strange) error - it should be fixed in the upcoming nightly build

    regards!

    /Ole
    SmartBear Software