Forum Discussion

simonjdonnelly's avatar
simonjdonnelly
Contributor
10 years ago

JMSTestStep Assertion List

Hello,

 

I have started to use the JMS Test Step rather than a Soap Request to send and receive JMS messages.

 

I also use a number of assertions for which I would like to pull a report at the end using Groovy with the list of assertions along with its status.

 

I have been able to do this for all other steps using something along the lines of:

 

 

if ( testStep instanceof com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep  ||
testStep instanceof com.eviware.soapui.impl.wsdl.teststeps.JdbcRequestTestStep ||
testStep instanceof com.eviware.soapui.impl.wsdl.teststeps.AssertionTestStep )


for ( assertion in testStep.assertionList )
                    {
                        assertionStatus = assertion.status as String
                    }

 

 

...which has worked exactly how I want it to.

 

However, when I try adding:

 

testStep instanceof com.eviware.soapui.impl.wsdl.teststeps.JMSTestStep 

 

I receive the following error:

 

groovy.lang.MissingPropertyException: No such property: assertionList for class: com.eviware.soapui.impl.wsdl.teststeps.JMSTestStep error

 

I cannot find any documentation on the soapui api docs to help me with this issue. Has anyone else attempted anything similar?

5 Replies

  • nmrao's avatar
    nmrao
    Community Hero
    Which version of ReadyAPI are you using? JMS Test step? You mean, JMS Soap Request?
      • nmrao's avatar
        nmrao
        Community Hero

        Would you please add info like what exactly you were trying to achieve in groovy?

        May be one way to check based on the end point starts with jms, so you can say it is a jms transport.

        Provide specific details, that will be much easier if the above pointer does not help.

  • nmrao's avatar
    nmrao
    Community Hero

    You must also note that, the same request can be sent using http or jms channel, so request step Type is always WsdlTestRequestStep type.