Step to reproduce: 1)note.xml content: <?xml version="1.0" encoding="UTF-8"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> 2)XPath function expression: ${__XPath(d:\\test\\note.xml,note/body)} ${__XPath(d:\test\note.xml,note/body)} ${__XPath(d:/test/note.xml,note/body)} All of the variants don't work Actual result: Function returns: null Expected result: Function returns: Don't forget me this weekend!
*** Bug 61261 has been marked as a duplicate of this bug. ***
Author: pmouawad Date: Sun Jul 16 18:08:47 2017 New Revision: 1802078 URL: http://svn.apache.org/viewvc?rev=1802078&view=rev Log: Bug 61260 - __XPath function returns null despite xpath checker founds matches Bugzilla Id: 61260 Added: jmeter/trunk/bin/testfiles/XPathTest2.xml (with props) Modified: jmeter/trunk/src/core/org/apache/jmeter/util/XPathUtil.java jmeter/trunk/src/functions/org/apache/jmeter/functions/XPathFileContainer.java jmeter/trunk/test/src/org/apache/jmeter/functions/PackageTest.java jmeter/trunk/xdocs/changes.xml Author: pmouawad Date: Sun Jul 16 18:09:46 2017 New Revision: 1802079 URL: http://svn.apache.org/viewvc?rev=1802079&view=rev Log: Bug 61260 - __XPath function returns null despite xpath checker founds matches svn properties Bugzilla Id: 61260 Modified: jmeter/trunk/bin/testfiles/XPathTest2.xml (props changed)
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4421