IPOG: A general strategy for t-way software testing by Lei, Yu, IEEE 2007 5/2/2019 Mehra N Borazjany.

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Constraint Satisfaction Problems Russell and Norvig: Chapter
This lecture topic (two lectures) Chapter 6.1 – 6.4, except
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
1 Constraint Satisfaction Problems. 2 Intro Example: 8-Queens Generate-and-test: 8 8 combinations.
This lecture topic (two lectures) Chapter 6.1 – 6.4, except 6.3.3
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
Artificial Intelligence Constraint satisfaction problems Fall 2008 professor: Luigi Ceccaroni.
IPOG: A General Strategy for T-Way Software Testing
Combinatorial Testing Using Covering Arrays - Going Beyond Pairwise Testing Raghu Kacker, NIST Yu Lei, UTA 5/15/06.
Search: Representation and General Search Procedure Jim Little UBC CS 322 – Search 1 September 10, 2014 Textbook § 3.0 –
Search: Representation and General Search Procedure CPSC 322 – Search 1 January 12, 2011 Textbook § 3.0 –
Today’s Agenda  HW #1 Due  Quick Review  Finish Input Space Partitioning  Combinatorial Testing Software Testing and Maintenance 1.
Using Search in Problem Solving
Constraint Satisfaction Problems
Rick Kuhn Computer Security Division
Constraint Satisfaction Problems Russell and Norvig: Chapter 3, Section 3.7 Chapter 4, Pages Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm.
Chapter 5 Outline Formal definition of CSP CSP Examples
Distributed Scheduling. What is Distributed Scheduling? Scheduling: –A resource allocation problem –Often very complex set of constraints –Tied directly.
Constraint Satisfaction Problems
Graph Coloring Solution in a Deterministic Machine The deterministic solution to coloring problem uses these steps to assign colors to vertices: 1- Given.
Constraint Satisfaction Read Chapter 5. Model Finite set of variables: X1,…Xn Variable Xi has values in domain Di. Constraints C1…Cm. A constraint specifies.
Combinatorial Testing Review “Combinatorial Software Testing”, Kuhn, Kacker, Lei, Hunter, IEEE Computer, Aug Compared “traditional” software test.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
Course: Logic Programming and Constraints
Today’s Agenda  Reminder: HW #1 Due next class  Quick Review  Input Space Partitioning Software Testing and Maintenance 1.
Chapter 5 Constraint Satisfaction Problems
Mixed Covering Arrays on Graphs Presenter: Latifa Zekaoui Joint work with Karen Meagher and Lucia Moura to appear in the Journal of Combinatorial Designs.
CS 171: Intro to AI Discussion Week 2 Jan 15 th 2016.
1 Constraint Satisfaction Problems (CSP). Announcements Second Test Wednesday, April 27.
Alternative Search Formulations and Applications
Wolfgang Runte Slide University of Osnabrueck, Software Engineering Research Group Wolfgang Runte Software Engineering Research Group Institute.
Modelling and Solving Configuration Problems on Business
Automatic Test Generation
Formal Specification.
Constraint Satisfaction Problems (Chapter 6)
Flood fill algorithm Also called seed fill, is an algorithm that determines the area connected to a given node in a multi-dimensional array, When applied.
Subject Name: Design and Analysis of Algorithm Subject Code: 10CS43
Introduction to Python
CSCI 104 Backtracking Search
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
ECE 448, Lecture 7: Constraint Satisfaction Problems
Constraint Satisfaction Problems (CSPs)
Constraint Satisfaction Problems vs. Finite State Problems
Recursion "To understand recursion, one must first understand recursion." -Stephen Hawking.
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Biointelligence Lab School of Computer Sci. & Eng.
Sergiy Vilkomir January 20, 2012
Automatic Test Generation for Combinational Circuits
Sorting … and Insertion Sort.
IPOG: A General Strategy for T-Way Software Testing
Constraint Satisfaction Problems
Lecture 2- Query Processing (continued)
Automatic Test Pattern Generation
CONTENT Introduction Definitions & Taxonomy of Application Layer Protocols Fault Generation Algorithms Experiments & Conclusions.
Biointelligence Lab School of Computer Sci. & Eng.
Constraint Satisfaction Problems. A Quick Overview
Programming with Recursion
Automatic Test Generation for N-way Combinatorial Testing
CS 8520: Artificial Intelligence
Search.
Search.
Black-Box Testing Techniques II
Constraint Satisfaction Problems
Constraint Graph Binary CSPs
Constraint Satisfaction Problems (CSP)
Parameterized Complexity of Conflict-free Graph Coloring
Presentation transcript:

IPOG: A general strategy for t-way software testing by Lei, Yu, IEEE 2007 5/2/2019 Mehra N Borazjany

Introduction IPOG, From 2-way(pairwise) to t-way testing Fireeye tool Major Challenge of IPOG: dealing with the combinatorial growth in the number of combinations of parameter values Fireeye tool 5/2/2019 Mehra N Borazjany

2-way testing (pair-wise) Create test suites to detect faults caused by interactions between any two parameters 3 Boolean parameters {a[0,1], b[0,1], c[0,1]} 2-way test set: Exhaustive test set: a b c 1 a b c 1 5/2/2019 Mehra N Borazjany

t-way testing (Combinatorial) faults can also be caused by interactions involving more than two parameters Create test suites by selecting values for input parameters and combining these parameter values 5/2/2019 Mehra N Borazjany

Cont. t-way testing Studies have shown t-way can effectively detect faults. Reduce the number of tests t is referred to as the strength of coverage t takes a small value. (2 to 6) 5/2/2019 Mehra N Borazjany

IPOG algorithm Algorithm IPOG-Test (int t, parameterset ps) { Initialize test set ts = empty set Sort parameters ps (non-increasing) and denote them as P1,…,Pk Add into ts a test for each combination of values for first t parm. For (int i = t+1 ; i<= k; i++){ let П be the set of all t-way combinations of values involving Pi and any group of (t-1) params among the first i-1 params 5/2/2019 Mehra N Borazjany

IPOG algorithm (Cont) // horizontal extension for Pi For (each test t’=(v1,…vi-1) in test set ts) { Choose a value vi of Pi and replace t’ with t’’ = (v1,..,vi) so that t’’ covers the most number of combinations of values in П Remove from П the combinations of values covered by t’’ } // end for at line 7 5/2/2019 Mehra N Borazjany

IPOG algorithm(Cont) // vertical extension for Pi For (each combination z in set П){ If (exists a test t’ in ts such that it can be changed to cover z){ Change test t’ to cover z } else { Add new test to cover z }// end if at line 13 }// end for at line 12 }// end for at line 4 Return ts; } 5/2/2019 Mehra N Borazjany

IPOG algorithm (Cont) Example Number of parameters in ps are greater or equal to t Example : 3-way testing t=3 Ps = {p1[0,1], p2[0,1], p3[0,1], p4[0,1,2]} Number of parameter = 4 4 > 3 IPO is deterministic 5/2/2019 Mehra N Borazjany

IPOG algorithm (Cont) Example ts : p1 p2 p3 p4 1 П : 1 p1 p2 p4 1 2 p1 p3 p4 1 2 p2 p3 p4 1 2 1 1 1 * 2 1 * 2 1 * 1 2 1 1 * 2 1 5/2/2019 Mehra N Borazjany

Other Approaches to t-way testing AETG (Automatic Efficient Test Generator) by Cohen complete test at a time until all the combinations are covered What is complete test? Covering one parameter at a time allows the IPO strategy to achieve a lower order of complexity than AETG 5/2/2019 Mehra N Borazjany

Other Approaches to t-way testing AI-based search techniques such as hill climbing Unlike AETG and IPO, AI-based search techniques start from a randomly generated test set AI-based search techniques can produce smaller test sets than AETG and IPO, Significantly longer time to complete 5/2/2019 Mehra N Borazjany

Complexity of IPOG Algorithm Enumeration all possible t-way combinations (Large Number) Space for storing Time to enumerate IPOG-D Reduce the number of combination needed to enumerate Recursive construction Deterministic 5/2/2019 Mehra N Borazjany

Constraint Satisfaction Problem (CSP) Values {green, blue, red} Variables {f,a,b,c,e,g} Constraints {no same color as a neighbor} f a b e c g 5/2/2019 Mehra N Borazjany

Forward checking One way to make a better use of constraints during search After assign green to b, a and e forced to be blue {f =red, b =green, e= blue} -> inconsistent f a b e c g f a b c e g Initial 5/2/2019 Mehra N Borazjany

Fireeye (ACTS) demo 5/2/2019 Mehra N Borazjany

Question? 5/2/2019 Mehra N Borazjany

Thank You & Happy Valentine’s day 5/2/2019 Mehra N Borazjany