Taylor_Pack
15 years agoOccasional Contributor
Access datasource with groovy
I can access a property from groovy but I seem to be missing the point on how to do the same thing with a datasource.
If my test has:
myDataSource
myGroovyScript
And the datasource has: field1, field2 field3
wouldn't the following print field3:
def ds = testRunner.testCase.testSteps['myDataSource'];
log.info "$a = " + ds.getPropertyValue("field3")
I have looked around a bunch but where would be the best place to find out more information like this?
If my test has:
myDataSource
myGroovyScript
And the datasource has: field1, field2 field3
wouldn't the following print field3:
def ds = testRunner.testCase.testSteps['myDataSource'];
log.info "$a = " + ds.getPropertyValue("field3")
I have looked around a bunch but where would be the best place to find out more information like this?