Ask a Question

Conditional GoTo Test Step

Occasional Contributor

Conditional GoTo Test Step

Sorry I am new to readyapi, I am trying to add GoTo step to my test case, but the api I am trying to test is restapi, when I try to add GoTo step to my test case, it shows that I need to add xpath expression but it is restapi. Is there anyway to add jsonpath instead of xpath without groovy script?




Community Hero

Hey @kadir,

You mention youre testing a REST API like its a problem for the Conditional Goto step. Can you clarify your point?

Currently you cant use Conditional Goto with json, it still only recognises xpath ( although sooner or later Smartbear will need to fix this!), so groovy is your only option at the moment.

If you describe your use case and provide relevant json instances (or jsonpath) im sure one of the scripters on the forum would be able to help with the groovy. What you want is probably only 3 or 4 lines of groovy (thats a guess, but conditional goto step doesnt support very complex stuff if i remember correctly)


if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Showing results for 
Search instead for 
Did you mean: