Forum Discussion
Jon
16 years agoContributor
omatzura wrote:
Hi Desmond,
this will be fixed in the upcoming release, for now you will have to "finish" the inner datasource manually, please try the following groovy script:
def dataSourceStep = testRunner.testCase.testSteps["Innert DataSource"]
dataSourceStep.finish( testRunner, context )
Hope this helps!
regards,
/Ole
eviware.com
I have a need to reset a datasource as well. I need it to create an initial batch of objects, then need to recycle it later on for a continous loop of adding/removing (stress testing) a group containing all of the initially created objects.
As teststep 1, I have "Unit Datasource" defined to pull data from Excel and populate a bunch of property values.
I then, after my initial batch of object additions, have this as my groovy script:
def dataSourceStep = testRunner.testCase.testSteps["Unit DataSource"]
dataSourceStep.finish( testRunner, context )
Perhaps there's more code I need to add before/after those lines? Anyway, the error I get when that step is reached:
Thu May 29 12:32:18 EDT 2008:ERROR:java.lang.NullPointerException: Cannot invoke method finish() on null object
What do I need to do? I'm evaluating soapUI Pro - looks really promising for what we need to do - so I'm still figuring all this stuff out and am probably making all sorts of beginner mistakes.
Related Content
- 3 years agoMoUddin
- 3 years agoLucian
- 5 years agompartyka
- 6 years agoamarnath1234
Recent Discussions
- 7 days agoemoya