groovy parameter in module 14 | Rest Assured Forum
E
Enem Ndubuisi Posted on 22/03/2019

Hi sir,

 

Do I need to define the groovy parameter it.name in module 14 before using it? Everything works fine but i get exceptions demanding i should define the groovy parameter before using it . 

Attached is the screen shot of my code.


A
Abhinav Replied on 29/03/2019

{} Should be used. Instead of ()

Ex: path("items.findAll{it.name=='Apple iPod touch 128GB'}.itemId")


E
Enem Ndubuisi Replied on 30/03/2019

Thank you sir . It worked.


E
Enem Ndubuisi Replied on 30/03/2019

Thank you sir . It worked.