I'm using HttpUnit 1.4.1. How can I test a web page that uses JavaScript?
I tried downloading the "js.jar" file and put it in my classpath, but it still won't compile if I have this in my code - "JavaScript.run(webResponse) "
A detail explanation on how to test JavaScript functionality will be appreciated.
Thnaks,
-Sri
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First, I would recommend downloading the latest version, which is 1.4.6. 1.4.1 has no JavaScript support.
JavaScript.run( webResponse ) was something needed in a pre-release version and should no longer be used. If you try it, it will not compile.
Using JavaScript support is simple. For most operations there is really nothing special to do. It will run automatically unless you turn it off. Check the FAQ for more information.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-11-10
Hi,
Anyone who has done javascript validation testing using httpunit. Please send me any sample code of how to start after putting js.jar in classpath. Suppose I have a login page , if I keep both the username and password fields blank and submit the page. then a javascript alert comes. How do I test this functionality through httpunit? Where should I put my own .js files in order to be used by httpunit.
Kindly let me know about the same.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm using HttpUnit 1.4.1. How can I test a web page that uses JavaScript?
I tried downloading the "js.jar" file and put it in my classpath, but it still won't compile if I have this in my code - "JavaScript.run(webResponse) "
A detail explanation on how to test JavaScript functionality will be appreciated.
Thnaks,
-Sri
First, I would recommend downloading the latest version, which is 1.4.6. 1.4.1 has no JavaScript support.
JavaScript.run( webResponse ) was something needed in a pre-release version and should no longer be used. If you try it, it will not compile.
Using JavaScript support is simple. For most operations there is really nothing special to do. It will run automatically unless you turn it off. Check the FAQ for more information.
Hi,
Anyone who has done javascript validation testing using httpunit. Please send me any sample code of how to start after putting js.jar in classpath. Suppose I have a login page , if I keep both the username and password fields blank and submit the page. then a javascript alert comes. How do I test this functionality through httpunit? Where should I put my own .js files in order to be used by httpunit.
Kindly let me know about the same.