caz88
6 years agoOccasional Contributor
How to access method getStepTestByName in a teardown script
Hi Folks,
Is there a reason that this:
def dataSourceStep = testRunner.testCase.getTestStepByName("DataSource")
Doesn't work in a teardown script?
Using a Groovy script I have modified my datasource path to point to a temporary file if a particular global property exists which I execute in a setup script.
I am wanting to revert the datasource back to it's original version after it has been run. I am doing it at the testcase level but is there a way to do it at the project level?
Any input would be appreciated!