Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to test javascript ?

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you very much, Yuriy.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic