Contributions
Access json array object and it's attributes based on specific condition
From jdbc request I have stored a random transaction reference in custom properties at test case level. Now I have to search that transaction reference in the json response and validates it's attributes values against jdbc response Json response {[ Transactions{ Tid : 123 Amount : 2000 } { Tid : 456 Amount : 10000 } ]} XML response <Rows> <Row = 1> <Tid>123</Tid> <Amount>2000</Amount> </Row> <Rows> Please suggest814Views0likes0CommentsRe: Hi, I am facing issues with comparing jdbc response with XML response, getting returned blank list.
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 code1.8KViews0likes0Comments