[tclwebtest] FW: link not found in ad_proc "find_in_array_list"
Status: Abandoned
Brought to you by:
tils
|
From: <a....@12...> - 2003-02-26 13:44:54
|
Sorry, If you get this message for the second time.
I just subscribed to the list and I don't know if subscribing is necessary
to post (and will the forumlist remain 'read only'?)
My problem may be related to the post of 24-2: 'HTML entities should be
substituted in urls', but I didn't have time to look into that.
Thanks
Aldert Nooitgedagt
-----Original Message-----
From: a....@12... [mailto:a....@12...]
Sent: woensdag 26 februari 2003 10:21
To: tcl...@li...
Subject: link not found in ad_proc "find_in_array_list"
Hi,
I'm workin on a simpel tclwebtest-UI for OpenACS.
I run tclwebtest in a tcl file with:
set fp [open "|$TCLWEBTESTEXE $testfile_name" "r"]
etcetera
While running a script a get a weird error.
Some links are resolved some are not in the script below.
I have put a debug statement in lib/tclwebtest.tcl to see what happens (see
below)
Does anybody know what the result means?
Any help or pointers are appreciated.
Aldert Nooitgedagt
----begin script: run from webpage ----
do_request...
...
debug "Number of Links of This Page: [llength [link all]]"
foreach link [link all] {
array set aLink $link
debug "\* $aLink(full)"
if { [catch { link follow ~u $aLink(url) } err] } {
debug "we got an error: $err"
}
}
...
...
----end script----
----change in lib/tclwebtest.tcl: just a Debug statement----
ad_proc find_in_array_list {
...
...
# it is an expression - test the element at the current
# index
set element $a_item($key_to_search)
debug "$element"
...
...
----end tclwebtest.tcl---
----begin error: error <a href="/dotlrn/?&page%5fnum=1">Calendar</a> not
found----
...
...
DEBUG: Number of Links of This Page: 45
DEBUG: * <a href="/">
<img class="header-img" border=0 src="/graphics/therapielogo.jpg"
alt="Header Logo"></a>
DEBUG: /
--- do_request for http://valhalla/
http status: >>200<<
DEBUG: * <a href="/dotlrn"><img class="header-img" border="0"
src="/graphics/myspace-red.gif" width="98" height="25" alt="MySpace"></a>
DEBUG: /
DEBUG: /dotlrn
--- do_request for http://valhalla/dotlrn
http status: >>302<<
following a redirect to: http://valhalla/dotlrn/
--- do_request for http://valhalla/dotlrn/
http status: >>200<<
DEBUG: * <a href="/dotlrn/control-panel"><img class="header-img" border="0"
src="/graphics/help-red.gif" width="67" height="25" alt="Help"></a>
DEBUG: /
DEBUG: /dotlrn
DEBUG: /dotlrn/control-panel
--- do_request for http://valhalla/dotlrn/control-panel
http status: >>200<<
DEBUG: * <a href="/register/logout"><img class="header-img" border="0"
src="/graphics/logout-red.gif" width="62" height="25" alt="Logout"></a>
DEBUG: /
DEBUG: /dotlrn
DEBUG: /dotlrn/control-panel
DEBUG: /register/logout
--- do_request for http://valhalla/register/logout
http status: >>302<<
following a redirect to: http://valhalla/
--- do_request for http://valhalla/
http status: >>200<<
DEBUG: * <a href="/dotlrn/?&page%5fnum=1">Calendar</a>
DEBUG: /
DEBUG: /dotlrn
DEBUG: /dotlrn/control-panel
DEBUG: /register/
DEBUG: http://openacs.org/
DEBUG: http://openacs.org/bboard/q-and-a?topic_id=11
DEBUG: /doc/acs-templating/designer-guide.html
DEBUG: http://openacs.org/software/
DEBUG: /admin/site-map/
DEBUG: /acs-admin/apm/
DEBUG: http://openacs.org/new-file-storage/
DEBUG: /acs-admin/
DEBUG: /admin/
DEBUG: /doc/
DEBUG: /api-doc/
DEBUG: http://openacs.org/bboard/
DEBUG: http://openacs.org/bboard/q-and-a?topic_id=11
DEBUG: http://openacs.org/
DEBUG: http://openacs.org/sdm/
DEBUG: /notifications/
DEBUG: /attachments/
DEBUG: /portal/
DEBUG: /developer/
DEBUG: register/explain-persistent-cookies
DEBUG: /doc/
DEBUG: /api-doc/
DEBUG: /admin/site-map/
DEBUG: /acs-admin/apm/
DEBUG: /acs-admin/users/
DEBUG: /admin/groups/
DEBUG: /admin/
DEBUG: /acs-admin/
DEBUG: http://openacs.org/software/
DEBUG: http://openacs.org/
DEBUG: http://openacs.org/bboard/q-and-a?topic_id=11
DEBUG: http://openacs.org/bboard/
DEBUG: http://openacs.org/sdm/
DEBUG: http://dotlrn.openforce.net
DEBUG: http://openacs.org
DEBUG: we got an error: No link found that matches '~u
/dotlrn/?&page%5fnum=1'
....
....
---------end error---------------------
|