[tclwebtest] Problem following URLs with GET parameters
Status: Abandoned
Brought to you by:
tils
From: Grzegorz A. H. <gr...@ti...> - 2005-02-06 18:52:16
|
Hi. Long time no see, and I'm glad you made a 1.0 release. Anyway, I got the latest CVS and tried the following test case, which failed: set url "http://validator.w3.org/check?uri=http://alleg.sourceforge.net/index.es.html" puts $url do_request $url puts [response text] assert text "valid html" The do_request command seems to modify the URL (one slash before "alleg" removed), as the following output shows: ----- START: test at [06/feb/2005:18:47:52] ----- http://validator.w3.org/check?uri=http://alleg.sourceforge.net/index.es.html --- do_request for http://validator.w3.org/check?uri=http:/alleg.sourceforge.net/index.es.html Well, maybe my TCL is too rusty and double slashes get parsed somehow? Lets try something different then: do_request "http://alleg.sourceforge.net/index.es.html" link follow ~u validator puts [response text] assert text "valid html" However, the output is not much different this time: ----- START: test at [06/feb/2005:18:49:55] ----- --- do_request for http://alleg.sourceforge.net/index.es.html http status: >>200<< --- do_request for http://validator.w3.org/check?uri=http:/alleg.sourceforge.net/index.es.html http status: >>200<< So, a slash is being lost somewhere. And I don't remember how I used to debug these scripts, hehe. Any ideas where to look? |