Forum Discussion

zen_paul's avatar
zen_paul
Occasional Contributor
8 years ago
Solved

Schema Compliance Assertion setting Definition URL with Groovy

        We have code which sets up our assertions for some of our regression tests like   assertion = tStep.addAssertion("XPath Match") assertion.setName("matchAllExceptTimestamp") assertion....
  • KarelHusa's avatar
    8 years ago

    zen_paul, in case you need to add your own URL of the WSDL, you can do it with the following code:

     

    SchemaComplianceAssertion sca = step.addAssertion('Schema Compliance')
    sca.setConfiguration(org.apache.xmlbeans.XmlObject.Factory.parse('<definition>http://myServiceURL?WSDL</definition>'))

    Karel