Guideline: Test Ideas for Mixtures of ANDs and ORs
var backPath = './../../../';
var imgPath = './../../../images/';
var nodeInfo=[{view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_mp7z0DIDEdqwaNnSEheSAg", "_4EQgMDIEEdqwaNnSEheSAg", "_SPvXcN7IEdm8G6yT7-Wdqw", "{45219F27-0F84-4FD5-A7BC-73C19226303B}", "9.407283892342409E-306"]}, {view: "view:_FCx1oN7CEdmsEI4YDGX2ag", path: ["_FCx1oN7CEdmsEI4YDGX2ag", "_Jvt1cAIaEdqEutyfYo0quQ", "_EOvXUN7HEdm8G6yT7-Wdqw", "_SPvXcN7IEdm8G6yT7-Wdqw", "{45219F27-0F84-4FD5-A7BC-73C19226303B}", "9.407283892342409E-306"]}, {view: "view:_FCx1oN7CEdmsEI4YDGX2ag", path: ["_FCx1oN7CEdmsEI4YDGX2ag", "_Jvt1cAIaEdqEutyfYo0quQ", "_jijhYAIaEdqEutyfYo0quQ", "_3lZjkCxqEdqYV4MWf8PiCw", "{45219F27-0F84-4FD5-A7BC-73C19226303B}", "9.407283892342409E-306"]}, {view: "view:_FCx1oN7CEdmsEI4YDGX2ag", path: ["_FCx1oN7CEdmsEI4YDGX2ag", "_jD8dUAIbEdqEutyfYo0quQ", "_2ClPcDIcEdqDs_9ORT1Rig", "9.407283892342409E-306"]}];
contentPage.preload(imgPath, backPath, nodeInfo, '', false, false, false);
Guideline: Test Ideas for Mixtures of ANDs and ORs
This page provides examples of test ideas based on boolean expressions combining ANDs and ORs.
Relationships
Related Elements
Test-Ideas List
Main Description
This catalog applies to expressions that combine ANDs and ORs. As a reminder, here's how to derive test requirements
for homogenous expressions:
A1 && A2 && ... && An:
one test idea with All Ai's true
N cases, each of which has exactly one term false.
Example:
A && B && C
A
B
C
true
true
true
FALSE
true
true
true
FALSE
true
true
true
FALSE
A1 || A2 || ... || An:
one test idea with All Ai's false
N cases, each of which has exactly one term true.
Example:
A || B || C
A
B
C
FALSE
FALSE
FALSE
FALSE
true
FALSE
true
FALSE
FALSE
FALSE
FALSE
true
Two Boolean Operators
(A && B) || C
A
B
C
FALSE
true
true
true
true
FALSE
FALSE
true
FALSE
true
FALSE
FALSE
A && (B || C)
A
B
C
true
FALSE
FALSE
true
FALSE
true
true
true
FALSE
FALSE
FALSE
true
A || (B && C)
A
B
C
true
true
FALSE
FALSE
true
true
FALSE
FALSE
true
FALSE
true
FALSE
(A || B) && C
A
B
C
FALSE
FALSE
true
FALSE
true
true
true
FALSE
true
FALSE
true
FALSE
Three Boolean Operators
One And
To help find an expression, read down the columns. The ANDs drift from the left to the right as you read.
(A && B) || C || D
((A || B) && C) || D
A
B
C
D
A
B
C
D
FALSE
true
true
FALSE
FALSE
FALSE
true
FALSE
true
true
FALSE
FALSE
FALSE
true
true
FALSE
FALSE
true
FALSE
FALSE
true
FALSE
true
FALSE
true
FALSE
FALSE
FALSE
FALSE
FALSE
true
true
true
FALSE
FALSE
true
FALSE
true
FALSE
FALSE
A && (B || C || D)
A || (B && (C || D))
A
B
C
D
A
B
C
D
true
FALSE
FALSE
FALSE
FALSE
true
FALSE
FALSE
true
FALSE
true
FALSE
FALSE
true
FALSE
true
true
true
FALSE
FALSE
FALSE
true
true
FALSE
true
FALSE
FALSE
true
true
true
FALSE
FALSE
FALSE
FALSE
FALSE
true
FALSE
FALSE
FALSE
true
A || (B && C) || D
A || B || (C && D)
A
B
C
D
A
B
C
D
true
true
FALSE
FALSE
FALSE
true
true
FALSE
FALSE
true
true
FALSE
FALSE
FALSE
FALSE
true
FALSE
FALSE
true
FALSE
true
FALSE
true
FALSE
FALSE
true
FALSE
FALSE
FALSE
FALSE
true
true
FALSE
true
FALSE
true
FALSE
FALSE
true
FALSE
(A||B) && (C || D)
(A || B || C) && D
A
B
C
D
A
B
C
D
FALSE
FALSE
FALSE
true
FALSE
FALSE
FALSE
true
FALSE
true
FALSE
true
FALSE
true
FALSE
true
true
FALSE
true
FALSE
true
FALSE
FALSE
true
FALSE
true
FALSE
FALSE
FALSE
FALSE
true
true
FALSE
FALSE
true
FALSE
Three Boolean Operators
Two Ands
To help find an expression, read down the columns. The ORs drift from the right to the left as you read
(A && B && C) || D
((A && B) || C) && D
A
B
C
D
A
B
C
D
true
true
true
FALSE
FALSE
true
true
true
FALSE
true
true
FALSE
true
true
FALSE
true
true
FALSE
true
FALSE
FALSE
true
FALSE
true
true
FALSE
true
true
true
FALSE
FALSE
true
true
true
FALSE
FALSE
true
FALSE
true
FALSE
A && B && (C || D)
A && (B || (C && D))
A
B
C
D
A
B
C
D
true
true
FALSE
true
true
true
true
FALSE
FALSE
true
FALSE
true
true
FALSE
true
true
true
FALSE
FALSE
true
true
FALSE
FALSE
true
true
true
FALSE
FALSE
true
FALSE
true
FALSE
true
true
true
FALSE
FALSE
FALSE
true
true
A && (B || C) && D
(A || B) && C && D
A
B
C
D
A
B
C
D
true
FALSE
FALSE
true
FALSE
FALSE
true
true
true
FALSE
true
true
FALSE
true
true
true
true
true
FALSE
true
true
FALSE
true
true
FALSE
FALSE
true
true
FALSE
true
FALSE
true
true
FALSE
true
FALSE
FALSE
true
true
FALSE
(A && B) || (C && D)
A || (B && C && D)
A
B
C
D
A
B
C
D
FALSE
true
true
true
FALSE
true
true
true
true
true
true
FALSE
FALSE
FALSE
true
true
FALSE
true
FALSE
true
FALSE
true
FALSE
true
true
FALSE
true
FALSE
true
true
true
FALSE
FALSE
true
true
FALSE
© Copyright IBM Corp. 1987, 2006. All Rights Reserved.
contentPage.onload();
Wyszukiwarka
Podobne podstrony:
test ideas for booleans and boundariestAE938Ctest ideas for statechart and flow diagrams?81354Ctest ideas for method?lls?A17E5CBlade sections for wind turbine and tidal current turbine applications—current status and future cha06 User Guide for Artlantis Studio and Artlantis Render Export Add onsReadme For Making Bases and Arenas2005 02 Ready for Press Templates and Pdfs in Scribusidentify test ideas?6370FDComment on A Framework for Modelling Trojans and Computer Virus InfectionSecret Sources For Healing Foods andStrength and Conditioning For Rugby League and Rugby Union Part 1Homeopathy for Colds, flu and coughswięcej podobnych podstron