Forum Discussion

sguru's avatar
sguru
Occasional Contributor
7 years ago

Whats the best way to verify if all attributes are present in the payload?

There is an use case to verify if all required attributes are present in the JSON payload. This could be achieved through basic assertions, which is not a scalable approach. (some fields are optional, some mandatory and some dependence on other fields).

 

Attributes and their dataTypes are managed in an excelSheet and gets updated periodically. What is the best way to acheive this. There is also a report in excel that is required with the results.

1 Reply

  • nmrao's avatar
    nmrao
    Champion Level 3
    Would you mind showing your sample data? Because, the solution can change if the data changes.