commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julián García <jgar...@unionsoluciones.com.co>
Subject Re: unit testing servlets
Date Thu, 15 Dec 2005 16:32:46 GMT
Posting an example would be great!
Rakesh Patel wrote:
> I can heartily recommend JWebUnit. Its built on top of HttpUnit i think 
> but its a lot easier to work with.
> 
> I can post an example if you would like to see it.
> 
> Rakesh
> 
> Jacob Kjome wrote:
> 
>> Quoting Mark <elihusmails@gmail.com>:
>>
>>  
>>
>>> I want to write some unit tests for a web site I have developed.  The 
>>> front
>>> page of my site requires a login.  Is is possible to programatically 
>>> log in
>>> using httpunit or cactus and then continue testing of the other 
>>> servlets on
>>> my site?
>>>   
>>
>>
>> If it is BASIC Auth, then add the following to the URL you are connecting
>> with...
>>
>> http://username:password@www.mysite.com/
>>
>> The username/password combo will be picked up by Basic Auth and used for
>> authorization rather than prompting for input.  If you are using form 
>> auth or
>> something else, I'm sure httpunit and/or cactus have ways to get you 
>> logged in.
>> I just don't know, offhand, what those ways are.
>>
>>
>> Jake
>>
>>  
>>
>>> TIA
>>>
>>>   
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
>>  
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message