As discussed in the earlier post XML Assertion is a generic assertion element which is mainly used to validate the format of XML embedded in the response. When we have a requirement to validate the specific XML response then XML Schema Assertion is used. In this type of assertion, we can provide the XML Schema file (along with path) which needs to be compared with the actual response. When the response is matched with the schema then the sampler is passed else failed with an error.
How to add "XML Schema Assertion" element?
You can follow the below steps:
You can follow the below steps:
1. Select "Sampler" node whose response needs to be validated.
2. Right-click on the node
3. Mouse hovers "Add"
4. Mouse hovers "Assertions"
5. Click "XML Schema Assertion"
3. Mouse hovers "Add"
4. Mouse hovers "Assertions"
5. Click "XML Schema Assertion"
How to remove "XML Schema Assertion" element?
You can follow the below steps:
1. Select "XML Schema Assertion" node
2. Right click on "XML Schema Assertion" node
3. Click "Remove" (Mouse) or "Delete" button from the keyboard
2. Right click on "XML Schema Assertion" node
3. Click "Remove" (Mouse) or "Delete" button from the keyboard
4. Click "Yes"
What are the attributes of "XML Schema Assertion" element?
"XML Schema Assertion" has the following attributes:
Apache JMeter - Assertion - "HTML Assertion" Element
Previous Topic:
Apache JMeter - Assertion - "JSR223 Assertions" Element
Related Topics:
What are the attributes of "XML Schema Assertion" element?
"XML Schema Assertion" has the following attributes:
- Name: To provide the name of the assertion.
- Comments: To provide arbitrary comments (if any)
- XML Schema: To specify the path and file name of the schema.
Apache JMeter - Assertion - "HTML Assertion" Element
Previous Topic:
Apache JMeter - Assertion - "JSR223 Assertions" Element
Related Topics:
No comments :
Post a Comment