Forum Discussion
Manimaran
12 years agoOccasional Contributor
I got you. but in some cases, i will have series of steps to be executed and series of steps to be disabled. please find below example. i have a test case like below.
TestCase1
---1-Groovy Script
---1-TestRequest
---1-ConditionalGoTo
---1-PropertyTransfer
---2-Groovy Script
---2-TestRequest
---2-ConditionalGoTo
---2-PropertyTransfer
---Groovy Validation Step
here, as i said before, for some test case, i will be disabling the series of steps i.e; from above, steps starts with '1- ...' and will run the steps starts with '2- ...'. so at this point of time, i have to know which TestRequest is run at this time, so that i can do validation based on that in the Groovy Validation Step. For this, from this case, more test steps are run ( '1- ...'), but i need to specifically get the name of the XML request step (here '1-TestRequest').
The reason behind is, i have lots of test steps inside my test case (based on my requirement). so i have to do in the above manner and i am looking this solution to get the executed test request name. Could you please help me, is there any ways that i can get from Groovy code?
TestCase1
---1-Groovy Script
---1-TestRequest
---1-ConditionalGoTo
---1-PropertyTransfer
---2-Groovy Script
---2-TestRequest
---2-ConditionalGoTo
---2-PropertyTransfer
---Groovy Validation Step
here, as i said before, for some test case, i will be disabling the series of steps i.e; from above, steps starts with '1- ...' and will run the steps starts with '2- ...'. so at this point of time, i have to know which TestRequest is run at this time, so that i can do validation based on that in the Groovy Validation Step. For this, from this case, more test steps are run ( '1- ...'), but i need to specifically get the name of the XML request step (here '1-TestRequest').
The reason behind is, i have lots of test steps inside my test case (based on my requirement). so i have to do in the above manner and i am looking this solution to get the executed test request name. Could you please help me, is there any ways that i can get from Groovy code?