Forum Discussion
SmartBear_Suppo
Alumni
16 years agoHi,
Problem here is with Preparing JDBC statements at the beginning of TestCase for all DataSources (where the Property expansion is done ) . So your second DataSourceTestStep doesn’t actually get the result property value to be expended, from the first one. The workaround would be to add a GroovyTestStep to prepare statement for the particular DataSourceTestStep just before it’s run, for example for “DataSource - Validate Celebs” you would need to add GroovyTestStep before it with the next code:
Please let us know if this works.
Regards,
/Dragica
Eviware.com
Problem here is with Preparing JDBC statements at the beginning of TestCase for all DataSources (where the Property expansion is done ) . So your second DataSourceTestStep doesn’t actually get the result property value to be expended, from the first one. The workaround would be to add a GroovyTestStep to prepare statement for the particular DataSourceTestStep just before it’s run, for example for “DataSource - Validate Celebs” you would need to add GroovyTestStep before it with the next code:
testRunner.testCase.testSteps["DataSource - Validate Celebs"].prepare( testRunner, context )
Please let us know if this works.
Regards,
/Dragica
Eviware.com