10 March 2016

SoapUI XPath assert needs namespaces

If you are testing XML documents without namesapces, and you assert them with XPath expressions without namespaces, your XPath expressions (e.g. '//my-stuff') will not match.

An easy trick to make this work, is to add  '*:' (wildcard) namespace in front of your elements (e.g. '*://my-stuff')

SoapUI C:\WINDOWS\system32\config\systemprofile\soapui-settings.xml (Access is denied)

I installed SoapUI open source 5.2.1 on windows10 from the (default) windows 64 bit installer.

This installation considers C:\WINDOWS\system32\config\systemprofile as the home directory and insists on keeping his config there. Probably because it asks system administrators priviliges while installing and then derives the home directory from the system administor settings. When running SoapUI as your humble self afterwards and try to change any preferences you get

java.io.FileNotFoundException: C:\WINDOWS\system32\config\systemprofile\soapui-settings.xml (Access is denied)
 Uninstall and reinstall from the zip installer (from alternate platforms downloads). That one works from your user home directory as it should.