Forum Discussion

tania90's avatar
tania90
Occasional Contributor
8 years ago

Hi, I am facing issues with comparing jdbc response with XML response, getting returned blank list.

 

 

10 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Can you post the raw response? By the way, your question is not clear. Please try to make it clear.
  • tania90's avatar
    tania90
    Occasional Contributor
    Any update on this. Waiting for your reply
  • tania90's avatar
    tania90
    Occasional Contributor
    Not able to parse XML rest response using XmlSlurper and add elements to a list.
    • nmrao's avatar
      nmrao
      Champion Level 3
      I see the xml response that you had attached and that is partial response. You did not mention what is exact problem. Would you please show the same?
      • tania90's avatar
        tania90
        Occasional Contributor

        The problem is I am not able to extract and put rest response elements ( First-name, Surname, Title ) in a list for comparison with jdbc response. 

         

        On executing the groovy script assertion, I am being returned blank list for rest response when XmlSlurper. With XMLparser also able to extract specific elements not all the elements in the list.

         

        Please suggest changes in my code

  • tania90's avatar
    tania90
    Occasional Contributor

    Hi

     

    Not able to sort the jdbcobject and XMLobject list for comparison