Help: Need to compare the JSON data to a PNG report
Hello, I would like to compare a JSON file to the content of a Report in PNG to verify the content matches the JSON data, if both matches send a pass, if not send fail with the name that did not match.
Both the JSON file and png file are automatically copied in the same folder (c:\report)
I am not much good at coding so if it can be done using Keyword-driven testing it will be best or if you can provide the code I can modify accordingly.
Can you provide a sample test using my approach? Many Thanks !!!!!
JSON File content:
"exportDate": "2020-09-12T08:22:58.610-04:00",
"patientData": "id": "Patient001", "familyName": "Example 2", "givenName": "John Doe",
"birthDate": "07-27-1975T00:00:00",
"gender": "Male",
"ethnicity": "Caucasian\n"
PNG File Attachment: