Getting the current page's URL is not that simple, since the IE DHTML model
doesn't allow scripts to read the URL value. IeUnit has integrated a COM
object, Win32Dom,
that allows you access almost any GUI object on the local desktop.
Take a look into the test case samples\Win32Dom\GetUrl.jst, it demonstrates
how you get the URL within a IeUnit test script.
cheers,
James
----- Original Message -----
From: "Dickson Van" <Dic...@ca...>
To: "James X. Li" <jam...@us...>;
<ieu...@li...>
Sent: Wednesday, November 01, 2006 2:09 PM
Subject: RE: [Ieunit-general] Internet Explorer crashes (Ie6 and Ie7)
afterextended usage
I tried splitting up the tests and running them with batch files with no
luck. The trick that worked for me involved _.closeWindow() and using
_.sleep() for a few minutes between tests, and increasing the minimal
waiting time to 2 seconds.
Another question, is there a property anywhere that stores the current
page's URL?
Thanks,
Dickson Van
QA Tester
CaseWare International Inc.
-----Original Message-----
From: ieu...@li...
[mailto:ieu...@li...] On Behalf Of James
X. Li
Sent: Tuesday, October 24, 2006 12:04 PM
To: Dickson Van; ieu...@li...
Subject: Re: [Ieunit-general] Internet Explorer crashes (Ie6 and Ie7)
afterextended usage
I had similar problem when I used IeUnit to test a cache server. The
test
script
simply visits many many web sites. The test usually crashes after 2 to 3
hours of
continues test on a 500MB laptop. The memory leak likely comes from the
low
level framework (e.g. JavaScript engine+COM+IE etc.).
The only work-around I know for this problem is to split the test into
multiple
test suites (e.g. directories for IeUnit), and start them separately
with a
batch script.
James X. Li
VisuMap Technologies Inc.
> Anyone else getting a Read/Write exceptions due to low memory, say
about
> after 5+ hours of continuous IEunit testing? Putting in more ram may
be
> a quick fix, but perhaps there's a long term solution to this memory
> leak.
>
> Anyone have any idea what could be the cause of this? I have a gig of
> ram, and my tests go through about a page a second and are expected to
> run for 6 hours limited by the speed of the plone server.
>
> Dickson
> QA Tester
> CaseWare International Inc.
>
>
------------------------------------------------------------------------
-
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Ieunit-general mailing list
> Ieu...@li...
> https://lists.sourceforge.net/lists/listinfo/ieunit-general
------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Ieunit-general mailing list
Ieu...@li...
https://lists.sourceforge.net/lists/listinfo/ieunit-general
|