Hi,

I've just been thinking and what I'm trying to do is
set my authentication within my TestCase, but my
deployed TestCase is also protected from users who
have not logged in. 

So that means I cannot set the credentials in my
TestCase until I have set the credentials?!!!

Unless of course the Ant task first sets the
credentials in the non-deployed TestCase?

Now I'm confused :-(

Charlene


 --- Charlene Mitchell <[EMAIL PROTECTED]>
wrote: > Hi,
> 
> I've read the docs (and the previous replies), and
> I've set up the ant task (especially referring to:
> howto_ant_cactus.html).
> Deployed I have a war file containing the specified
> lib files, the web.xml file and my single Cactus
> Unit
> Test Case (also, of course, I have my application
> deployed in a separate ear file).
> 
> Can someone just confirm that the following
> classpath
> thinking for the Ant/JUnit task is correct (ie -not-
> what is deployed in the war):
>   * I have to include a cactus and log_client
> property
> file
>   * I have to include my Test Case (even though it's
> deployed in the war)
>   * this means I have to include my application code
> (e.g. home and remote) - else the test can't run
>   * this in turn wants me to include the Application
> Server client classes 
> 
> Is the above assumption right? (if I do not do all
> this then I cannot get the test to even begin).
> 
> Because there are 2 identical Cactus Unit Test cases
> (one in the JUnit task classpath, the other
> deployed),
> where do I specify the username/password as
> mentioned
> in your previous e-mail?
>  request.setAuthentication(new FormAuthentication(
>     System.getProperty("uid"),
> System.getProperty("pwd")));
> Is this picked up from the Application Server or
> from
> the Ant task?
> 
> Even if I hardcode it in the test I'm getting an
> authentication exception that principal = null.
> 
> Thanks
> 
> Charlene
> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> <mailto:cactus-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:cactus-user-help@;jakarta.apache.org>
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@;jakarta.apache.org>

Reply via email to