Forum Discussion

GMSoapUI's avatar
GMSoapUI
Contributor
11 years ago

[Re]Access a test steps ID, within TestRunListener.afterStep

Hi,

I need to run a programmatic check to determine if the current test step's index is the same as the test step count value for the current test case. So, for instance, if I have ten test steps and the current test step under execution has an index of five then the test would fail. Only when testRunner is executing the tenth test step would my condition be true. I already have the test step count but what I cannot determine is the index of the current test step under execution. Can anyone help me please? I specifically have to access this from with the TestRunListner.afterStep event listener.

Thank you.

3 Replies