alibaba82
17 years agoSuper Contributor
Assertion Question
Hello,
I guess I am the only one to ask questions in the this forum
I have question about assertions. Below is part of a response from my web services.
2211
CustomGrid_InvalidCustomGridNameFormat
2203
NPE
In the response message I expect only ErrorCode-->2211 so I have an XpathMatch assertion for that. However, as you can see in the response above, I got more than one ErrorCode which is not the expected behavior of my web service. There should only have been one error code.
Is there a way I can catch this kind of error through some assertion.
Thanks
Ali
I guess I am the only one to ask questions in the this forum
I have question about assertions. Below is part of a response from my web services.
In the response message I expect only ErrorCode-->2211 so I have an XpathMatch assertion for that. However, as you can see in the response above, I got more than one ErrorCode which is not the expected behavior of my web service. There should only have been one error code.
Is there a way I can catch this kind of error through some assertion.
Thanks
Ali