Smart Assertion
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2021
09:44 PM
09-02-2021
09:44 PM
Smart Assertion
Trying to set Smart Assertion for my REST api, do we need to main the order/position of the output we received.
Say when we run first time to set smart asserion output values will be one order for next run the output values will be another order . but the field we set for assertion will be present in some position will the assertion still pass or as the position is incorrect when compared to the first result it will fail the assertion
Solved! Go to Solution.
Labels:
- Labels:
-
Assertions
-
Function Tests
-
REST
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2021
07:04 AM
09-03-2021
07:04 AM
Hey @aeswaramoorthy,
Is this json or xml?
Im guessing that smart assertions use xpath/jsonpath.
So, if the xpath/jsonpath remains consistent across multiple executions then the smart assertions would work fine.
This is a guess on my part though, so id give it a shot to double check
Nice one
Rich
Is this json or xml?
Im guessing that smart assertions use xpath/jsonpath.
So, if the xpath/jsonpath remains consistent across multiple executions then the smart assertions would work fine.
This is a guess on my part though, so id give it a shot to double check
Nice one
Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2021
01:10 AM
09-05-2021
01:10 AM
Thanks @richie
Its a XML output/response. i too guess its expecting the exact position.
As you said if its use xpath then always position is expected else it wont work.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2021
04:02 PM
09-06-2021
04:02 PM
Xpath has to be updated not use position and yet identify uniquely.
Regards,
Rao.
Regards,
Rao.
