Hi

Basically I'd like to make a screenshot of active window whenever
assertion fails (at least for now). As I mentioned before I perform
tests within multiple assertion block so I don't want to wait for
entire test completion to make this screenshot. Also built-in
screenshot mechanism is not satisfying for me since I didn't see
triggers different from test finish, test failure etc.

I tried to put whole test in try - catch block and catch
AssertionException but it doesn't work in every case and I wasn't able
to figure out why.


On 13 Kwi, 18:13, Graham Hay <[email protected]> wrote:
> Exactly what behaviour are you looking for? Do you want to perform the
> action when the assert fails, or can you wait until the test has completed?
>
> On 13 April 2012 10:24, manx <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi
>
> > I need to write own custom attribute to decorate test method which
> > will allow me to perform any action when assertion fails. My tests are
> > already with [MultipleAsserts] attribute so this action cannot be
> > triggered when test fails but when single assertion fails.
>
> > I appreciate any suggestions
> > M.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "MbUnit.User" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/mbunituser?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mbunituser?hl=en.

Reply via email to