cancel
Showing results for 
Search instead for 
Did you mean: 

Need to change a single digit in about 300 scripts!

Highlighted
Occasional Contributor

Need to change a single digit in about 300 scripts!

Isn't life wonderful?

This morning I was given the task of repairing about 300 scripts which have the following problem:

the soap requests all contain the following in the first line

xmlns="http://sucheProduktUeberAngebot_v02

it needs to be changed to

xmlns="http://sucheProduktUeberAngebot_v03

The requests  are all in the same soapui project.


I have perl installed on my windows pc, but I'm not a perl programmer. On the other hand, I am sure my brain will melt if I do all 300 by hand....
3 REPLIES 3
Highlighted

Re: Need to change a single digit in about 300 scripts!

Hi DGramß,


You can make your life easier by using some of the text editors or similar tools that are freely available online. Two tools come to mind - UltraEdit and PowerGrep.

With proper tools you can do wonders.
Let us know if you ended up enjoying that seemingly tedious task.


Cheers!
/Nenad Nikolic a.k.a. Shonzilla

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️Please mark my answer as a solution if it was helpful
Highlighted

Re: Need to change a single digit in about 300 scripts!

Hi DGramß,

Excuse me for butting in...  Smiley

But shouldn't that change have been caused by an update to the WSDL?

If the namespace is changed the WSDL should be changed as well.

So this would mean that the "update definition" functionality should work well.

Look here:

http://www.soapui.org/userguide/interfaces/index.html

Remember to check the two bottom check boxes in the Update Defentition Popup. Actually "Update TestRequests" is the only one necessary, but "Open Request List" will show you how many requests has been changed.

If you have to do this without having a WSDL change...

That's kind of an error isn't it? The namespace should be reflected in the WSDL.

Best Regards
Niclas
Product Guy for Ready! API, SoapUI and all things API
Highlighted
Occasional Contributor

Re: Need to change a single digit in about 300 scripts!

Thanks for the replies guys. This newbie did not realise that all the requests are stored in a single xml project file, so it was possible to do the changes to a single file for each of the affected projects using a standard text editor.

So I did not have to follow the instruction I was given to change each request individually by hand from the xml test frontend

What nreimertz is saying is basically true, but the server-side setup is beyond my control and not standard.

And like Shakespeare said, all's well that ends well.
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite
Top Kudoed Authors