[Webtest] [webtest][JIRA] Closed: (WT-223) An assert error inside a macrodef wasn't possible to ignore using <not>
Sergey Batishchev
webtest@lists.canoo.com
Mon, 7 Aug 2006 07:37:23 -0500
Paul
thanks for a useful fix!
Still if step failure occurs in the macro-def (without "Not" task around
it), StepExecutionException will be eventually thrown by
Step.handleUnexpectedException(), ln 457. I assume this is because
StepFailedException gets wrapped eventually into BuildException as with Not
step case.
Will the same parent exception check in Step.handleUnexpectedException()
resolve the issue?
If you can apply such fix, it will really help with test result reporting.
Test StepExecutionException is reported with stack trace, invalidates some
statistics and prevents further steps from execution...
Thanks in advance!
Sergey
----- Original Message -----
From: "Paul King (JIRA)" <noreply@canoo.com>
To: <webtest@lists.canoo.com>
Sent: Friday, August 04, 2006 7:29 PM
Subject: [Webtest] [webtest][JIRA] Closed: (WT-223) An assert error inside a
macrodef wasn't possible to ignore using <not>
> [ http://webtest-community.canoo.com/jira/browse/WT-223?page=all ]
>
> Paul King closed WT-223:
> ------------------------
>
> Resolution: Fixed
>
> Now calls getCause() recursively to check if it has a StepFailedException
> inside.
>
>> An assert error inside a macrodef wasn't possible to ignore using <not>
>> -----------------------------------------------------------------------
>>
>> Key: WT-223
>> URL: http://webtest-community.canoo.com/jira/browse/WT-223
>> Project: WebTest
>> Type: Bug
>
>> Reporter: Paul King
>> Assignee: Paul King
>> Fix For: 2.1, future versions
>
>>
>> StepFailedException due to assertion failing was being wrapped within a
>> BuildException
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://webtest-community.canoo.com/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
> http://www.atlassian.com/software/jira
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>