Rasilio
13 years agoNew Contributor
Multiple environment tests with JDBC and HTML steps
Ok I have a SOAPUI test that it can be run against multiple different environments, the problem is the test includes both HTML steps and JDBC steps along with SOAP steps. Obviously the JDBC connection and HTTP URL need to change in response to the environment selected for the test.
Is there some way that I can detect at runtime which environment was selected and then set which JDBC connection to use on the JDBC tests?
I'm thinking the easiest way to do this would be in a groovy step that reads a property to determine the environment then sets properties for the URL and JDBC connection.
The question I have is are there properties which exist that a groovy script could interact with than can do this?
Is there some way that I can detect at runtime which environment was selected and then set which JDBC connection to use on the JDBC tests?
I'm thinking the easiest way to do this would be in a groovy step that reads a property to determine the environment then sets properties for the URL and JDBC connection.
The question I have is are there properties which exist that a groovy script could interact with than can do this?