NairatAhmad
8 years agoNew Contributor
Comparing file from stores to output file locks both files sometimes
Hi,
I have around 300 test cases for a desktop application, each has a saved expected result file in the Files stores.
Each test case works as follows :
Generates a data table.
Export the data table to a file.
Then : Files.stored_file.check("D:\thing\output_file.txt");
so the first time, the file gets exported and saved and compared succesfully, now if you re-run the test case ,, sometimes it works, and sometimes not! no specific steps to reproduce!
Reason is that the output file gets locked, and won't get deleted/overwritten unless test complete is closed.
if you reopen test complete it works very well.
can you please help me with this?
Thanks.