Hi,
any help on this would be greatly appreciated,
i have a HTTP request
test in JMeter that gets an XML document as the response,
the format of the xml document is:
"
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<entry>
<id>id1</id>
<link rel="linkrel" type="image/jpeg" href="http://linkrel1" />
</entry>
<entry>
<id>id2</id>
<link rel="linkrel" type="image/jpeg" href="http://linkrel2" />
</entry>
<entry>
<id>id3</id>
<link rel="linkrel" type="image/jpeg" href="http://linkrel3" />
</entry>
<entry>
<id>id4</id>
<link rel="linkrel" type="image/jpeg" href="http://linkrel4" />
</entry>
</feed>
"
what i'm trying to do is to:
* get this response from HTTP request
* check that the number of "link" element with attribute "rel" with value 'linkrel' equals the number of "id" element's
any ideas on how i can do this?
also i need to:
* get this response from HTTP request
* check that the number of "link" element with attribute "rel" with value 'linkrel' equals the number of "id" element's only where the "id" element doesn't have value 'id1'
any ideas on how i can do this?
Thanks in advance for any advice,
Cheers,
Niall