Extraction in module 14 returns null | Rest Assured Forum
E
Enem Ndubuisi Posted on 08/03/2019

Hi 

Trying to extract a value from a itemId key in a json file , the code seems all right but returns a null instead of the value of itemId key after running.

attached are my screen shots.


E
Enem Ndubuisi Replied on 08/03/2019

additional screen shots 

Responsive image

E
Enem Ndubuisi Replied on 08/03/2019

more screen shots

Responsive image

A
Abhinav Replied on 08/03/2019

You can't extract Key "name" via this : path("name");

Correct path is : path("items{0}.name");


E
Enem Ndubuisi Replied on 08/03/2019

Thanks for quick response .

 

i have tried it but get this error.

Responsive image

E
Enem Ndubuisi Replied on 08/03/2019

Hi,

A clearer Screen shots

Responsive image

E
Enem Ndubuisi Replied on 10/03/2019

Hi sir,

still unresolved .

Responsive image

A
Abhinav Replied on 29/03/2019

Sorry for the confusion earlier. 

Correct path is : path("items[1].name");