Discussion:
[Httpunit-develop] Is there an alternative for HttpUnit?
Yonatan Taub
2004-03-18 10:14:50 UTC
Permalink
Recently I've been asked to develop a set of tests for a web
application.
This means simulating user interaction with web pages such as clicking
links, buttons, filling text fields and submitting forms. This also
means that a JavaScript engine must be provided as part of the
framework.
As the development environment I'm working at is Java, I've used JUnit
in combination with HttpUnit.

At first, everything seemed to work fine.
But soon, problems started to arose:
- Quite simple JavaScript that Mozilla 1.2.1 managed threw errors.
- Mimicking user interactions with <input> elements didn't always
succeed.
- Had problems with "disable" state of buttons.
- Failed to find <img> elements inside a table cell.

All of these and more problems, substantially reduced my ability to
write
proper tests.

My questions are:
- Are there any other web testing frameworks out there besides
HttpUnit
(preferable Java testing framework)?
- My application is designed to work in Internet Explorer 6.
If there are no Java related testing frameworks which provide this
functionality, please provide other testing frameworks both open
source
and commercial.
Gil Hauer
2004-03-18 10:29:01 UTC
Permalink
Hi Yonatan,

I've been looking at several opensource frameworks. One package that
seems nice is Anteater but I have not installed and used it yet. It
seems like development has stalled on it though.

Puffin also held some promise, although it is based on Python and does
not match your Java criteria. It too seems to be stalled.

Gil
Post by Yonatan Taub
Recently I've been asked to develop a set of tests for a web
application.
This means simulating user interaction with web pages such as clicking
links, buttons, filling text fields and submitting forms. This also
means that a JavaScript engine must be provided as part of the
framework.
As the development environment I'm working at is Java, I've used JUnit
in combination with HttpUnit.
At first, everything seemed to work fine.
- Quite simple JavaScript that Mozilla 1.2.1 managed threw errors.
- Mimicking user interactions with <input> elements didn't always
succeed.
- Had problems with "disable" state of buttons.
- Failed to find <img> elements inside a table cell.
All of these and more problems, substantially reduced my ability to
write
proper tests.
- Are there any other web testing frameworks out there besides
HttpUnit
(preferable Java testing framework)?
- My application is designed to work in Internet Explorer 6.
If there are no Java related testing frameworks which provide this
functionality, please provide other testing frameworks both open
source
and commercial.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Httpunit-develop mailing list
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
Yonatan Taub
2004-03-18 10:43:14 UTC
Permalink
Thanks.

I will look into these frameworks.
I'm so very sorry that HttpUnit doesn't meet my goals.
Its functionality is exactly what I seek.
However, it doesn't always work.
I've been looking for a couple of days for a similiar framework but
haven't found yet.
Post by Gil Hauer
Hi Yonatan,
I've been looking at several opensource frameworks. One package that
seems nice is Anteater but I have not installed and used it yet. It
seems like development has stalled on it though.
Puffin also held some promise, although it is based on Python and does
not match your Java criteria. It too seems to be stalled.
Gil
Eran Harel
2004-03-18 11:01:13 UTC
Permalink
Johnny...

Try HtmlUnit.

The JS support is just as limited, but some tests are easier to write.

Eran.

-----Original Message-----
From: httpunit-develop-***@lists.sourceforge.net [mailto:httpunit-develop-***@lists.sourceforge.net]On Behalf Of Yonatan Taub
Sent: Thursday, March 18, 2004 1:27 PM
To: httpunit-***@lists.sourceforge.net
Subject: [Httpunit-develop] Is there an alternative for HttpUnit?


Recently I've been asked to develop a set of tests for a web
application.
This means simulating user interaction with web pages such as clicking
links, buttons, filling text fields and submitting forms. This also
means that a JavaScript engine must be provided as part of the
framework.
As the development environment I'm working at is Java, I've used JUnit
in combination with HttpUnit.

At first, everything seemed to work fine.
But soon, problems started to arose:
- Quite simple JavaScript that Mozilla 1.2.1 managed threw errors.
- Mimicking user interactions with <input> elements didn't always
succeed.
- Had problems with "disable" state of buttons.
- Failed to find <img> elements inside a table cell.

All of these and more problems, substantially reduced my ability to
write
proper tests.

My questions are:
- Are there any other web testing frameworks out there besides
HttpUnit
(preferable Java testing framework)?
- My application is designed to work in Internet Explorer 6.
If there are no Java related testing frameworks which provide this
functionality, please provide other testing frameworks both open
source
and commercial.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Yonatan Taub
2004-03-18 11:15:03 UTC
Permalink
Post by Eran Harel
Johnny...
Try HtmlUnit.
The JS support is just as limited, but some tests are easier to write.
Eran.
Will look into it.
However, even if the tests are easier to write, it still doesn't help
me. I've got to have the functionality.
h***@gjsweeney.com
2004-03-18 11:38:08 UTC
Permalink
Post by Yonatan Taub
Recently I've been asked to develop a set of tests for a web
application.
<snip/>
Post by Yonatan Taub
- Are there any other web testing frameworks out there besides
HttpUnit
(preferable Java testing framework)?
- My application is designed to work in Internet Explorer 6.
If there are no Java related testing frameworks which provide this
functionality, please provide other testing frameworks both open
source
and commercial.
Haven't tried any of these .....

An alternative to httpunit might be http://webtest.canoo.com/
A non-Java tool for IE is http://sourceforge.net/projects/samie

HTH,

Graeme -
Yonatan Taub
2004-03-18 11:44:19 UTC
Permalink
Thanks, but already tried both.
No good for my requirements.
Post by h***@gjsweeney.com
Post by Yonatan Taub
Recently I've been asked to develop a set of tests for a web
application.
<snip/>
Post by Yonatan Taub
- Are there any other web testing frameworks out there besides
HttpUnit
(preferable Java testing framework)?
- My application is designed to work in Internet Explorer 6.
If there are no Java related testing frameworks which provide this
functionality, please provide other testing frameworks both open
source
and commercial.
Haven't tried any of these .....
An alternative to httpunit might be http://webtest.canoo.com/
A non-Java tool for IE is http://sourceforge.net/projects/samie
HTH,
Graeme -
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Httpunit-develop mailing list
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
CORUM, M E [AG/1000]
2004-03-18 19:25:20 UTC
Permalink
The "disable" state of buttons problem was fixed by a patch that I
submitted. My understanding is that it is in the latest CVS revision.
When 1.5.5 comes out, my hope is that this fix will be there.

Note that JavaScript that some browsers take is not always "standard"
JavaScript. I've had more success if I adopt a truly test-first
approach to developing the JavaScript. The combination of httpUnit and
JsUnit can help you to develop modular and "standard" JavaScript.

Having said that, httpUnit is missing support for some JavaScript objects
and actions. I think we as the user community for this very good tool
should pull together to help the original developers finish it out. If
we can get solid descriptions of missing functionality and a nod from the
admins/developers on the SourceForge page, we should be able to submit
patches (with tests) that they will be able to incorporate into future
releases.

Is there a way we could use this list to vote for a "most needed missing
capability" so that somebody could work on that? When a project I was
working on needed the ability for httpUnit to understand when JavaScript
was used to modify the state of a button from disabled to enabled and back,
I sent a few messages on the list, got some pointers of where to look from
the developers and started working on it with another developer at my site.
Even though we had no time, we had an immediate need so we spec'd out an
amount of time we would spend before giving up (I believe it was 8 hours).
We were able to get the patch made within our allowed time a few hours at
a time over several days and submitted the patch.

I found the feature requests list at this URL:

http://sourceforge.net/tracker/?atid=356550&group_id=6550&func=browse

Perhaps we could vote for our most needed feature somehow and then figure
out a way to assign the work. I'm willing to be involved. This is a
valuable tool for us.

Mike Corum

-----Original Message-----
Message: 1
Organization: N-Layers
Date: 18 Mar 2004 13:26:31 +0200
Subject: [Httpunit-develop] Is there an alternative for HttpUnit?
Recently I've been asked to develop a set of tests for a web
application.
This means simulating user interaction with web pages such as clicking
links, buttons, filling text fields and submitting forms. This also
means that a JavaScript engine must be provided as part of the
framework.
As the development environment I'm working at is Java, I've used JUnit
in combination with HttpUnit.
At first, everything seemed to work fine.
- Quite simple JavaScript that Mozilla 1.2.1 managed threw errors.
- Mimicking user interactions with <input> elements didn't always
succeed.
- Had problems with "disable" state of buttons.
- Failed to find <img> elements inside a table cell.
All of these and more problems, substantially reduced my ability to
write
proper tests.
- Are there any other web testing frameworks out there besides
HttpUnit
(preferable Java testing framework)?
- My application is designed to work in Internet Explorer 6.
If there are no Java related testing frameworks which provide this
functionality, please provide other testing frameworks both open
source
and commercial.
Nick Neuberger
2004-03-18 20:12:04 UTC
Permalink
I'm in need of some javascript support as well. I may be will to help!

Our systems heavily rely on javascript to create a menu on our pages.

Currently, I'm using "getText" finding the specific URL in the full text,
then submitting a form. It's very painful. Right now, I've got javascript
turned off because it kept failing.

Heck, even sometype of macro recorder to build the code automatically. I
would really be interested in that. I'm thinking about using solex, but it
only works within eclipse and you can't run it from an ANT deploy/test
script.

I might be able to contrib sometime to it.

Nick Neuberger
Post by Eran Harel
-----Original Message-----
Sent: Thursday, March 18, 2004 3:25 PM
Subject: [Httpunit-develop] RE: Is there an alternative for HttpUnit?
The "disable" state of buttons problem was fixed by a patch that I
submitted. My understanding is that it is in the latest CVS revision.
When 1.5.5 comes out, my hope is that this fix will be there.
Note that JavaScript that some browsers take is not always "standard"
JavaScript. I've had more success if I adopt a truly test-first
approach to developing the JavaScript. The combination of
httpUnit and
JsUnit can help you to develop modular and "standard" JavaScript.
Having said that, httpUnit is missing support for some
JavaScript objects
and actions. I think we as the user community for this very
good tool
should pull together to help the original developers finish
it out. If
we can get solid descriptions of missing functionality and a
nod from the
admins/developers on the SourceForge page, we should be able to submit
patches (with tests) that they will be able to incorporate into future
releases.
Is there a way we could use this list to vote for a "most
needed missing
capability" so that somebody could work on that? When a project I was
working on needed the ability for httpUnit to understand when
JavaScript
was used to modify the state of a button from disabled to
enabled and back,
I sent a few messages on the list, got some pointers of where
to look from
the developers and started working on it with another
developer at my site.
Even though we had no time, we had an immediate need so we
spec'd out an
amount of time we would spend before giving up (I believe it
was 8 hours).
We were able to get the patch made within our allowed time a
few hours at
a time over several days and submitted the patch.
http://sourceforge.net/tracker/?atid=356550&group_id=6550&func=browse
Perhaps we could vote for our most needed feature somehow and
then figure
out a way to assign the work. I'm willing to be involved. This is a
valuable tool for us.
Mike Corum
-----Original Message-----
Message: 1
Organization: N-Layers
Date: 18 Mar 2004 13:26:31 +0200
Subject: [Httpunit-develop] Is there an alternative for HttpUnit?
Recently I've been asked to develop a set of tests for a web
application.
This means simulating user interaction with web pages such
as clicking
links, buttons, filling text fields and submitting forms. This also
means that a JavaScript engine must be provided as part of the
framework.
As the development environment I'm working at is Java, I've
used JUnit
in combination with HttpUnit.
At first, everything seemed to work fine.
- Quite simple JavaScript that Mozilla 1.2.1 managed threw errors.
- Mimicking user interactions with <input> elements didn't always
succeed.
- Had problems with "disable" state of buttons.
- Failed to find <img> elements inside a table cell.
All of these and more problems, substantially reduced my ability to
write
proper tests.
- Are there any other web testing frameworks out there besides
HttpUnit
(preferable Java testing framework)?
- My application is designed to work in Internet Explorer 6.
If there are no Java related testing frameworks which provide this
functionality, please provide other testing frameworks both open
source
and commercial.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Httpunit-develop mailing list
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
- - - - - -
This e-mail message is intended only for the use of the individual or entity
identified in the alias address of this message and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution of this e-mail message is strictly prohibited. If you have
received this e-mail message in error, please notify the sender immediately
by reply e-mail and delete this message from your system. Thank you.
Russell Gold
2004-03-19 00:16:05 UTC
Permalink
Post by CORUM, M E [AG/1000]
Having said that, httpUnit is missing support for some JavaScript
objects
and actions. I think we as the user community for this very good tool
should pull together to help the original developers finish it out.
As the one-and-only "original developer" I heartily endorse this
approach. I have recently been stepping up incorporation of patches and
implementation of bug fixes and enhancements, but I can only do so
much...
Post by CORUM, M E [AG/1000]
If
we can get solid descriptions of missing functionality and a nod from
the
admins/developers on the SourceForge page, we should be able to submit
patches (with tests) that they will be able to incorporate into future
releases.
You've got the nod. Patches with tests are the way to go.
Daniel Sheppard
2004-03-19 01:32:01 UTC
Permalink
Post by Yonatan Taub
Thanks, but already tried both.
No good for my requirements.
May I ask which of your requirements SAMIE failed to meet?
#####################################################################################
This email has been scanned by MailMarshal, an email content filter.
#####################################################################################
Yonatan Taub
2004-03-21 06:07:01 UTC
Permalink
It wasn't stable.
I did a simple HTTP request which redirects.
Sometimes the page would load immedaitely (quite rare actually),
sometimes it took a minute or two, and sometimes it got stuck.
Post by Daniel Sheppard
Post by Yonatan Taub
Thanks, but already tried both.
No good for my requirements.
May I ask which of your requirements SAMIE failed to meet?
#####################################################################################
This email has been scanned by MailMarshal, an email content filter.
#####################################################################################
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Httpunit-develop mailing list
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
d***@yahoo.com
2004-03-22 10:59:01 UTC
Permalink
Hi all,
I'm getting a script exception when I run a test,
it displays the whole javascript and then the trace
below. I was wondering is there anyway to narrow down
where it's having the syntax error?


Cheers
Dave

com.meterware.httpunit.ScriptException: Script ' -The
javascript appears here its quite long so I cut it
out- !' failed: SyntaxError: syntax error (httpunit;
line 370)
at
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.handleScriptException(JavaScript.java:192)
at
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.executeScript(JavaScript.java:126)
at
com.meterware.httpunit.scripting.ScriptableDelegate.runScript(ScriptableDelegate.java:64)
at
com.meterware.httpunit.parsing.ScriptFilter.getTranslatedScript(ScriptFilter.java:150)
at
com.meterware.httpunit.parsing.ScriptFilter.endElement(ScriptFilter.java:131)
at
org.cyberneko.html.HTMLTagBalancer.endElement(Unknown
Source)
at
org.cyberneko.html.HTMLScanner$SpecialScanner.scan(Unknown
Source)
at
org.cyberneko.html.HTMLScanner.scanDocument(Unknown
Source)
at org.cyberneko.html.HTMLConfiguration.parse(Unknown
Source)
at org.cyberneko.html.HTMLConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown
Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown
Source)
at
com.meterware.httpunit.parsing.NekoHTMLParser.parse(NekoHTMLParser.java:41)
at
com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:244)
at
com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:1014)
at
com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.java:611)
at
com.meterware.httpunit.javascript.JavaScript$Window.initialize(JavaScript.java:424)
at
com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java:80)
at
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associate(JavaScriptEngineFactory.java:46)
at
com.meterware.httpunit.RequestContext.runScripts(RequestContext.java:44)
at
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:119)
at
com.meterware.httpunit.WebClient.getResponse(WebClient.java:112)
at ExampleTest.testGoodLogin(ExampleTest.java:68)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
junit.framework.TestCase.runTest(TestCase.java:154)
at
junit.framework.TestCase.runBare(TestCase.java:127)
at
junit.framework.TestResult$1.protect(TestResult.java:106)
at
junit.framework.TestResult.runProtected(TestResult.java:124)
at
junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at
junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
Jack Li
2004-03-22 14:10:03 UTC
Permalink
I took a look the project samie but did not try it
yet. Sounds very interesting. I totally agree that
using the real browser is the best way to do test.

Can HTTPUNIT use the IE browser directly?

That would save us a lot time for the javascript
compatibility etc.

Thanks!
Han
Post by Yonatan Taub
Thanks, but already tried both.
No good for my requirements.
On Thu, 2004-03-18 at 15:37,
Post by h***@gjsweeney.com
Post by Yonatan Taub
Recently I've been asked to develop a set of
tests for a web
Post by h***@gjsweeney.com
Post by Yonatan Taub
application.
<snip/>
Post by Yonatan Taub
- Are there any other web testing frameworks out
there besides
Post by h***@gjsweeney.com
Post by Yonatan Taub
HttpUnit
(preferable Java testing framework)?
- My application is designed to work in Internet
Explorer 6.
Post by h***@gjsweeney.com
Post by Yonatan Taub
If there are no Java related testing
frameworks which provide this
Post by h***@gjsweeney.com
Post by Yonatan Taub
functionality, please provide other testing
frameworks both open
Post by h***@gjsweeney.com
Post by Yonatan Taub
source
and commercial.
Haven't tried any of these .....
An alternative to httpunit might be
http://webtest.canoo.com/
Post by h***@gjsweeney.com
A non-Java tool for IE is
http://sourceforge.net/projects/samie
Post by h***@gjsweeney.com
HTH,
Graeme -
-------------------------------------------------------
Post by Yonatan Taub
Post by h***@gjsweeney.com
This SF.Net email is sponsored by: IBM Linux
Tutorials
Post by h***@gjsweeney.com
Free Linux tutorial presented by Daniel Robbins,
President and CEO of
Post by h***@gjsweeney.com
GenToo technologies. Learn everything from
fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Post by Yonatan Taub
Post by h***@gjsweeney.com
_______________________________________________
Httpunit-develop mailing list
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
-------------------------------------------------------
Post by Yonatan Taub
This SF.Net email is sponsored by: IBM Linux
Tutorials
Free Linux tutorial presented by Daniel Robbins,
President and CEO of
GenToo technologies. Learn everything from
fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Post by Yonatan Taub
_______________________________________________
Httpunit-develop mailing list
https://lists.sourceforge.net/lists/listinfo/httpunit-develop


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
Yonatan Taub
2004-03-22 14:29:16 UTC
Permalink
Post by Jack Li
I took a look the project samie but did not try it
yet. Sounds very interesting. I totally agree that
using the real browser is the best way to do test.
Indeed.
Post by Jack Li
Can HTTPUNIT use the IE browser directly?
No, it can't. You can't even use it indirectly.
Post by Jack Li
That would save us a lot time for the javascript
compatibility etc.
I'm currently evaluating a product called WebFT by RadView
(www.radview.com). It seems OK although it will pose other problems for
the tests requirements I have.
Patrick Lightbody
2004-03-22 14:41:03 UTC
Permalink
I've actually been looking around for something that could control IE
directly, but nothing has come up so far (at least, that is free and
scriptable from java or java-like language).
Post by Eran Harel
-----Original Message-----
Sent: Monday, March 22, 2004 8:09 AM
Subject: [Httpunit-develop] Can HTTPUNIT use the IE browser directly?
I took a look the project samie but did not try it
yet. Sounds very interesting. I totally agree that
using the real browser is the best way to do test.
Can HTTPUNIT use the IE browser directly?
That would save us a lot time for the javascript
compatibility etc.
Thanks!
Han
Post by Yonatan Taub
Thanks, but already tried both.
No good for my requirements.
On Thu, 2004-03-18 at 15:37,
Post by h***@gjsweeney.com
Post by Yonatan Taub
Recently I've been asked to develop a set of
tests for a web
Post by h***@gjsweeney.com
Post by Yonatan Taub
application.
<snip/>
Post by Yonatan Taub
- Are there any other web testing frameworks out
there besides
Post by h***@gjsweeney.com
Post by Yonatan Taub
HttpUnit
(preferable Java testing framework)?
- My application is designed to work in Internet
Explorer 6.
Post by h***@gjsweeney.com
Post by Yonatan Taub
If there are no Java related testing
frameworks which provide this
Post by h***@gjsweeney.com
Post by Yonatan Taub
functionality, please provide other testing
frameworks both open
Post by h***@gjsweeney.com
Post by Yonatan Taub
source
and commercial.
Haven't tried any of these .....
An alternative to httpunit might be
http://webtest.canoo.com/
Post by h***@gjsweeney.com
A non-Java tool for IE is
http://sourceforge.net/projects/samie
Post by h***@gjsweeney.com
HTH,
Graeme -
-------------------------------------------------------
Post by Yonatan Taub
Post by h***@gjsweeney.com
This SF.Net email is sponsored by: IBM Linux
Tutorials
Post by h***@gjsweeney.com
Free Linux tutorial presented by Daniel Robbins,
President and CEO of
Post by h***@gjsweeney.com
GenToo technologies. Learn everything from
fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Post by Yonatan Taub
Post by h***@gjsweeney.com
_______________________________________________
Httpunit-develop mailing list
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
-------------------------------------------------------
Post by Yonatan Taub
This SF.Net email is sponsored by: IBM Linux
Tutorials
Free Linux tutorial presented by Daniel Robbins,
President and CEO of
GenToo technologies. Learn everything from
fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Post by Yonatan Taub
_______________________________________________
Httpunit-develop mailing list
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Httpunit-develop mailing list
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
Yonatan Taub
2004-03-22 14:57:09 UTC
Permalink
Post by Patrick Lightbody
I've actually been looking around for something that could control IE
directly, but nothing has come up so far (at least, that is free and
scriptable from java or java-like language).
There is SAMIE, which is controlled via perl scripts although I've
experienced many problems with it.
Misha Rybalov
2004-03-22 14:53:11 UTC
Permalink
No, HttpUnit can't use the IE browser. HttpUnit emulates the Http calls that a browser would do, but it doesn't control an existing browser. So HttpUnit is browser independent, while Samie is IE dependent, on Windows.

I've been using Samie for close to a year now, but I've had to add lots of new functionality to it. It's worked for the app that I'm testing because it's a JavaScript intense app and HttpUnit couldn't handle it (lots of IE specific JavaScript). More accurately, the Rhino JavaScript engine has problems with JavaScript that works OK in IE.

Anyway, if you don't care about testing on non-Windows platforms and if you're mainly testing for IE, then give Samie a shot. Remember, though, that you will most likely have to modify it to do the things you want.

Misha

-----Original Message-----
From: httpunit-develop-***@lists.sourceforge.net
[mailto:httpunit-develop-***@lists.sourceforge.net]On Behalf Of Jack
Li
Sent: Monday, March 22, 2004 11:09 AM
To: httpunit-***@lists.sourceforge.net
Subject: [Httpunit-develop] Can HTTPUNIT use the IE browser directly?


I took a look the project samie but did not try it
yet. Sounds very interesting. I totally agree that
using the real browser is the best way to do test.

Can HTTPUNIT use the IE browser directly?

That would save us a lot time for the javascript
compatibility etc.

Thanks!
Han
Post by Yonatan Taub
Thanks, but already tried both.
No good for my requirements.
On Thu, 2004-03-18 at 15:37,
Post by h***@gjsweeney.com
Post by Yonatan Taub
Recently I've been asked to develop a set of
tests for a web
Post by h***@gjsweeney.com
Post by Yonatan Taub
application.
<snip/>
Post by Yonatan Taub
- Are there any other web testing frameworks out
there besides
Post by h***@gjsweeney.com
Post by Yonatan Taub
HttpUnit
(preferable Java testing framework)?
- My application is designed to work in Internet
Explorer 6.
Post by h***@gjsweeney.com
Post by Yonatan Taub
If there are no Java related testing
frameworks which provide this
Post by h***@gjsweeney.com
Post by Yonatan Taub
functionality, please provide other testing
frameworks both open
Post by h***@gjsweeney.com
Post by Yonatan Taub
source
and commercial.
Haven't tried any of these .....
An alternative to httpunit might be
http://webtest.canoo.com/
Post by h***@gjsweeney.com
A non-Java tool for IE is
http://sourceforge.net/projects/samie
Post by h***@gjsweeney.com
HTH,
Graeme -
-------------------------------------------------------
Post by Yonatan Taub
Post by h***@gjsweeney.com
This SF.Net email is sponsored by: IBM Linux
Tutorials
Post by h***@gjsweeney.com
Free Linux tutorial presented by Daniel Robbins,
President and CEO of
Post by h***@gjsweeney.com
GenToo technologies. Learn everything from
fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Post by Yonatan Taub
Post by h***@gjsweeney.com
_______________________________________________
Httpunit-develop mailing list
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
-------------------------------------------------------
Post by Yonatan Taub
This SF.Net email is sponsored by: IBM Linux
Tutorials
Free Linux tutorial presented by Daniel Robbins,
President and CEO of
GenToo technologies. Learn everything from
fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Post by Yonatan Taub
_______________________________________________
Httpunit-develop mailing list
https://lists.sourceforge.net/lists/listinfo/httpunit-develop


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Russell Gold
2004-03-22 23:20:06 UTC
Permalink
On Monday, March 22, 2004, at 07:58 AM,
Post by d***@yahoo.com
Hi all,
I'm getting a script exception when I run a test,
it displays the whole javascript and then the trace
below. I was wondering is there anyway to narrow down
where it's having the syntax error?
Given Rhino's poor error reporting, the best thing might be to break
the script into procedures and try putting the procedures into separate
script blocks.

Loading...