Re: [OpenSTA-users] Can a script wait until the end of a HTTP Binaryfile download completes before
Brought to you by:
dansut
|
From: Tam W. <tam...@te...> - 2007-05-25 09:20:04
|
Hello, Well in the end I found that everything was working correctly for my binary file download. The timer *was* timing the full download and the script does wait for the full download whether I use "SYNCHRONIZE REQUESTS" or "LOAD RESPONSE_INFO BODY". I can see in my proxy log that the full file is downloaded. So thank you to those who affirmed how the script worked. It made a huge difference in working out what was wrong (or not wrong in this case). My main mistake (besides a lack of faith!) was thinking that a 12Mb file would take a substantial time to download when it only takes a few seconds across an internal network. Also, because I was checking using either the Script Modeller or the Single Step I was seeing it respond when it got the 200 level response (after a split second) but not noticing the few seconds delay before the rest of the script finished (when it was downloading the rest of the file). =20 Kudos to those who tirelessly respond to queries on this list. It is a real help. =20 By way of contributing...=20 1. I have a batch file which works around the script caching issue and occasional instability of the toolset which I can tidy up and share. Any interest? I run it on one machine before kicking off a test run. It uses pskill and psexec from www.sysinternals.com to kill all the OpenSTA processes on all machines running OpenSTA, empty out the engine temp directory and then start the processes again. Nothing too flash (the only trick is in setting the common directory in the path on each machine, as mentioned in one of the FAQs). =20 2. Also, I haven't noticed anything on the forums or FAQ about FTP support (other than a review from a few years back). It seems that (with my web proxy at least) I can get FTP to work if I do it via a web proxy, i.e. OpenSTA records it (with a few errors) and played back. E.g. something like (this is from memory not cut and paste), CONNECT TO 1.2.3.4:8080 ON 1 GET URI "ftp://user1:pas...@te.../file1.txt HTTP/1.1" ON 1 & HEADER DEFAULT_HEADERS & ,WITH {"Accept: */*", & "Accept-Language: en-us", & "Connection: Keep-Alive"} ... Thanks again for the help, Tam Tam Willacy Testing Questions Ltd | http://www.testingquestions.com |