Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-10-07 Thread freesky
Thank you for telling me some knowledge of XML ! -- View this message in context: http://jmeter.512774.n5.nabble.com/XPath-Extractor-doesn-t-work-if-I-check-Use-Tidy-resolved-tp4848485p4881843.html Sent from the JMeter - User mailing list archive at Nabble.com.

Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-30 Thread sebb
There are two aspects to XML correctness: - well-formed - valid Well-formed just means matching end-tags and no syntax errors, which is probably all you were expecting. Valid means that the XML agrees with its DTD. For XHTML, Tidy knows what the DTD is. Tidy does not know what the DTD for

Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-29 Thread freesky
Thanks! That is even if the response is XML, but if we check ' Use Tidy ', then the JMeter will treat it as HTML and check the response it's a valid HTML or not before parsing the XPath, so if there is error during checking, then the XPath Extractor doesn't work, right? -- View this message in

Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-29 Thread Deepak Shetty
Hi Meter will treat it as HTML Tidy does. Jmeter doesnt know. so if there is error during checking, then the XPath Extractor doesn't work, Some errors Tidy will fix, it might for e.g. add an html and body tag which will mess up your xpath. if you are interested , download the command line version

Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-29 Thread freesky
Thank you very much! -- View this message in context: http://jmeter.512774.n5.nabble.com/XPath-Extractor-doesn-t-work-if-I-check-Use-Tidy-tp4848485p489.html Sent from the JMeter - User mailing list archive at Nabble.com. -

Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-28 Thread freesky
There are more than one return value, so I have to use ${a_1}, ${a_2}. The response data of 'read' sampler is like this : records _actions_=true record id=2/record /records The XPath Extractor is : Reference name : a XPath : //record/@id The sampler use the the 'Reference name' is like

Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-28 Thread sebb
On 28 September 2011 11:59, freesky h...@windowslive.com wrote: There are more than one return value, so I have to use ${a_1}, ${a_2}. OK, but that is not what I asked - does ${a} exist? The response data of 'read' sampler is like this : records _actions_=true record id=2/record /records

Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-28 Thread Deepak Shetty
Don't use tidy for xml. Only use it when the response is html On Sep 28, 2011 4:00 AM, freesky h...@windowslive.com wrote: There are more than one return value, so I have to use ${a_1}, ${a_2}. The response data of 'read' sampler is like this : records _actions_=true record id=2/record

Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-28 Thread freesky
If I used ' objectId=${a} ' in the 'update' sampler, then in 'View Result Tree', I found the real request is ' objectId= '. It's a valid XML, I just wanted to try the 'Use Tidy'. I have no clue why this error will happen if I use 'Use Tidy'. -- View this message in context:

Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-28 Thread freesky
Thanks, after I checked the 'Report errors' and 'Show warnings', the assertion of 'read' sampler is false, the Assertion failure message is ' //record/@id - tidy : 4 errors, 9 warnings. And Sorry, the real response data is like next, I didn't think there is errors, so I simplified the response

Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-28 Thread Deepak Shetty
tidy fixes HTML to be XHTML compliant. (which is what you need to run XPATH on it). however something that returns XML should already be valid (or its a problem anyway!) so you can directly run XPath against it . Thats why you get errors saying records is not recognized etc(its checking against