Hi Pavan,

You are right, the endXXX() method is not executed if the test fails in
testXXX() ... However, this is intended ! :) BeginXXX and endXXX are not to
allocate and deallocate resources ... begin is to set up HTTP request
parameters and endXXX to asserts HTTP responses. If testXXX failsn, it means
the test has failed and thus the test should be stopped.

-Vincent

----- Original Message -----
From: "Pavan Aripirala Venkata" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 23, 2001 7:10 PM
Subject: Will endXXX method, be executed even if test case fails?


Hi all, I have cactus class which has beginXXX, textXXX and
endXXX methods. Upon running the cactus test, the begin method is
executed, followed by test method. However if one of the assert fails
then the end method is not being called. If the test passes then end
method is being called.
Please let me know if anyone has this problem? Also I am
expecting that, I think it is logical that, even if a test case fails
due to some assert, the endXXX must be called (if it exists). Please let
me know if my assumption is wrong.
My understanding is if beginXXX method contains code that
assigns resources then endXXX method contains code to deallocate the
resources.
Thanks

Pavan.


Reply via email to