Menu

Running HttpUnit tests from a web browser

Help
2003-03-26
2003-03-28
  • Alejandro Ramirez

    How can I run HttpUnit tests from a web browser, so let's say I can create a web page on my intranet to run tests every time my app is deployed.

     
    • Steve Rumbles

      Steve Rumbles - 2003-03-28

      Create a page / jsp / whatever that posts to a servlet or Action Handler. Have the process method run something like:

      junit.textui.TestRunner.run(MyTest.class);
      junit.textui.TestRunner.run(MyOtherTest.class);

      etc. and forward to another page.

      You probably would want to hide this behind some sort of authentication so users are not slamming your intranet just for fun . . .

       

Log in to post a comment.

MongoDB Logo MongoDB