You're looking at assignedCategories and not assignedContacts which is
below availableContacts in my original mail
Stuart
Jens Voß wrote:
Stuart Findlay wrote:
Hi all
I'm trying to extract assignedContacts URLs from the folloing XML
response
<?xml version="1.0" encoding="UTF-8"?>
<cp:root xmlns:cp="http://www.cp.net/cp" version="2.0">
<cp:form_data>
[...]
<cp:select name="assignedCategories"></cp:select>
<cp:select name="availableContacts">
<cp:option
value="PAB://jmeter.com/user1/main/cnt/CONTACT_5">Blah 8d561</cp:option>
[...]
</cp:select>
[...]
</cp:form_data>
</cp:root>
According to all the information I have available the following XPath
Extractor should work:
Reference Name: contact
XPath Query:
/cp:root/cp:form_data//cp:[EMAIL PROTECTED]"assignedContacts"]/cp:option/@value
Default Value: xxxxx
Use Tidy is unchecked
I put ${contact_matchNr} into the subsequent URL and the value is
always zero.
Which is no surprise because as can be clearly seen above, the
<cp:select> element with
name="assignedContacts" does not contain any <cp:option> elements. Are
you sure it
is not supposed to be [EMAIL PROTECTED]"*available*Contacts"]... ?
Regards,
Jens
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Stuart Findlay
Senior QA Engineer - Stability
Critical Path
Critical Path Ireland
42-47, Lower Mount St.,
Dublin 2,
Ireland
Phone: +353 1 241 5000
Fax: +353 1 241 5170
Yahoo IM: stufindlay
www.criticalpath.net <http://www.criticalpath.net>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]