RE: Can I pass parameters to ServletTestCase ?
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <AC88859D4C3CF747BC0FA323957C463209574DF2@USCOBRMFA-SE-70.northamerica.cexp.com> |
If you are interested in passing parameters, take a look at this page, http://jakarta.apache.org/cactus/writing/howto_testcase.html, under Step 6. I haven't actually used this functionality. I am still having a problem running cactus tests from a JUnit TestRunner. The only test runner I can use at this point is ServletTestRunner. So, it is not looking like Cactus will be used if I can't resolve the problem of running cactus tests from the command line. I think this forum is sort of dead. Hope that helps, Dan -----Original Message----- From: Jean-Charles Giardina [mailto:[email protected]] Sent: Wednesday, November 22, 2006 8:26 AM To: Cactus User Subject: Can I pass parameters to ServletTestCase ? Hi, Can I pass URL parameters to a ServletTestCase ? I want to test more and more value with the same test method. I don't want to recompile to change value. I want to use an URL like : http://localhost/ServletTestRunner?suite=my.tests.MyTest&foo=bar where "foo" is the parameter name and "bar" is the parameter value. Thks --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]