Forum Discussion
EBaethke
11 years agoContributor
A more direct answer to your question:
// Get this test step
thisTestStep = testStepResult.getTestStep();
// Get a list of all test steps in the test case
myTestSteps = thisTestStep.getTestCase().getChildren();
// Set your desired index (Note: test steps are indexed from 0)
int desiredIndex = 4;
if ( thisTestStep == myTestSteps[desiredIndex]){
// Do something
}
Related Content
- 11 years agororyLIT