Get Knowledge from Video instead of Content:

Monday 30 January 2017

JMeter - Assertions - "XML Assertion"

XML Assertion is mainly used to validate the format of XML embedded in the response. This type of assertion does not need any input. When the response is well XML formatted then the sampler is passed else failed with an error.

Failure Case:
How to add "XML Assertion" element?
You can follow the below steps:
1. Select "Sampler" node whose response duration needs to be validated.
2. Right-click on the node
3. Mouse hovers "Add"
4. Mouse hovers "Assertions"
5. Click "XML Assertion"

How to remove "XML Assertion" element?
You can follow the below steps:
1. Select "XML Assertion" node
2. Right click on "XML Assertion" node
3. Click "Remove" (Mouse) or "Delete" button from the keyboard
4. Click "Yes"    

What are the attributes of "XML Assertion" element?

"XML Assertion" has the following attributes:
  • Name: To provide the name of the assertion.
  • Comments: To provide arbitrary comments (if any)  
Next Topic:
Apache JMeter - Assertion - "BeanShell Assertion" Element

Previous Topic:

Apache JMeter - Assertion - "Size Assertions" Element

Related Topics:


  

No comments :

Post a Comment