I'm trying to construct a Cactus test that involves stringing together several HTTP requests. Something like:
1. Make request A (call method on servlet A) 2. Output is a list of items (don't know ahead of time how many will be returned) 3. Make request B for each item on the list (call method on servlet B, passing a parameter from the output of the servlet A method, n times) Does anyone have any advice on doing something like this? The problems are that: - I can't really make both requests A and B inside one test method, since inside there I cannot change any request parameters (I only have a handle on HttpServletRequestWrapper, rather that WebRequest) - Ideally I could dynamically create a test suite that includes one test that checks request A and then n tests to check request B. But to do this I need to see the output of request A inside my static suite() method. This seems to be hard as I have no access to any request/response objects. - If I call another test case or suite from within my suite() method, all I get back is a TestResult object, whereas I really need some custom output. I can't even examine the state of the test case object, since the suite() method is executed in the client-side instance whereas the test itself happens in the server-side instance. Should I be using some tool other that Cactus for this kind of testing? Thanks, Marko Balabanovic -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
