Hi Team, I need to verify response based on the certain conditions. Yes I can verify through if/else or switch statement but there is any other way to verify such responses.
I understand you want to verify “description” in the response based on its “id” value.
In that case, maybe you can define a dictionary (object) linking id value and description (as below) and compare “description” value in the response to that value in dictionary.