Forum Discussion
which part of your code fails if you try to debug the script?
I would be careful with handling the XPath expression without providing a namespace, e.g.
holder.namespaces["ns"] = "http://learnwebservices.com/services/tempconverter"
In some cases XPath without a namespace may work, in others not.
Anyway, I would rather rely on the Property Transfer test step to save the value into a property. It's easier to find an issue later on.
Best regards,
Karel
- groovyguy3 years agoCommunity Hero
A property transfer does not work in this instance because I have many tests that require this and it is easier (and has always worked) to save via a groovy script. That way the assertion can be copied to all necessary steps.
The xpath I am using has a namespace. I believe the issue is mostly a defect with ReadyAPI since it works fine until it does not. And yes, the same script will fail all of a sudden and will stop working until I either close and re-open the project, or restart ReadyAPI completely.
Related Content
- 12 years ago
Recent Discussions
- 5 hours ago
- 6 hours ago