Exceptions, Errors, and all that gunk. Today Administrivia R1 reviews back Testing Tips II Design exercise, revisited Exceptions, Errors, Throwables,

Slides:



Advertisements
Similar presentations
Introduction to C Programming
Advertisements

CS 206 Introduction to Computer Science II 01 / 20 / 2009 Instructor: Michael Eckmann.
E-commerce Project Erik Zeitler Erik Zeitler2 Lab 2  Will be anounced and scheduled later  We will deploy Java Server Pages on a Tomcat server.
CS 206 Introduction to Computer Science II 09 / 09 / 2009 Instructor: Michael Eckmann.
CSE116: Introduction to Computer Science 2 Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE503: SOFTWARE ENGINEERING SYMBOLIC TESTING, AUTOMATED TEST GENERATION … AND MORE! David Notkin Spring 2011.
CSE 331 SOFTWARE DESIGN & IMPLEMENTATION TESTING II Autumn 2011.
Exceptions Used to signal errors or unexpected situations to calling code Should not be used for problems that can be dealt with reasonably within local.
Exceptions. Errors and Exceptions An error is a bug in your program –dividing by zero –going outside the bounds of an array –trying to use a null reference.
1 Lab Session-III CSIT121 Fall 2000 Setting Your Own Paths Setting Project Information Browse Information Generation Data types revisited Enumerated data.
1 Foundations of Software Design Lecture 1: Course Overview Intro to Binary and Boolean Marti Hearst SIMS, University of California at Berkeley.
CS November 2009 Exceptions in Java. Prof. Gries is lecturing in India for the next 7 days or so. Today’s reading: Ch. 10. Next lecture’s reading:
COMS W1004 Introduction to Computer Science June 17, 2009.
CSC 171 – FALL 2004 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
CSSE221: Software Dev. Honors Day 3 Announcements Announcements Should get in habit of checking in BigRational code as you go Should get in habit of checking.
Administrivia Midterm exam: Mar 10 (in class) Interfaces vs. Abstract classes Inner classes Data views; iterators Lexical analyzers (tokenizers) Theory:
Software Testing. “Software and Cathedrals are much the same: First we build them, then we pray!!!” -Sam Redwine, Jr.
Packages Where, oh where, is my little lost class file?
2/9/2007EECS150 Lab Lecture #41 Debugging EECS150 Spring2007 – Lab Lecture #4 Laura Pelton Greg Gibeling.
C++ for Engineers and Scientists Third Edition
By D. Beyer et. al. Simon Fraser University (Spring 09) Presentation By: Pashootan Vaezipoor.
Topics in Software Dynamic White-box Testing Part 2: Data-flow Testing
March 13, 2001CSci Clark University1 CSci 250 Software Design & Development Lecture #15 Tuesday, March 13, 2001.
Networked Systems Practicum Lecture 1 – Introduction 1.
EECE 310 Software Engineering Lecture 0: Course Orientation.
Software Testers: The Next Generation Bj Rollison, Test Architect Engineering Excellence Group Microsoft, Inc.
CSCD 434 Network Security Spring 2014 Lecture 1 Course Overview.
Selected Topics in Information Technology Programming Language - JAVA Semester 1/2554.
NMD202 Web Scripting Week3. What we will cover today Includes Exercises PHP Forms Exercises Server side validation Exercises.
CSC 171 – FALL 2001 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
Testing. 2 Overview Testing and debugging are important activities in software development. Techniques and tools are introduced. Material borrowed here.
INF 111 / CSE 121: Software Tools and Methods Lecture Notes for Fall Quarter, 2007 Michele Rousseau Set 12 (Some slides adapted from Sommerville 2000 &
CSE403 Software Engineering Autumn 2001 More Testing Gary Kimura Lecture #10 October 22, 2001.
Lecture Section 001 Spring 2008 Mike O’Dell CSE 1301 Computer Literacy.
Software Construction Lecture 18 Software Testing.
Penn ESE535 Spring DeHon 1 ESE535: Electronic Design Automation Day 24: April 18, 2011 Covering and Retiming.
TaintScope Presented by: Hector M Lugo-Cordero, MS CAP 6135 April 12, 2011.
Software Development CSCI-1302 Lakshmish Ramaswamy.
CIT 590 Intro to Programming Lecture 3. Pair programming logistics You and your partner submit 1 assignment Figure out who the submitter will be PLEASE.
1 Daily Announcements CS 202, Spring 2007 Aaron Bloomfield.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 8 What’s Wrong with It?
Software Engineering Saeed Akhtar The University of Lahore.
Using Dynamic Compilers for Software Testing Ben Breech Lori Pollock John Cavazos.
CIS Intro to JAVA Lecture Notes Set July-05 GUI Programming –TextField Action Listeners, JEditorPane action listeners, HTML in a JEditorPane,
CS 127 Exceptions and Decision Structures. Exception Handling This concept was created to allow a programmer to write code that catches and deals with.
Testing and Debugging. Testing Fundamentals  Test as you develop Easier to find bugs early rather than later Prototyping helps identify problems early.
SSH/SSL Attacks not on tests, just for fun. SSH/SSL Should Be Secure Cryptographic operations are secure SSL uses certificates to authenticate servers.
CS426Fall 2010/Lecture 171 Computer Security CS 426 Lecture 17 Market Failure of Secure Software.
Week 6 MondayTuesdayWednesdayThursdayFriday Testing III Reading due Group meetings Testing IVSection ZFR due ZFR demos Progress report due Readings out.
And other languages…. must remember to check return value OR, must pass label/exception handler to every function Caller Function return status Caller.
– Ecology and Evolution Spring 2004 M,W,F 11 – 11:50 CEH 218.
Geoff Holmes Week 5 problems Handling Throwing Catching Multiple exceptions Finally clause Examples Exception Handling.
Applied Security Breno de Medeiros Florida State University Spring 2007.
Review for Test2. Scope 8 problems, 60 points. 1 Bonus problem (5 points) Coverage: – Test 1 coverage – Exception Handling, Switch Statement – Array of.
CSC 108H: Introduction to Computer Programming Summer 2012 Marek Janicki.
Java Exceptions a quick review….
White-Box Testing Pfleeger, S. Software Engineering Theory and Practice 2nd Edition. Prentice Hall, Ghezzi, C. et al., Fundamentals of Software Engineering.
The switch statement: an alternative to writing a lot of conditionals
COP 5611 Operating Systems Spring 2010
COP 5611 Operating Systems Spring 2010
Mid Term II Review.
CS160 Discussion Section Matthew Kam Mar 17, 2003.
Review for Test2.
Final Review Fan Bai Csc 2310 Spring 2012.
CSE403 Software Engineering Autumn 2000 More Testing
SE-1021 Software Engineering II
Whitebox Testing.
CGS 3763 Operating Systems Concepts Spring 2013
ERROR HANDLING AND DEBUGGING
Testing Slides adopted from John Jannotti, Brown University
Presentation transcript:

Exceptions, Errors, and all that gunk

Today Administrivia R1 reviews back Testing Tips II Design exercise, revisited Exceptions, Errors, Throwables, and all that

Administrivia No office hours for Prof. Lane this week Jason is here and available Midterm: Wed, Mar 9 Jason will proctor (lucky guy, isn’t he?) R1 writeups back today R2 assigned today Due Mar 23 (Wed after spring break) Kohno, T., et al., “Analysis of an Electronic Voting System.” IEEE Symposium on Security and Privacy, Oakland, CA, May, 2004.

Testing Tips II But which test cases do I need? >=2 schools of thought: Code coverage: a test case that forces the code to execute every possible alternative of every branch Eek! In theory: every time you write a condition (if, while, switch, etc.), write a test case for either branch In practice: write tests for significant branches -- esp ones handling input Sort-of doable for unit test. Doesn’t scale. Also doesn’t catch all cases

Testing Tips II Case coverage: start by writing down set of use cases that cover all expected applications of software Write a test (or more) for each use case Differences in cases will hit significant code paths If you find a bug, create a special use case/test that exercises that bug