Problem Using Message Content Assertion with diff endpoints

soapUI pro announcements and discussions

Problem Using Message Content Assertion with diff endpoints

Postby dhanses » 03 Jul 2012 01:52

It seems that the Message Content Assertion type sets the namespace to the current endpoint when the assertion is created which means the assertion fails against any other endpoint. Is there a way to use the Message Content Assertion so that RESTful APIs can be tested on multiple endpoints?
dhanses
User
 
Posts: 4
Joined: 12 Mar 2012 19:29

Re: Problem Using Message Content Assertion with diff endpoi

Postby SmartBear Support » 03 Jul 2012 09:44

Hi,

this is an unfortunate limitation in how soapUI generates XML from REST (JSON) responses - it will use the endpoint of the service as the namespace, which results in what you are seeing - ie XPath-assertions that are tied to namespaces will fail when switching endpoints. Unfortunately for the MCA assertion there is currently no workaround - you would have to use standard XPath assertions instead which would allow you to either create namespace-agnostic XPath statements or use property-expansion for the namespace.

Hope this helps!

/Ole
SmartBear Software
SmartBear Support
Administrator
Administrator
 
Posts: 6702
Joined: 16 Feb 2009 10:53

Re: Problem Using Message Content Assertion with diff endpoi

Postby Jaroslaw » 14 Aug 2012 20:30

Just ran into this. Are there plan to address this limitation in the future?
Jaroslaw
soapui pro users
soapui pro users
 
Posts: 27
Joined: 19 Jul 2012 19:26

Re: Problem Using Message Content Assertion with diff endpoi

Postby SmartBear Support » 16 Aug 2012 08:53

Hi,

yes - but unfortunately it hasn't been scheduled yet internally...

How would you like to see this solved? By being able to add a fixed namespace for the generated XML at the Service level? Or request level?

regards,

/Ole
SmartBear Software
SmartBear Support
Administrator
Administrator
 
Posts: 6702
Joined: 16 Feb 2009 10:53

Re: Problem Using Message Content Assertion with diff endpoi

Postby Jaroslaw » 30 Aug 2012 13:50

Service level would be good enough.
Jaroslaw
soapui pro users
soapui pro users
 
Posts: 27
Joined: 19 Jul 2012 19:26

Re: Problem Using Message Content Assertion with diff endpoi

Postby Unibet Support » 14 Sep 2012 16:50

Hi,
Iam also having the same issues.I dont know what other options we have got.It seems like there are not much support for REST in soapui

Regards
Unibet Support
User
 
Posts: 32
Joined: 10 Feb 2012 20:17

Re: Problem Using Message Content Assertion with diff endpoi

Postby SmartBear Support » 18 Sep 2012 15:26

Hi!

This is still and open issue for us (SOAPUI-2068) and currently there is not set date for fixing it.


--
Regards

Erik
SmartBear Sweden
SmartBear Support
Administrator
Administrator
 
Posts: 6702
Joined: 16 Feb 2009 10:53

Re: Problem Using Message Content Assertion with diff endpoi

Postby Jaroslaw » 18 Sep 2012 15:40

Thanks for the update.
Jaroslaw
soapui pro users
soapui pro users
 
Posts: 27
Joined: 19 Jul 2012 19:26


Return to soapUI Pro Support