Black-Box Testing Techniques III - cise.ufl.edu · PDF fileBlack-Box Testing Techniques III...

Click here to load reader

  • date post

    27-May-2019
  • Category

    Documents

  • view

    222
  • download

    1

Embed Size (px)

Transcript of Black-Box Testing Techniques III - cise.ufl.edu · PDF fileBlack-Box Testing Techniques III...

Black-Box Testing Techniques III

Prepared by

Stephen M. Thebaut, Ph.D.

University of Florida

Software Testing and Verification

Lecture 6

Black-Box Test Case Design Techniques

Considered

Partition testing

Combinatorial Approaches

Boundary Value Analysis

Intuition & Experience

Another Cause-Effect Example:

Symbol Table Storage Specification

The conditions for storing an identifier in one of two symbol tables are:

(a) must be from 2 to 8 characters in length;

(b) first character must be a letter or $;

(c) other characters must be a letter or digit.

If the first character is a letter, the identifier will be stored in symbol table A. If the first character is $, it will be stored in symbol table B.

If the first character is neither a letter nor $, or if condition (c) is not satisfied, error message J11 is output.

If condition (a) is not satisfied, error message J12 is output.

What are the Effects?

The conditions for storing an identifier in one of two symbol tables are:

(a) must be from 2 to 8 characters in length;

(b) first character must be a letter or $;

(c) other characters must be a letter or digit.

If the first character is a letter, the identifier will be stored in symbol table A. If the first character is $, it will be stored in symbol table B.

If the first character is neither a letter nor $, or if condition (c) is not satisfied, error message J11 is output.

If condition (a) is not satisfied, error message J12 is output.

What are the Effects?

The conditions for storing an identifier in one of two symbol tables are:

(a) must be from 2 to 8 characters in length;

(b) first character must be a letter or $;

(c) other characters must be a letter or digit.

If the first character is a letter, the identifier will be stored in symbol table A. If the first character is $, it will be stored in symbol table B.

If the first character is neither a letter nor $, or if condition (c) is not satisfied, error message J11 is output.

If condition (a) is not satisfied, error message J12 is output.

What are the Causes?

The conditions for storing an identifier in one of two symbol tables are:

(a) must be from 2 to 8 characters in length;

(b) first character must be a letter or $;

(c) other characters must be a letter or digit.

If the first character is a letter, the identifier will be stored in symbol table A. If the first character is $, it will be stored in symbol table B.

If the first character is neither a letter nor $, or if condition (c) is not satisfied, error message J11 is output.

If condition (a) is not satisfied, error message J12 is output.

What are the Causes?

The conditions for storing an identifier in one of two symbol tables are:

(a) must be from 2 to 8 characters in length;

(b) first character must be a letter or $;

(c) other characters must be a letter or digit.

If the first character is a letter, the identifier will be stored in symbol table A. If the first character is $, it will be stored in symbol table B.

If the first character is neither a letter nor $, or if condition (c) is not satisfied, error message J11 is output.

If condition (a) is not satisfied, error message J12 is output.

Causes and Effects

Causes: Effects:

(1) 2 no. chars 8 (31) store in table A

(2) 1st char is letter (32) store in table B

(3) 1st char is $ (33) output msg J11

(4) other chars only

letters/digits (34) output msg J12

only

(35) output msgs J11

and J12

Boolean Graphs

(1)

(2)

(3)

(4)

(31)

(32)

[2,8]

let

$

others

let/dig

> A

> B

E

Boolean Graphs

(1)

(2)

(3)

(4)

(31)

(32)

[2,8]

let

$

others

let/dig

> A

> B

E

Another Cause-Effect Example:

Symbol Table Storage Specification

The conditions for storing an identifier in one of two symbol tables are:

(a) must be from 2 to 8 characters in length;

(b) first character must be a letter or $;

(c) other characters must be a letter or digit.

If the first character is a letter, the identifier will be stored in symbol table A. If the first character is $, it will be stored in symbol table B.

If the first character is neither a letter nor $, or if condition (c) is not satisfied, error message J11 is output.

If condition (a) is not satisfied, error message J12 is output.

Boolean Graphs (contd)

(1)

(2)

(3)

(4)

(31)

(32)

[2,8]

let

$

others

let/dig

> A

> B

E

Boolean Graphs

(1)

(2)

(3)

(4)

(31)

(32)

[2,8]

let

$

others

let/dig

> A

> B

E

Another Cause-Effect Example:

Symbol Table Storage Specification

The conditions for storing an identifier in one of two symbol tables are:

(a) must be from 2 to 8 characters in length;

(b) first character must be a letter or $;

(c) other characters must be a letter or digit.

If the first character is a letter, the identifier will be stored in symbol table A. If the first character is $, it will be stored in symbol table B.

If the first character is neither a letter nor $, or if condition (c) is not satisfied, error message J11 is output.

If condition (a) is not satisfied, error message J12 is output.

Boolean Graphs (contd)

(1)

(2)

(3)

(4)

(31)

(32)

[2,8]

let

$

others

let/dig

> A

> B

E

Boolean Graphs (contd)

(1)

(2)

(3)

(4)

(31)

(32)

[2,8]

let

$

others

let/dig

> A

> B

E

Boolean Graphs (contd)

(1)

(2)

(3)

(4)

(33)

(34)

(35)

[2,8]

let

$

others

let/dig

J11 only

J12 only

J11 & J12

E

Boolean Graphs (contd)

(1)

(2)

(3)

(4)

(33)

(34)

(35)

[2,8]

let

$

others

let/dig

J11 only

J12 only

J11 & J12

E

Another Cause-Effect Example:

Symbol Table Storage Specification

The conditions for storing an identifier in one of two symbol tables are:

(a) must be from 2 to 8 characters in length;

(b) first character must be a letter or $;

(c) other characters must be a letter or digit.

If the first character is a letter, the identifier will be stored in symbol table A. If the first character is $, it will be stored in symbol table B.

If the first character is neither a letter nor $, or if condition (c) is not satisfied, error message J11 is output.

If condition (a) is not satisfied, error message J12 is output.

Boolean Graphs (contd)

(1)

(2)

(3)

(4)

(33)

(34)

(35)

[2,8]

let

$

others

let/dig

J11 only

J12 only

J11 & J12

E (A)

Another Cause-Effect Example:

Symbol Table Storage Specification

The conditions for storing an identifier in one of two symbol tables are:

(a) must be from 2 to 8 characters in length;

(b) first character must be a letter or $;

(c) other characters must be a letter or digit.

If the first character is a letter, the identifier will be stored in symbol table A. If the first character is $, it will be stored in symbol table B.

If the first character is neither a letter nor $, or if condition (c) is not satisfied, error message J11 is output.

If condition (a) is not satisfied, error message J12 is output.

Boolean Graphs (contd)

(1)

(2)

(3)

(4)

(33)

(34)

(35)

[2,8]

let

$

others

let/dig

J11 only

J12 only

J11 & J12

E (A)

(B)V

Another Cause-Effect Example:

Symbol Table Storage Specification

The conditions for storing an identifier in one of two symbol tables are:

(a) must be from 2 to 8 characters in length;

(b) first character must be a letter or $;

(c) other characters must be a letter or digit.

If the first character is a letter, the identifier will be stored in symbol table A. If the first character is $, it will be stored in symbol table B.

If the first character is neither a letter nor $, or if condition (c) is not satisfied, error message J11 is output.

If condition (a) is not satisfied, error message J12 is output.

Boolean Graphs (contd)

(1)

(2)

(3)

(4)

(33)

(34)

(35)

[2,8]

let

$

others

let/dig

J11 only

J12 only

J11 & J12

E (A)

(B)V

Boolean Graphs (contd)

(1)

(2)

(3)

(4)

(33)

(34)

(35)

[2,8]