Forum Discussion

TELENET_NV_Supp_1's avatar
TELENET_NV_Supp_1
Occasional Contributor
16 years ago

Dynamic adjustment JDBC Request

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

2 Replies

  • 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
  • alibaba82's avatar
    alibaba82
    Super Contributor
    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.