XMLCheckpoints lack the flexibility we need. Is XPath available in Desktop (not Web!)?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
XMLCheckpoints lack the flexibility we need. Is XPath available in Desktop (not Web!)?
We have a Desktop application system that passes XML messages between components. Thus far, we have found the XMLCheckpoint mechanism to be useful some of the time, but many times it is not. Is there an XPath capability for Desktop that is accessible through JavaScript?
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could also instantiate the MSXML.DOMDocument object built into Windows and build your own parser/comparison. That's what I would recommend doing.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @clay,
Refer to the following article - it contains great examples of how you can work with XML from script. You will need to call the selectNodes function with the desired XPath expression.
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, tristaanogre. I was starting to look at that as an option. Yours and Tanya's replies should get me started.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, Tanya. This should suffice for what we are doing. I wonder if it would be possible to incorporate XPath queries directly into XMLCheckpoints? That would be a good thing 🙂
