Forum Discussion

paulie's avatar
paulie
Occasional Contributor
11 years ago

Use JDBC Connection in groovy?

Hi,
Is a database connection defined in JDBC Connections configured at the Project level accessible from a groovy script?

Also, is there any built in support for updating the data in a database or is it query only (via the JDBC teststep)?

Thanks,
Paul
  • Hello,

    We do not support custom code solutions.


    Is a database connection defined in JDBC Connections configured at the Project level accessible from a groovy script?


    Should be, is the database connection set in an environment at the project level?

    Also, is there any built in support for updating the data in a database or is it query only (via the JDBC teststep)?


    Yes, you should be able to update with a SQL statement using the JDBC test step.


    Regards,
    Marcus
    SmartBear Support