Re: [tclwebtest] Proposed patch to ignore socket errors
Status: Abandoned
Brought to you by:
tils
From: Grzegorz A. H. <gr...@ef...> - 2003-03-03 15:15:42
|
> > This patch makes the following work: > > > > do_request -nocomplain http://wwwwe.ferbarer.net > > I still think that a socket error is in almost all cases an > indication that something is fundamentally wrong with your test, > and in the rare cases where you want to allow it you might as well > wrap do_request in a catch manually. What do you think? I think that even though the user can catch any problem in tclwebtest's code thanks to the exception mechanism, it is less fearsome for users to recieve a single line human readable error than a complex stack trace. Also, you might want to write specific (like null) values into some of tclwebtest's variables in the failure case so that other commands don't need to be wrapped inside catch too, or have undefined consequences: catch { do_request something_that_clearly_fails } log [response text] # <-- will this fail? what should be the output? -- Grzegorz Adam Hankiewicz, gr...@ef.... Tel: +34-94-472 35 89. eFaber SL, Maria Diaz de Haro, 68, 2 http://www.efaber.net/ 48920 Portugalete, Bizkaia (SPAIN) |