[ptt-users] DHTML seems to break testgen4web
Olivier Dony
olivier.dony at denali.be
Tue Aug 28 06:31:26 PDT 2007
On Aug 28, 2007, at 5:36 AM, Geoff Hill wrote:
> Hi again list
Hi,
> Evaluating TestMaker5 I have come across another issue for my testing.
>
> I am trying to build some test scripts using testgen4web (ie
> Recording).
>
> The app I am testing makes extensive use of dynamic menus - when a
> header tab is rolled over a javascript is run which users innerHtml
> to create the next level of menus.
>
> What testgen4web seems to do is record the click on the ultimate
> submenus item, but not the mouseovers of the higher levels.
>
> When the test is replayed, no onMouseOver is generated, so the
> submenu DOM objects DON'T EVEN EXIST when the script is replayed
> (neither in FireFox nor in TestMaker)
>
> Does this sound like something I am doing wrong, or is it just a
> limitation of the tools?
I believe this is a current limitation of the tools indeed, and I do
not see any way to add a custom 'test step' in TG4W to perform the
"mouse over" required.
However the HTMLUnit library that is used to execute the TG4W tests
in testmaker *does* support simulating mouseOvers on arbitratry DOM
elements.
Therefore it might be possible to workaround this issue, at least for
the execution of the test withing TestMaker, by manually modifying
the jython script resulting from the TG4W import.
(Note that I have not tried this, and you may need to modify the
testmaker class that actually invokes HTMLUnit, as I do not think you
can directly access it from the jython script)
And while playing your scenario in TG4W you could add 'delay steps'
during which you would manually move the mouse over the required
element... but that is really suboptimal, I know.
HTH,
PS: the selenium-ide plugin is also being studied as an alternative
way of recording test scenarios, and it *does* support mouse-over
actions
--
Olivier Dony,
Denali s.a., "Bridging the gap between Business and IT"
Rue de Clairvaux 8, B-1348 Louvain-la-Neuve, Belgium
Office: +32 10 43 99 51 Fax: +32 10 43 99 52
www.denali.be
Legal Notice: This message may contain confidential and/or privileged
information. If you are not the addressee or authorized to receive
this for the addressee, you must not use, copy, disclose or take any
action based on this message or any information herein. If you have
received this message by mistake, please advise the sender
immediately by return e-mail and delete this message from your
system. Thank you for your cooperation.
More information about the Users
mailing list