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.
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.
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.
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 . . .