cancel
Showing results for 
Search instead for 
Did you mean: 

'recreate a default request from schema' does not seem to work as expected.

Highlighted
Super Contributor

'recreate a default request from schema' does not seem to work as expected.

Hello,
I have project with multiple test suites and multiple test cases. Recently development decided to update the WSDL definition by changing the namespaces. What I did to update my tests was to 'update the definition' and then go to each of my test cases and clicked on 'recreate a default request from schema'. While doing this one of the questions asked is 'keep existing values'. I would assume that if you choose 'Yes', it would keep the existing values. However, my request object gets replaced by the default request object from the wsdl definition. Is this expected ?

Secondly, I was thinking that it would probably be easier to open the XML file in notepad and just copy / replace the updated namespace. This would be the easiest and preferred way since testcases and property transfers are referencing the old namespace and need to be updated.

for instance the old namespace was

xmlns:user="http://coreservices.tvguide.com/v2/userprofile">

and the new name space is

xmlns:user="http://services.tvguide.com/v2/userprofile">

Can I just do a copy/replace in notepad ?

Thanks

Ali
1 REPLY 1
Highlighted
Super Contributor

Hi Ali,

you are right.. changing the namespace will result in this behaviour.. the "Keep existing values" will only work if the namespace is the same (and for elements that have not been renamed.. ).. I'll clarify this in user-guide for the next release.

Also, you are right regarding the replace in notepad, it should be much easier that way..

WSDL refactoring like you describe is another one of the top issues we want to support.. stay tuned 🙂

regards,

/Ole
eviware.com
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Want a fun and easy way to learn ReadyAPI and show off your skills? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get a full Raw JMS request

Participate!

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors