Willi Kuhnis wrote:
> 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 ?
>
WebTest's not step is intended only to catch WebTest failures (ie not
errors and not BuildException from other steps).
You can simply create an own project specific step for that.
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest