[Webtest] [dev] StepFailedException versus StepExecutionException

Dierk Koenig webtest@lists.canoo.com
Fri, 24 Feb 2006 11:15:44 +0100


I fully agree to the classification.

I assume you have place in mind where these rules
are violated, currently ?

cheers
Mittie

> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Marc Guillemot
> Sent: Freitag, 24. Februar 2006 10:18
> To: webtest@lists.canoo.com
> Subject: [Webtest] [dev] StepFailedException versus
> StepExecutionException
> 
> 
> Hi,
> 
> we currently throw StepFailedException or StepExecutionException 
> when a test
> doesn't pass but I'm not sure to know exactly what we want to 
> differentiate with
> these 2 exceptions or if we do it consistently.
> 
> For me a StepFailedException should be reserved to cases like:
> - verification steps: when the verification fails (this is what we do)
> - action steps: when the action can't be done, for instance no 
> link can be found
> in a clickLink (this is what we do too)
> 
> All (?) other cases should use a StepExecution exception, for 
> instance when:
> - the parameters of a step are incorrect (this is already what is done)
> - a page request can't be executed correctly (ex: http error code 
> received, or a
> socket timeout occurs, or a JS error occurs) => this is NOT what 
> we currently do.
> 
> Any thoughts?
> 
> Marc.
> 
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest