response assertion passed first but in second run it is getting failed because <name>pc</name> is not coming in . How to skip this element if it is not coming in second run without failing response assertion or any suggestions for this?

API response first run:

enter image description here

API response in second run: missing element < name > pc < /name >

enter image description here

enter image description here

Response assertion – DB values(name_1)using jdbc request match with xml element(name) in API response

enter image description here



Source link https://sqa.stackexchange.com/questions/27819/how-to-use--xpath-extractor-for--run-in--api-

LEAVE A REPLY

Please enter your comment!
Please enter your name here