I often use testRunner.gotoStepByName to handle conditional workflow in my project.
So far it was to loop backwards in my testcase, as I try to use it to jump forward to a next step it does not seem to work.
Here the test layout
- step to get a 'type' information :
log.warn "\"$item_type\" not processed"
When I run my first groovy step it shows the warning and the jump to the last step
If I run the testCase, it shows the warning but it goes through the intermediate steps (next_step and after) !
Can anyone help me to understand what I've done wrong ?
Go to Solution.
Hi, thanks for replying ...
It is weird, it seems to work now.
I can't find out what was wrong in my initial process ...
View solution in original post
Can you please use this code so I can understand what happens?
case "a": break
log.info("item_type equals b")
log.info("item_type wasn't equal to any case")
What is it logged when running the test case now?
Were you able to identify the cause of the issue?
Anyway, it's great to hear that everything is working now!