Você está na página 1de 1

DATE: 17. 03. 2017.

LABORATORY EXERCISE 2

INSTRUCTIONS

For any question/comments, you may contact me at amusic@student.ius.edu.ba or come to


my office (3rd floor - Arch studio) during consultation hours (Tuesday 16:00 17:00 & Friday
12:00 14:00). You may also visit the following blog, where I will occasionally put some useful &
related materials at http://labs-iuscse.blogspot.com/.

1. WHAT IS YOUR OPINION?

For what do testers use automation? What are the limitations of automation?
Are you using test just to show the errors or to improve the quality of code?

2. FAILURES, FAULTS?

Below are four faulty programs. Each includes a test case that results in failure. Answer the
following questions about each program.

Identify the fault.


If possible, identify a test case that
does not execute the fault.
If possible, identify a test case that
executes the fault, but does not
result in an error state.
If possible identify a test case that
results in an error, but not a failure.
Hint: Dont forget the program
counter.
For the given test case, identify the
first error state. Be sure to describe
the complete state.
Fix the fault and verify that the given
test now produces the expected
output.

Você também pode gostar