Forum Discussion
I am using the below snippet to create entity in keystores.
import com.eviware.soapui.settings.SSLSettings
import com.eviware.soapui.SoapUI
//Set
SoapUI.settings.setString (SSLSettings.KEYSTORE, pathToKeystore)
SoapUI.settings.setString (SSLSettings.KEYSTORE_PASSWORD, keystorePassword)
// get
SoapUI.settings.getString (SSLSettings.KEYSTORE, "Test SSL")
however, entity is not created successfully, and code is does not through any issues.
requirement is to create keystores with .jks file and use the same file while sending the request to server..
Any thoughts / workarounds.
- harinadha9 years agoOccasional Contributor
Okay fine. i still trying on this, please share your thought/inputs.
- harinadha9 years agoOccasional Contributor
Hi All,
I have done the following snippet which would help in creating entity in outgoing WS-Security configuration...
log.info "Start"
def project = testRunner.testCase.testSuite.project;
def WssC = project.getWssContainer();
if (!WssC.getOutgoingWssList().contains("TestAutomation-Layer7")) {
def owss = WssC.addOutgoingWss("TestAutomation-Layer7");
owss.setActor("TestAutomation");
owss.setPassword("TestAutomation");
owss.setUsername("TestAutomation");
owss.setMustUnderstand(true);
log.info "end"now, I wanted to extend it to have PasswordType as passwordtext and also want to have entity for timestamp.
Any thoughts around this?
Sorry for the confusion on the Key stores that I posted earlier. I will post update on key store once this WSS outgoing is done.
- ramnaresh9 years agoOccasional Visitor
I have WS-Security Configurations (secured xml request with jks certificate and key stores). I have manually sent one request and its working fine but when we parameterize for multiple requests it does not work.
http://pglezen.github.io/was-config/html/soapui.html. This whole process we would like to automate using groovy script in soapui. How I can do this using scripts? Can any body help me to resolve this issue. Thanks