Create test cases to verify how various errors are

Info icon This preview shows pages 5–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Create Test Cases to verify how various errors are handled Create Test Cases to verify if all the validations are being performed CS352 Software Engineering II
Image of page 5

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

View Full Document Right Arrow Icon
Design for JAVA Unit Test Key to write a good unit test starts with good design. Assume method A( ) in Class C1( ) depends on method Z( ) in Class C2( ). To test A( ): Dr. Omar Hamdy Spring 2011 6 – Change code in Z( ) to return results expected by A( ). This requires changing the actual code. – If we have correct design, then C2( ) must be an interface and there is an implementation class C2Impl which includes implementation of Z( ). In that case, we can write a new C2Impl and not change the original class C2( ). CS352 Software Engineering II
Image of page 6
JUnit Dr. Omar Hamdy Spring 2011 7 CS352 Software Engineering II http://java.sun.com/developer/Books/javaprogramming/ant/ant_chap04.pdf http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks 5% Bonus for any group that can demonstrate expertise in any Unit Testing Tool
Image of page 7

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

View Full Document Right Arrow Icon
Integration Testing • Options: the “big bang” approach an incremental construction strategy Dr. Omar Hamdy Spring 2011 8 CS352 Software Engineering II
Image of page 8
Top Down Integration top module is tested with stubs A F G B Dr. Omar Hamdy Spring 2011 9 CS352 Software Engineering II stubs are replaced one at a time, "depth first" as new modules are integrated, some subset of tests is re -run run C D E
Image of page 9

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

View Full Document Right Arrow Icon
Bottom-Up Integration A B F G Dr. Omar Hamdy Spring 2011 10 CS352 Software Engineering II worker modules are grouped into builds and integrated C D E cluster drivers are replaced one at a time, "depth first"
Image of page 10
Regression Testing Regression testing is the re-execution of some subset of tests that have already been conducted to ensure that changes have not propagated unintended side effects Whenever software is corrected, some aspect of the software configuration (the program, its documentation, or the data that support it) is changed Dr. Omar Hamdy Spring 2011 11 Regression testing helps to ensure that changes (due to
Image of page 11

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

View Full Document Right Arrow Icon
Image of page 12
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