verify response body having data “verifying_actual_data” equals “response_body”
API Operations Step-def verify response body having data “verifying_actual_data” equals “response_body” Keyword Given, When, And, Then Description Will verify actual data with variable name. Note:{save response of executed api having “response_body”} step def must be used before using this step def. It will compare the actual and save value. Declaration Code Element Application Test Data Then verify response body having data “verifying_actual_data” equals “response_body” NILL NILL A B verifying_actual_data { “name”: “morpheus”, “job”: “zionresident”, “updatedAt”: “2024-05-22T09:55:51.598Z” } Remarks The “String Value” that is used through test data file should be in angular brackets. We can use any variable name Restriction Parameter selection- It is mandatory to meet all parameter data with validation criteria, such as the use of appropriate string or numerical data, an assigned value range, and conformance with length restrictions Call sequencing- It is also a challenge as every call must appear in a specific order to ensure the system works correctly. Table of contents Keyword Description Declaration Remarks Restriction
verify response body having data “verifying_actual_data” equals “response_body” Read More »