Getting the time a file is created
Can someone show me how to capture the time (ms) it takes to create a file?
I am testing the performance on how long will it take to display an image on a web app. I assume there are several ways in getting the time from the GUI side, but there is this JSON file that is created when the image gets displayed.
For instance, user selects the scanned image he wants to view in the web app, a cache folder is created, then a string of jpeg files are created, (i.e. file1.jpg, file2.jpg, file3.jpg .....then the JSON.file) Once the JSON.file is created the processing stops, meaning the image is generated and is displayed.
Can I get the timestamp of the first file created in the cache folder and compare it to the last file created (i.e JSON file) and show the time in seconds in the testcomplete log, this will be the time it took to load and display the image
Can this be done using the keywords scripting?
I hope someone can help me with this one.
Hi,
aqFile.GetCreationTime() returns file creation date/time.
Depending on the implementation of your tested application, time difference you've mentioned might or might not include the time required to render image(s) on screen.
P.S. Unrelated, but out of curiosity: if there are a lot of large files and the network is slow (i.e. time difference will be big), what will this mean?