The namespace context is defined via the
RestFixtureConfig
fixture, defining the key restfixture.xml.namespace.context
. The alias can then be used in any XPath subsequently.The following two snippets are from the auto generated RestFixture documentation (section XPaths and namespaces). This shows the executed
RestFixtureConfig
with two aliases definedwhilst this shows the usage of one of the two aliases:
Note: the default namespace of a XML body must be explicitly defined as alias!
The latest release (v 1.1) of the Rest Fixture is downloadable from Google code here, and the source code is on GitHub here