[Webtest] <not> seams not to work with ANT's <ftp>

Willi Kuhnis Willi Kuhnis" <wkuehnis@gmail.com
Fri, 11 Jan 2008 13:51:20 +0100


Hi,

I want to test the access to a FTP-server.
When I enable the connection to the ftp server,
I can download files and also list works fine.
Now I disabled the connection to the FTP-server.
How can I test this?
I tried it with something like this:
*************			
<not description="must not be possible">
	<ftp action="list"
		server="10.60.36.11"
		port ="#{PortValue}"
		userid="${ftp.user}" password="${ftp.password}"
		verbose="yes"
		remotedir="Data/Myvalues"
		listing="c:\aaaaaaaa\listing.txt">
		<fileset>
			<include name="**"/>
		</fileset>
	</ftp>
</not>
***************
But I still get a error-message:
error during FTP transfer: java.net.ConnectException: Connection
refused: connect

My Question:
How can I check successfully, when its not allowed to access the ftp-server ?

-- 
Willi Kuhnis
wkuehnis@gmail.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~