switch environment doesn't switch the connection in DataSink TestStep
I'm using "Ready! API" Version 1.2.1, I use serveral Environments. I have a Datasink Teststep. There I set DataSink to "Data Connection". As Connection I use my JDBC Connection from the environment. When I switch the environment, the Connection in the DataSink Teststep does not switch. When I open the project on an other computer an then switche the environment. The JDBC doesn't witch. If I open the Teststep, the Connection ist set to "none".
I also wrote a groovy script: Here I see how the connection ist set. If I run the script and then change the environment, then I can see in the log, that the old environment is used.
Please help use, because we have problems, that some users deleted with our tests the wrong database.
Here the script:
for(testStep in context.testCase.getTestStepList()) {
if (testStep instanceof com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSinkTestStep) {
com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSinkTestStep myStep = testStep
log.info testStep.getDataSink().getConfig()
}
}