Correct. I have a DB on the server end containing a list of Themes. Each theme contains a list of Images. I need to simulate what happens by picking a random theme and image and hitting the servlet with it.


Alternatively, I was going to try to move this logic into the testXXX() method and do everything on the server side, but that would require me to implement HttpServletRequest and control what request/response each call gets and anyway, as you well know, it gets out of control very quickly.

There is no way for me to guess a valid value ahead of time because the themes, images are referenced by ID which is automatically generated by the underlying DB and these change whenever a row is added or removed. Before each test, I regenerate the DB data and this causes the underlying IDs to change.

        Any suggestions on what I can do?

Gili

Vincent Massol wrote:
Hi Gili,

Are you sure you need to contact the server? Why can't you guess a valid
value?

Is that the real use case? I mean does your client application have to call
the server side before it can call your business method?

-Vincent


-----Original Message-----
From: Gili [mailto:[EMAIL PROTECTED]
Sent: vendredi 6 mai 2005 19:28
To: cactus-user@jakarta.apache.org
Subject: Contacting the container from beginXXX()

Hi,

    I need to be able to contact the container from within my
beginXXX() method because that method needs to invoke a servlet to
retrieve information which will get stuffed into the WebRequest object.
Is there a way to get the test server URL from within beginXXX()?

Thanks,
Gili




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to