Ask a Question

Getting error with dynamic extractions in Groovy script

SOLVED
nmrao
Community Hero

Re: Getting error with dynamic extractions in Groovy script

Thanks for trying it out.

Have updated the script in the above post to handle NPE.
Please take the updated one and check.


Regards,
Rao.
Hellotest
Contributor

Re: Getting error with dynamic extractions in Groovy script

Hello nmrao,

I am not able to find the updated post with NPE. Could you please check and post it again.

nmrao
Community Hero

Re: Getting error with dynamic extractions in Groovy script

Its trivial change. Edit was done in the code of the post. That's what I said. Just compare the code you tried.

You won't be able to notice the change unless you look at character by character.



Regards,
Rao.
Hellotest
Contributor

Re: Getting error with dynamic extractions in Groovy script

Thanks nmrao. It worked.

Could you suggest any library or link ,where I can refer more on these Json response  , as there would be more of these kind of scenario's to handle. Thank you in advance.

nmrao
Community Hero

Re: Getting error with dynamic extractions in Groovy script

Thank you for your patience and trying it out.
You can google for apache-groovy documentation.
Also you can find different sample on my github\ (shared in first reply) repo.

Appreciate if you mark "Accept the Solution" for the actual reply.


Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: