![]() It will check whether the response received is a well formed HTML, XHTML or XML document and show the validation messages. ![]() Similar to the XML assertion, HTML assertion validates HTML syntax of the HTML document. Following screenshot shows the test result when tested with HTML page. To verify XML assertion, you just have to add XML Assertion same as the way of adding other assertions and run the test plan. If the invalid XML code found, failure will be reported with an assertion failure message. We will use XML assertion in JMeter to check whether the provided URL consist of valid XML data. In the screenshot below, two requests are failed due to the request size is 71030 bytes. In the screenshot below, among the five HTTP requests two of them are failed and other are passed. Run the Test Plan and observe the results.In the screenshot above, I have added the size “71031” in bytes and selected “=” on the type of comparison. Specify the size to assert in bytes and also specify the type of comparison. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |