cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can I do conditional branching in a Synthetics Test ?

Anupam_Kumar
Newcomer

If validation on a certain step fails I can choose an alternate path ?


For example - if validation on step 5 fails goto step 17 else goto step 23 or something equivalent to that

2 REPLIES 2

justin_hogue
Dynatrace Advisor
Dynatrace Advisor

Hello,

I haven't tried this myself but you may be able to achieve this by using JavaScript events. Through the use of the JavaScript API you should have the ability to skip execution of events to create a dynamic workflow. I'll provide a link with documentation on this below.


https://www.dynatrace.com/support/help/shortlink/id_brower-clickpath-events#javascript-


Hope this helps!

So I can only skip steps.... and 'skip them forward' ... Any clever way to 'jump back' a few steps ? Are negative numbers allowed as parameters to skip step function ?