问题
Good day, collegues. In my project i met some problem. In one of flows i have made two http_requests and then have parsed those responses with groovy transformer.
First groovy script:
Second groovy script:
The first groovy script works fine. But the second script don't do anything. Like it was ignored.
Both http_responses's structures are similar.
Why the second groovy script can have been ignored?
回答1:
Omg!( I am very sorry, this was my very stupid mistake. The reason is - 'break' must be in IF scope... In the first http_response sought value is the first item in collection, that's why it works.
p.s. shame...
来源:https://stackoverflow.com/questions/38616714/groovy-transformer-was-like-ignored