[Webtest] Canoo and Javascript Popup
Lisa Crispin
webtest@lists.canoo.com
Mon, 15 Nov 2004 22:53:14 +0000
--NextPart_Webmail_9m3u9jl4l_27892_1100559194_0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Robert,
Have you tried this with the new HtmlUnit-based WebTest? I 'm using that and I played around with invoking a calendar popup. I could verify text on it, but the resulting page only had some text on it, not the actual calendar. Also I was using invoke and not clicklink, because we don't have alt tags for our calendar images yet in our HTML. I'm planning to try to do more with this when we do, so I'm very interested in what you find out. I don't recall having luck with Javascript popup windows in the HTTPUnit version, but I didn't try very hard.
-- Lisa
-------------- Original message from Robert Bram <Robert.Bram@colesmyer.com.au>: --------------
>
> Hi All!
>
> I have a page with the following on it:
>
> Calendar Popup Testing:
> > name="calendarPopupLink" id="calendarPopupLink">Click me to test Calendar
> Popup.
>
> Date: > disabled="disabled"/>
>
>
> The source for CalendarPopup is here:
> http://www.mattkruse.com/javascript/calendarpopup/source.html
>
> The popup displays a calender with the HTML title of "Calendar". My tests
> for this page and the popup are:
>
> > label="Click me to test Calendar Popup"/>
>
> > text="Calendar"
> regex="false" />
>
> Clicklink says it works, but the resulting page is not the popup - it is
> still the 'base' page.
>
> The error for verifytitle is:
> com.canoo.webtest.engine.StepFailedException: Wrong document title found!
> Expected "Calendar" but got "IBM WebSphere Portal", Step: VerifyTitle at
> C:\eTech\eEmployment\test\web\usecases\eJobRequisition\UC_EJR_07SelectDatePo
> pup\selectDatePopupTest.xml:79: with (text="Calendar", stepId="Verify
> Calendar Popup - check for title text ", regex="false",
> stepType="verifytitle")
>
> Does this mean Web Canoo cannot handle javascript popups or is there
> something funky in the CalendarPopup.js that confuses Web Canoo?
>
> Any advice would be most appreciated!
>
> Rob
> :)
>
> Robert Mark Bram
> Coles Myer Ltd. - e-Portal Team
> Level 3, Module 3
> 800 Toorak Rd
> Tooronga, VIC, 3146
> Phone: (+613) 9829 6856
> Email: Robert.Bram@colesmyer.com.au
>
>
> This email and any attachments may contain privileged and confidential
> information and are intended for the named addressee only. If you have received
> this e-mail in error, please notify the sender and delete this e-mail
> immediately. Any confidentiality, privilege or copyright is not waived or lost
> because this e-mail has been sent to you in error. It is your responsibility to
> check this e-mail and any attachments for viruses. No warranty is made that
> this material is free from computer virus or any other defect or error. Any
> loss/damage incurred by using this material is not the sender's responsibility.
> The sender's entire liability will be limited to resupplying the material.
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
--NextPart_Webmail_9m3u9jl4l_27892_1100559194_0
Content-Type: text/html
Content-Transfer-Encoding: 8bit
<html>
<!-- BEGIN WEBMAIL STATIONERY -->
<head></head>
<body>
<!-- WEBMAIL STATIONERY noneset -->
<DIV></DIV>
<DIV>Robert,</DIV>
<DIV>Have you tried this with the new HtmlUnit-based WebTest? I 'm using that and I played around with invoking a calendar popup. I could verify text on it, but the resulting page only had some text on it, not the actual calendar. Also I was using invoke and not clicklink, because we don't have alt tags for our calendar images yet in our HTML. I'm planning to try to do more with this when we do, so I'm very interested in what you find out. I don't recall having luck with Javascript popup windows in the HTTPUnit version, but I didn't try very hard.</DIV>
<DIV>-- Lisa</DIV>
<DIV> </DIV><BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message from Robert Bram <Robert.Bram@colesmyer.com.au>: -------------- <BR><BR><BR>> <BR>> Hi All! <BR>> <BR>> I have a page with the following on it: <BR>> <BR>> Calendar Popup Testing: <BR>> <A onclick='javascript:calendar1.select <BR>> (document.getElementById ("startDate"),"calendarPopupLink","dd/MM/yyyy");' href="javascript:void(0);" <BR>> name="calendarPopupLink" id="calendarPopupLink">Click me to test Calendar <BR>> Popup</A>. <BR>>
<FORM id=calendarForm method=post><BR>> Date: <INPUT id=startDate size=12 name=startDate <BR>> disabled="disabled"/> <BR>> </FORM><BR>> <BR>> The source for CalendarPopup is here: <BR>> http://www.mattkruse.com/javascript/calendarpopup/source.html <BR>> <BR>> The popup displays a calender with the HTML title of "Calendar". My tests <BR>> for this page and the popup are: <BR>> <BR>> <CLICKLINK <BR stepid="Click test Calendar Popup">> label="Click me to test Calendar Popup"/> <BR>> <BR>> <VERIFYTITLE <BR stepid="Verify Calendar Popup - check for title text ">> text="Calendar" <BR>> regex="false" /> <BR>> <BR>> Clicklink says it works, but the resulting page is not the popup - it is <BR>> still the 'base' page. <BR>> <BR>> The error for verifytitle is: <BR>> com.canoo.webtest.engine.StepFailedException: Wrong document title found! <BR>> Expected "Calendar" but got "IBM WebSphere Portal", Step: VerifyTitle at <BR>> C:\eTech\eEmployment\test\web\usecases\eJobRequisition\UC_EJR_07SelectDatePo <BR>> pup\selectDatePopupTest.xml:79: with (text="Calendar", stepId="Verify <BR>> Calendar Popup - check for title text ", regex="false", <BR>> stepType="verifytitle") <BR>> <BR>> Does this mean Web Canoo cannot handle javascript popups or is there <BR>> something funky in the CalendarPopup.js that confuses Web Canoo? <BR>> <BR>> Any advice would be most appreciated! <BR>> <BR>> Rob <BR>> :) <BR>> <BR>> Robert Mark Bram <BR>> Coles Myer Ltd. - e-Portal Team <BR>> Level 3, Module 3 <BR>> 800 Toorak Rd <BR>> Tooronga, VIC, 3146 <BR>> Phone: (+613) 9829 6856 <BR>> Email: Robert.Bram@colesmyer.com.au <BR>> <BR>> <BR>> This email and any attachments may contain privileged and confidential <BR>> information and are intended for the named addressee only. If you have received <BR>> this e-mail in error, please notify the sender and delete this e-mail <BR>> immediately. Any confidentiality, privilege or copyright is not waived or lost <BR>> because this e-mail has been sent to you in error. It is your responsibility to <BR>> check this e-mail and any attachments for viruses. No warranty is made that <BR>> this material is free from computer virus or any other defect or error. Any <BR>> loss/damage incurred by using this material is not the sender's responsibility. <BR>> The sender's entire liability will be limited to resupplying the material. <BR>> _______________________________________________ <BR>> WebTest mailing list <BR>> WebTest@lists.canoo.com <BR>> http://lists.canoo.com/mailman/listinfo/webtest </BLOCKQUOTE>
<!-- END WEBMAIL STATIONERY -->
</body>
</html>
--NextPart_Webmail_9m3u9jl4l_27892_1100559194_0--