Menu

JavaScript

Anonymous
2002-10-09
2003-11-10
  • Anonymous

    Anonymous - 2002-10-09

    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

     
    • Russell Gold

      Russell Gold - 2002-10-09

      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.

       
    • Anonymous

      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.

       

Log in to post a comment.

Auth0 Logo