Method and system for comparing structured documents
OwnerAndrew S. Nielseninventor
Life of this patent
Estimating the term…
Abstract
A method and system for comparing a first document and a second document. First, at least one compare attribute is inserted into either the first document or the second document. Second, the first document is compared with the second document in a manner based on the compare attribute. For example, the compare attribute can include an ignore element attribute, an ignore attribute attribute, and an unordered attribute.
Claims19
A method for comparing a first document and a second document comprising the steps of:
- inserting at least one compare attribute into one of the first document and the second document;
- and
- comparing the first document and the second document in a manner based on the compare attribute.
A method for comparing an expected response and an actual response, the expected response including at least one node that includes an ignore element attribute comprising the steps of:
- composing an expected response that includes at least one node that includes an ignore element attribute;
- when comparing the nodes of the expected response with the nodes of the actual response, skipping those element nodes specified by the ignore element attribute of a parent node.
A test infrastructure for interacting with a server that has capabilities comprising:
- a) a test suite for use in testing the capabilities of the server;
- wherein the test suite includes an expected response for a first request and at least one reference to information not known to a tester when preparing the test suite;
- b) an injection module for receiving information from the server, for generating an actual response based on the received information, and for replacing the reference with a target in the actual response that is referenced by the reference;
- and
- c) a comparison module for comparing an actual response with an expected response.
Dependencies are inferred from the claim text.