File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to test javascript ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to test javascript ?" Watch "How to test javascript ?" New topic
Author

How to test javascript ?

lily zou
Ranch Hand

Joined: Jan 15, 2002
Posts: 50
We are creating testing tool to test web applications using java. For pure html page, we can find out if the test cases pass or fail by outputting html code and comparing testing result pages to the correct result page. But this cann't apply to javascitp testing since we don't know how to invoke javascripting function from java's output stream.
I am wondering if there is anyone having any similiar experience and know how to solve it.
Any advice is highly appreciated.
Thanks,
Lily
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 411
I have a small tool on my page, which is written in JavaScript and suppose to test the UI (and happends to be free). It is not related to Java though, and I don't think there is a way to test JavaScript functionality from Java, except for using JNI and Microsoft WebBrowser component.
lily zou
Ranch Hand

Joined: Jan 15, 2002
Posts: 50
thank you very much, Yuriy.
 
IntelliJ Java IDE
 
subject: How to test javascript ?
 
Threads others viewed
[Spring Web Flow 2] Spring Web Flow 2 comes with direct support of Tests
Web Browsers
Functional Testing using jmeter
HOW TEST EJBS..?
Tomcat performance testing utility
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture