I am working on a web based application where we create reports for customers . First we choose variables like customer ,order# ..... and the we run the report and view it in pdf form . The time it takes for the report to actually be created and viewed in PDF may vary from 10 seconds to 10 minutes .
I need to put a synchronisation point within my script so that my test waits for the report to be actually created before I move forward . How can I do that ????
Have you tried Fexists() to look for the file ?
You can put it in a loop and wait eg 10 seconds before you try again:
While not fexists(file) do
<font size="2" face="Verdana, Arial, Helvetica">This is a good suggestion. But, I would be very cautious in actually using it. The file name might be created BEFORE the document is completely/successfully created. You'd better manually timing the doc creation time several times, and comapare the average to the SP timers. I usually see significant difference between manual timing and SP timing
I tried webThreadWait() and that works for instances where the wait time required for the generation of the report is small , but if the wait time is more than a few minutes this doesnt work . I dont really understand how I can put FExist() function for a pdf report that I am creating with the script . Can you give somemore insight on this ???
Any other suggestions ???