Forum Discussion
Why can't you use file checkpoint? What happens when you try?
The new file doesn't need to be "pulled in". When you create the file checkpoint, in keyword tests, the first file you select will be your "actual data". Then you indicate to use your stored "expected data" as the file to be used for the comparison. (https://support.smartbear.com/testcomplete/docs/testing-with/checkpoints/files/creating.html)
If you're using script code, reference the following.
- nav6 years agoOccasional Contributor
Yes, "How can i indicate to use your stored "expected data" as the file to be used for the comparison".
This is the sceanrio:
I am working on an Inventory project, So First file i have kept in my local system as Actual Data. But Now My challenge is i will need to automate a scenario where i need go to the inventory UI and export a new report and this exported report will be downloaded in local system automatically. Now how can i compare files, First file which is already in my local system as "extected data" and the second file which is downloaded using export report functionality"(actual data).
- Marsha_R6 years agoChampion Level 3
It sounds like you haven't tried the File Checkpoint yet. When you add a File Checkpoint to your test, you are prompted to pick the two files to compare, wherever they are.
Try this and if it fails, show us screenshots of what happened.
- nav6 years agoOccasional Contributor
Thank you for replying Marsha, I have tried file check point operation. But the problem is everytime i run this scenario, The export functionality will download a new file. So each time i need to compare the baseline file with newly downloaded file. How can this be done? Thank you