public class CurrentStepRunIndexProvider implements DynamicPropertyResolver.ValueProvider {
@Override
public String getValue(PropertyExpansionContext context) {
if( context instanceof WsdlTestRunContext)
{
TestRunner runner = ((WsdlTestRunContext) context).getTestRunner();
if( runner instanceof AbstractTestCaseRunner) {
List<TestStepResult> resultList = ((AbstractTestCaseRunner) runner).getResults();
TestStep currentStep = ((WsdlTestRunContext) context).getCurrentStep();
int ix = 0;