groovy parameter in module 14 | Rest Assured Training

Rest Assured Training Forum

groovy parameter in module 14

E
Enem Ndubuisi Post 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

Instructor

Abhinav Reply on 29/03/2019

{} Should be used. Instead of ()

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

E
Enem Ndubuisi Reply on 30/03/2019

Thank you sir . It worked.

E
Enem Ndubuisi Reply on 30/03/2019

Thank you sir . It worked.