Forum Discussion

Sandyapitester's avatar
Sandyapitester
Frequent Contributor
10 years ago

SOAPUI PRO response Node value property transer

Open source need to transfer the response value in the property but the problem is 

 

response having

{

username:XYX

Firstname:ABX

Lastname:ZZZ

}

{

username:zya

Firstname:fff

Lastname:xxx

}

 

{

username:qqq

Firstname:ooo

Lastname:oooo

}

 

here need to pass only XYX value in my property and oooo too

 

if u know the solution help me to fix it

 

 

problem is every execution response node value getting added

 

Ex: if am $[8].XYX

 

my new execution my value will point the different result

 

because every day new account getting added

 

Need to get only XYX reponse value where ever in mt response  

 

 

10 Replies

  • The title of your post says "SoapUI Pro" but the body says Open Source. Which one are you using?

    • Sandyapitester's avatar
      Sandyapitester
      Frequent Contributor

      Both am using SoapUI pro NG 1.8 and open source 5.2.1

       

       

      • Sandyapitester's avatar
        Sandyapitester
        Frequent Contributor

        .andExpect(jsonPath("$.username", is("XYX")))

         

        This is not working 

         

        if some one can help me to fix this issue 

         

        because I cant give element value here 

         

        .andExpect(jsonPath("$[0].username", is("XYX")))

         

        because element value will change every time

         

        any solution foe this issue