4 messages in com.canoo.lists.webtestRe: [Webtest] how to test <HREF> that...| From | Sent On | Attachments |
|---|---|---|
| Peter Ruan | 18 Jul 2005 09:54 | |
| Marc Guillemot | 19 Jul 2005 08:35 | |
| Peter Ruan | 19 Jul 2005 11:31 | |
| Marc Guillemot | 20 Jul 2005 01:08 |
| Subject: | Re: [Webtest] how to test <HREF> that are built dynamically.![]() |
|---|---|
| From: | Marc Guillemot (mgui...@yahoo.fr) |
| Date: | 07/20/2005 01:08:12 AM |
| List: | com.canoo.lists.webtest |
It depends what you want to do:
- if you want to verify all links, just use the verifyLinks step. It will check
all links present in the page no matter
of dynamically generated or not
- if you want to click a special link, you have to identify which one you want
to click (ie for instance which value of
your aMessages[i]['name']). How would you identify it when you sit on front of
your computer?
Marc.
Peter Ruan wrote:
Hi Marc, Thanks for the reply. I'm still unclear. Perhaps an example would help.
Below is a snippet of the source that I'm referring to.
aInnerHtml.push('<a href="/phonebook/contact?name=' + aMessages[i]['name'] + '&' + phoneType + '=' + aMessages[i]['phone'] + '" onmouseover="changeImage(\'add_me' + i + '\', \'add_me' + i + 'over\'); window.status=\'add_me' + i + '\'; return true" onmouseout="changeImage(\'add_me' + i + '\', \'add_me' + i + '\');">');
The above code will build the links dynamically via javascript. So the number of links is not known until run time. So how can we do this with WebTest? Do you have some example codes that I can model after if this can indeed be done?
Thanks, -Peter
-----Original Message----- From: webt...@gate2.canoo.com [mailto:webt...@gate2.canoo.com] On Behalf Of Marc Guillemot Sent: Tuesday, July 19, 2005 8:36 AM To: webt...@gate2.canoo.com Subject: Re: [Webtest] how to test <HREF> that are built dynamically.
It's exactly the same as with "normal" links: first (the most important) look how *you* would identify the link you want to click, second try to express it using webtests steps.
Marc.
Peter Ruan wrote:
Hi, We have an application that build links dynamically via JavaScript.
I
am wondering if Canoo WebTest provides any tools that we can use to
test
these links.
Thanks, -Peter
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest




