Forum Discussion

AAB's avatar
AAB
Regular Contributor
6 years ago

ReadyAPI- How to assert 2 test runs based on date in response?

Hello,

As our project is evolving fearcely I'm now on a crossroad to assert that my response from the new run is updated with the latest version of the third party. Some explanations:

Testrun1: Response comes from our environment in JSON format that was filled through ETL with an image from a third party. It should contain a 'PDCMetaData' (wrong notation in the screenshot) and a 'PDCData' node (with content that differse for each project). In the 'PDCMetaData' there's a DateTime stamp in 'authorityProcessingDateTime' that shows e.g. 31/12/2018

It should look something like this:

TestRun2: A new version was uploaded through ETL to our environment and the DateTime in 'PDSMetaData' is now 31/12/2019. How can I assert that this date is changed and shows me that a new version is present?

 

Could anybody give me an idea please?

Thanks in advance,

Kind Regards,

AboveAndBeyond