Class XmlDocumentValidator
java.lang.Object
org.uitnet.testing.smartfwk.api.core.validator.xml.XmlDocumentValidator
public class XmlDocumentValidator extends Object
- Author:
- Madhav Krishna
-
Field Summary
Fields Modifier and Type Field Description protected XmlDocumentReaderxmlDocReaderprotected XPathxPath -
Constructor Summary
Constructors Constructor Description XmlDocumentValidator(File xmlFilePath)XmlDocumentValidator(String xmlAsString) -
Method Summary
Modifier and Type Method Description NodeListfindRecordsFor(String elementName, String xmlPath)DocumentgetDocument()voidvalidateAtleastNRecordsPresent(String elementName, String xmlPath, int atleastN)voidvalidateAtMaxNRecordsPresent(String elementName, String xmlPath, int atMaxN)voidvalidateExpectedNRecordsPresent(String elementName, String xmlPath, int expectedN)voidvalidatePathPresent(String elementName, String xmlPath)
-
Field Details
-
xmlDocReader
-
xPath
-
-
Constructor Details
-
XmlDocumentValidator
-
XmlDocumentValidator
-
-
Method Details
-
getDocument
-
findRecordsFor
- Throws:
XPathExpressionException
-
validatePathPresent
-
validateExpectedNRecordsPresent
-
validateAtleastNRecordsPresent
-
validateAtMaxNRecordsPresent
-