Forum Discussion
So, if it's your application that's doing the file export, is there some indicator on screen in your application that indicates that the export is complete? What you've described as your problem certainly sounds like some sort of timing issue to me where the file is still in process when TestComplete attempts the comparison. If there is such an indicator, I'd add some sort of "Wait Property" call or some sort of wait until that indicator has changed state to indicate that the file export is complete and THEN do your file check.
Nope,
The lock is not done by my application, it's done by test complete ..
the flow is like this :
1. Application runs the process.
2. Application saves to file successfully.
3. Test complete does the comparison succesfully.
4. Application runs the process again.
5. Application tries to save the file.
6. Boom .. file is locked.
Stopping test complete's running won't unlock the file, the only way is to close test complete's process.
the timing issue you mentioned above might help, I'll try to add some Delay() after the check is finished, and before the next file-generation starts.
Thanks a lot Tristaanogre ..
Related Content
Recent Discussions
- 4 hours agojstaehlin
- 21 hours agoAivanitskiy