12 Replies Latest reply on Jul 11, 2009 4:54 PM by Stan Silvert

    ServletTestRunner parameters

    Julian Salerno Newbie

      Hi all.

      I would like to pass unit test parameters thru to my tests via the ServletTestRunner servlet.

      For example:
      http://host:port/context/ServletTestRunner?suite=MyJSFUnitTestCase&xsl=cactus-report.xsl&MYPARAMNAME=MYPARAMVALUE

      Inside my test case class which extends ServletTestCase, I can get access to MYPARAMNAME=MYPARAMVALUE, even though I am exploring this field and the magic behind it:

      HttpServletRequestWrapper requestWrapper = super.request;

      So, is this by design, flaw, neither...or am I missing something ?

      regards
      julian