Ask a Question

XMLCheckpoints lack the flexibility we need. Is XPath available in Desktop (not Web!)?

SOLVED
clay
Contributor

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?

4 REPLIES 4
tristaanogre
Esteemed Contributor

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
TanyaYatskovska
SmartBear Alumni (Retired)

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.

https://support.smartbear.com/testcomplete/docs/testing-with/advanced/working-with-external-data-sou...

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



Thank you, tristaanogre.  I was starting to look at that as an option.  Yours and Tanya's replies should get me started.

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 🙂

cancel
Showing results for 
Search instead for 
Did you mean: