Forum Discussion

mgupta1405's avatar
mgupta1405
Occasional Contributor
14 years ago

Select test step type from groovy script

I am writing a groovy script inside a test case and I want to know the type of all test steps that are present in my test case. Like if test step is a groovy script then I should be able to get to know this or if it is SOAP request then I should get to know that it is a SOAP request.
I need to perform different behavior for different test step types.

Please provide necessary groovy script code for this.

Thanks
Mohit

1 Reply

  • ajcapri's avatar
    ajcapri
    Occasional Contributor
    Use testRunner.testCase.getTestStepsOfType()