Forum Discussion
Hi,
You will not be able to get what you need with just Keyword tests.
Exact implementation of what you'd like to get requires optical character recognition (OCR) for the picture file and intelligent match of recognized data to JSON content. For OCR you may consider either old native functionality provided by TestComplete (https://support.smartbear.com/testcomplete/docs/testing-with/deprecated/ocr/index.html) or the new one provided via Google API (https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/ocr/index.html).
Implementation does not seem to be trivial, so maybe you should discuss possible alternatives that are more simple in implementation but covers the same verification.
- nedbacan4 years agoFrequent Contributor
Hello Alex, first of all, thank you for your reply.
Seems like my approach is not reliable, comparing a PNG to a JSON file.
An alternative test can be getting the JSON data out to a spreadsheet and compare it to a known (expected) data in the spreadsheet. What would be the right approach to accomplishing this? Can you send me as script an example?
Related Content
Recent Discussions
- 2 days agovladd1