This is what  CFTHROW is for. Just copy the details from the REAL
error and use the same details to THROW an error of the same type.

On Tue, Nov 8, 2011 at 4:10 PM, Steve Bryant
<[email protected]> wrote:
>
> I'm doing some functional testing with CFSelenium (thanks Bob!) for a 
> situation that could potentially create a ColdFusion exception on the page 
> being tested. I would ideally like to recreate that exception within my test 
> so that it returns an appropriate "error" status (complete with correct stack 
> trace) in my mxunit results.
>
> Right now, I am taking screen shots of the error and returning a failure 
> status. That works fine, but doesn't seem as elegant a way to handle it.
>
> Steve
>
>>what exactly is it you want to do ?
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348515
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to