ContributionsMost RecentMost LikesSolutionsRe: Using a Datasource property for the Start and End value in DataGen Teststep Solved it using this, but is this the only way? def maxNumber = context.expand( '${DataSource#MaxNumber}' ) testRunner.testCase.getTestStepByName("IncrementTerminalId").getPropertyAt(0).getProperty().setEndValue(maxNumber); log.info testRunner.testCase.getTestStepByName("IncrementTerminalId").getPropertyAt(0).getProperty().getEndValue(); Using a Datasource property for the Start and End value in DataGen Teststep Is it possible to use a Datasource property value for the Start and End values in a DataGen Teststep (type Number)? I would like to pull the ranges from a Datasource Grid, this will be the outer loop. Within the Testcase, for one particular part the script will loop through the ranges generated by the DataGen teststep. Re: Datasource connections and switching environments Aaaaaah, I found it. I was editing the properties at project level. When I was checking the properties at environment level, I found that my freshly made DB connection had no parameters yet! So I added them there, and now it works. :-) Re: Datasource connections and switching environments Btw, the JDBC driver connection (com.microsoft.sqlserver.jdbc.SQLServerDriver) looks like this now: jdbc:sqlserver://${#Project#DBHost}:${#Project#DBPort};databaseName=${#Project#DBDatabase};user=${#Project#DBUsername};password=${#Project#DBPassword} (the last one shows up as PASS_VALUE) It works in the Database configuration screen. Re: Datasource connections and switching environments Thanks, I've set it up using your instruction: I've made a DB connection that is using the properties. Although the connection tests work, the Datasource in the TestSuite tells me that 'some connection settings are missing'. :( Any idea? Datasource connections and switching environments Hi, I have just started working with SOAPUI NG. I have successfully set up a project and testsuites with authorizations, database connections and environments and everything is working perfectly when I switch environments except for one thing: there doesn't seem to be a relation between environments and database datasource connections. I have several Testsuites with a database datasource, in a project with multiple test environments. I would assume (or hope) the database datasource connection switches to the corresponding DB when I switch environments too, but this isn't the case. I have to change it manually for each Testsuite every time I switch environments. Am I doing something wrong?