Testing and Debugging.pdf - The point here is that information is the most important thing and you need to do whatever’s necessary to get information

Testing and Debugging.pdf - The point here is that...

This preview shows page 1 - 3 out of 6 pages.

5 EUUo]]w ^XXrKK _HuMMYYs fi^^xKKaJ# EKKXXrKK’YYs UUoTTnKK VVpXXrUUoVVpUUoYYs^RR Productive changes fix bugs. Information gathered about the system informs productive changes. A hypothesis guides information gathering and testing. Things we know about the problem inform how we choose hypotheses. ArrayQueue maintains certain invariants± Unexpected result after add and remove± A bug exists in the ArrayQueue isEmpty method± Information ??? The point here is that information is the most important thing and you need to do whatever’s necessary to get information± !1 "2 #3 ? : Do we have reason to question the things we know about the problem? Or the hypothesis? 6 A good hypothesis identifies the cause of failure separately from where and when the program actually fails. The state of the ArrayQueue determines the behavior of isEmpty. +ZYtKSRm=C JGZYtG ONTSnZYt YXsONzK ONTSnZYt LKXWrUToTSnZYt ONTSnZYt HGIQP State A bug exists in the ArrayQueue isEmpty method± Information ??? "2 #3 A good hypothesis describes a problem and is both testable and falsifiable. While this hypothesis is both, it doesn’t really yield much more information about the problem or how to fix it.
Image of page 1
7 A good hypothesis identifies the cause of failure separately from where and when the program actually fails. The state of the ArrayQueue determines the behavior of isEmpty. The hypothesis on the left suggests more about the problem than the one on the right. A bug exists in the ArrayQueue isEmpty method± The size variable is not set correctly² causing isEmpty to return false± Q1 : Which of the hypotheses below do you think will yield more information upon answering?
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 6 pages?

  • Spring '14

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors