Testing-214 - Testing Testing is diferent From debugging o...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Testing Testing is different from debugging: o Debugging is finding the error. o Testing is a determined, systematic attempt to break a program that you think is working. Remember: a successful test is a case that breaks the program. There are 7 degrees of testing based on the level of input. Testing while writing the code: o Verify simple properties of the program as it is being constructed (executed code “in your head). o Testing while you write a program will lead to better code because that is when you know best what the code should do. Boundary-condition testing o Most bugs occur at “boundaries”. o Considering program behaviour at natural boundaries within the program and data. o For example: Non-existent or empty input Single input item Exactly full array Array capacity exceeded by 1 Systematic testing o Traditionally done after you have written the code o Guidelines/characteristics Test incrementally Write part of the program Test it Add some more code Repeat from the testing stage Integrate as components are completed. Test simple part first. Each test does the minimum to expose the next potential problem. N.B know what to expect! Keep recording Logs Command files Scripts README files If the program has an inverse, check that its application recovers the input.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

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