Validating schema saml response
A SAML Response is sent by the Identity Provider to the Service Provider and if the user succeeded in the authentication process, it contains the Assertion with the Name ID / attributes of the user.
Here we can see that the "Test Request - login" Test Step has failed, which in the Test Case Run Log at the bottom also displays details on the actual assertion failure; "took 1023 ms" means that the "SLA" assertion failed, i.e. Assertions are always displayed in a tab at the bottom of the containing Test Steps' editor window.
Double-clicking an assertion brings up its configuration dialog if available.
Adding an assertion is straight forward; press the left-most button in the toolbar, which opens a dialog which prompts you to choose which assertion to add.
Lets look at how the Assertion functionality of the Sampler Test Steps are used to validate the incoming response or request received by the Test Step.
Before we dive into the available assertions, lets do a quick overview.