Dynamic adjustment JDBC Request

This is the board for suggestions for new functionallity.

Dynamic adjustment JDBC Request

Postby TELENET NV Support » 26 Jul 2010 12:37

Hi,

We have multiple environments we would like to test and each environment has his own database.

To tackle this it would be helpfull to provide the enviroment as a property/parameter and the correct database is selected during testing via the testrunner.


Regards,

Bart
TELENET NV Support
Newbie
Newbie
 
Posts: 4
Joined: 09 Jul 2010 11:03

Re: Dynamic adjustment JDBC Request

Postby eviware support » 09 Aug 2010 17:18

Hi Bart,

we are working on the possibility to define environment specific properties, for now you could just define a property at the project level, for example "dbHost", and then override it from the command-line with the -P<project-property>=value argument, ie -PdbHost=some.otherhost.com

would that work?

regards!

/Ole
eviware.com
eviware support
Administrator
Administrator
 
Posts: 3149
Joined: 16 Feb 2009 10:53

Re: Dynamic adjustment JDBC Request

Postby alibaba82 » 10 Aug 2010 17:04

maybe this help.

In all our projects, we have a simple project load script. This script creates project level properties like server endpoints, database connection strings etc which are different for each environment. So in all our tests steps, endpoints, database connection strings are used by property expansion using variables defined in project.

This works with testrunner as well as the load script is always executed first.
alibaba82
soapui pro users
soapui pro users
 
Posts: 765
Joined: 18 Apr 2007 23:00


Return to soapUI Pro Feature Requests