Alvaro Minguez
Alvaro Minguez

Reputation: 11

SoapUI update keystores/certificates for all projects

So we had a problem with ur soap projects Certificates and we have to update our file and pass for them

We have nearly 300 projects, is there any way to update them all at once?

Maybe a script for replacing in some xml files or smth?

Thanks

Upvotes: 0

Views: 178

Answers (1)

ou_ryperd
ou_ryperd

Reputation: 2133

The project files are plain XML files. When you know what you need to change, you can do it with replaceAll() in Groovy like this:

def projectFileA = new File('/path/to/your/soapui-project.xml')
def projectFileB = projectFileA.text.replaceAll('your old string', 'your new string')
projectfileA.text = projectfileB

Upvotes: 0

Related Questions