Should you log a bug without knowing the expected results?

Someone chuckled at my “?” for the expected results, during a bug review meeting. The bug (like many of my bugs) looked like this:

Repro Steps:
1. do something
2. do something else
3. do something else

Expected Results: ?
Actual Results: an unhandled error is thrown

Good testers determine scenarios that nobody thought of. That is one skill that makes us good testers. Some time ago, I didn’t let myself log bugs until I tracked down the proper oracles and determined the expected results; a practice that sounds good…until you try it. Unfortunately, the oracles are never quick to respond. Often they pose questions to the users, which open additional discussions, meetings, etc…until the tester forgets the details of their wonderful test.

So these days, if I encounter a bug and I don’t know the expected results, I log the bug immediately and let someone else worry about expected results…if they even care. It’s not because I’m too lazy to seek out my oracles. It’s because my time is better spent logging more bugs! When in doubt, remember, the tester’s primary job is to provide information about the AUT. It’s not the responsibility of the tester to determine expected results. If the tester identifies a scenario that will crash the AUT, they should log the bug now.

6 comments:

  1. Philk said...

    Phew, I thought you were having a go at my blog when I saw the title..

    isn't one of the expected results "system should not throw an unhandled exception/crash" ?

  2. Mark Crowther said...

    Damn straight. Run tests find bugs.

  3. Anonymous said...

    there's likely to be less communication overhead though if the expected results are there.

    expected results: ?
    actual results: x

    dev: oh, actual results are x (blah blah blah). i could do j, k or possibly l. i better clarify.
    (and dev bugs you right in the middle of your testing)

    OR

    dev: i'll just apply n. it'll probably be good enough.
    (and once aut is back in your hands)
    tester: curses! this approach isn't enough (or he should've done m instead)!

    i suppose another factor is how smart the dev you're working with is ;)

  4. Eric Jacobson said...

    Philk,

    Yes, "system should not throw unhandled error" seems like better expected results than "?". It would raise fewer eye brows.

    But if we just use the inverse of the actual results, how much value are we adding? Hmmmm.

  5. Eric Jacobson said...

    Anonymous,

    Good points! However, the devs shouldn't be asking testers if devs should fix with j, k, or l.

    Some testers will answer that question and some devs will continue coming to testers for solutions. That could be bad.

    Most solutions are business questions. And even if they're not, testers are not designers and should not be making such important decisions. Right?

  6. Marlena said...

    Hear, hear. I felt like I'd grown as a tester the day I decided to just log the bugs instead of spending two hours justifying myself for creating the bug. Nice blog :)



Copyright 2006| Blogger Templates by GeckoandFly modified and converted to Blogger Beta by Blogcrowds.
No part of the content or the blog may be reproduced without prior written permission.