ContributionsMost RecentMost LikesSolutionsRe: Groovy script - regex - conditional step (not working) Hi richie, Thank you very much for your response! I've tried almost everything you mentioned before I posted my question. But with all your suggstions I tried a few new things and found the problem! I'm blaming myself for not seeing it before. There was a space in the name of the second step (the names I posted were simplified). So the name of the second step in my script was not the same of the step name. Removed the space.... working like a charm :smileyhappy: Kind regards!! Groovy script - regex - conditional step (not working) In a testcase I want to check the XML result. If the regex (6 digits '- ' 7digits) is met then the script needs to jump to a different step then when the condition is not met. I've tried this: def input = context.expand( '${DataSource#DocumentID}' ) def pattern = /^[0-9]{6}-{1}[0-9]{7}$/ if (input =~ pattern) { testRunner.gotoStepByName("StepA") } else{ testRunner.gotoStepByName("StepB") } Unfortunately whatever I try my testcase continues with StepA. help is much appreciated! Solved