calandale
13 years agoOccasional Contributor
Script behavior differs between command line & maven plugin
I'm seeing significantly different behavior between the way the testrunner.bat (and the UI) process scripts in relation to loading Keystores and how the maven plugin does. With 4.0.1 and (pro)4.0.2-SNAPSHOT (the 'stable' version returns other errors) the "load script" clearly runs, but it does not change the keystore used to run the script - seeing following errors:
11:29:23,921 ERROR [SoapUI] An error occured [Probably bad PKCS12 password: java.io.IOException: failed to decrypt safe contents entry: java.lang.ArithmeticException: / by zero], see error log for details
along with rather expected:
11:29:24,483 ERROR [WsdlSubmit] Exception in request: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
11:29:24,483 ERROR [SoapUI] An error occured [peer not authenticated], see error log for details
These tests run fine off the testrunner.bat, or the UI
The load script does the following:
import com.eviware.soapui.settings.SSLSettings;
import com.eviware.soapui.SoapUI;
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
SoapUI.settings.setString( SSLSettings.KEYSTORE, groovyUtils.projectPath + "mystore.p12" )
SoapUI.settings.setString( SSLSettings.KEYSTORE_PASSWORD, "myPassword" )
This is a work-around attempt, to make the settings dynamic on a bamboo server - a necessary matter for our organization.
The UI entered data also does not get loaded by the plugin (haven't tested that on the testrunner.bat)
11:29:23,921 ERROR [SoapUI] An error occured [Probably bad PKCS12 password: java.io.IOException: failed to decrypt safe contents entry: java.lang.ArithmeticException: / by zero], see error log for details
along with rather expected:
11:29:24,483 ERROR [WsdlSubmit] Exception in request: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
11:29:24,483 ERROR [SoapUI] An error occured [peer not authenticated], see error log for details
These tests run fine off the testrunner.bat, or the UI
The load script does the following:
import com.eviware.soapui.settings.SSLSettings;
import com.eviware.soapui.SoapUI;
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
SoapUI.settings.setString( SSLSettings.KEYSTORE, groovyUtils.projectPath + "mystore.p12" )
SoapUI.settings.setString( SSLSettings.KEYSTORE_PASSWORD, "myPassword" )
This is a work-around attempt, to make the settings dynamic on a bamboo server - a necessary matter for our organization.
The UI entered data also does not get loaded by the plugin (haven't tested that on the testrunner.bat)