Forum Discussion

ripplegupta's avatar
ripplegupta
Contributor
8 years ago

Which method in groovy can give me exact sql query submitted for step jdbc and data source.

Hi,

 

My project has below test steps ::

* JDBC

* Data Source (Data Connection)

* Data Source (JDBC)

Also i have event handler configured to run after each step "TestRunListener.afterStep" that has groovy script to access data of each above step.

 

Which method will give me exact query submitted to server ?

i am trying "testStepResult.getQuery()".

 

Let me know if anyone has tried this, thanks a lot.