Page 1 of 1

Script to test 50+ FTP connections/image transfers to server

Posted: 18 May 2010 13:55
by dazzyboi
I have been asked to develop a lightweight FTP stress test app for work, we are rolling out more IP camera's for customers and we need to test a new server to see if it could cope with the amount of images being sent to the server at the same time.

I have a little bit of programming knowledge but mainly around VBScript these days

Now, the camera's themselves are motion triggered so the images are capturered and sent to the server. We already have a front end web-interface in place so I can access this.

We have set-up 50 test users which includes 3 real camera's and the rest are mock directories.

The stress test app must be able to initiate multiple connections to the ftp server and push about 5 "test" images to each directory at the same time to see if the server could cope

What would be the best way to approach this? I think the main factors I would like to achiever here is something lightweight and doesnt take weeks to develop and something that a novice developer could cope with. I want to see if this could be achieved easily?

Im going to be doing some research online but wanted to see if anyone here had any experience with stress testing FTP ? If there is any apps already on the market available for download then I would concider using these.

Any help is ALWAYS greatly appriciated :)

Re: Script to test 50+ FTP connections/image transfers to se

Posted: 19 May 2010 02:55
by dazzyboi
Anyone?

Iv starting making a dos batch script this morning however at the moment all iv been able to sort of work out is how to start creating the script which constist of

batch file

Code: Select all

@echo off
ftp -s:commands.txt
pause
exit


commands.txt

Code: Select all

open ftp.blah.com
username
password
cd testfolder
binary
testimage.jpg
quit


However what this will do is simulate 1 ftp connection sending an image to a single folder.

I need it to simulate 50 ftp connections with each ftp connection sending 5 images to its directory folder.

Re: Script to test 50+ FTP connections/image transfers to se

Posted: 19 May 2010 16:20
by aGerman
Have a look to http://www.dostips.com/DtTipsFtpBatchScript.php.
Think mput would help you to upload multiple files.

But I'm not sure if it would be possible to upload them to 50 different connections without calling 50 different batch files.

Regards
aGerman