(c) Dr.Wolfgang J. Schneider

Slides:



Advertisements
Similar presentations
(c) Dr. Wolfgang J. Schneider GENERAL TESTING PRINCIPLES Dr. Wolfgang J. Schneider 2003 – 2006.
Advertisements

Algebra 1 Ch 2.8 – Probability & Odds.
Lab #3 Significant Figures Lab Procedure: 1.Prepare a data table to measure 4 strips of paper (labeled A,B,C,D) using a blue, red, and yellow ruler. 2.Obtain.
Manufacturing Fireworks How do you make a 3 inch shell? You and your group are going to act as a small pyrotechnics manufacturing company. Make a list.
© red ©
The Color Wheel Miss Sawyer Kindergarten Begin Lesson Plan.
Ch 7.5 – Special Linear Systems
FUNDAMENTAL TEST PROCESS
Dr. Wolfgang J. Schneider FUNDAMENTAL TEST PROCESS Dr. Wolfgang J. Schneider 2003 – 2006.
Created by: Kari Ann Jones Morrice Area Schools
Dr. Wolfgang J. Schneider FUNDAMENTAL TEST PROCESS Dr. Wolfgang J. Schneider 2003 – 2006.
There are 3 switches downstairs, each corresponding to one of the light bulbs upstairs. How can you figure out which light switch goes to which light.
Algebra 1 Probability & Odds. Objective  Students will find the probability of an event and the odds of an event.
1 COMP541 State Machines Montek Singh Feb 8, 2012.
CS4311 Spring 2011 Unit Testing Dr. Guoqiang Hu Department of Computer Science UTEP.
Existential Graphs Software Dr. Russell Herman Department of Mathematics and Statistics University of North Carolina at Wilmington August 2003.
Please complete your Homework Helper! Monday 9/8/2014 Bell Work. 1.) Write down one Number and its noun that describe this weekend. (example: 13 football.
Dr. Wolfgang J. Schneider FUNDAMENTAL TEST PROCESS Dr. Wolfgang J. Schneider 2003 – 2006.
Colors By Jes Betzold Red YellowBlue Orange PurpleGreen.
Microsoft ® Office SharePoint ® Server 2007 Training Excel Services II: Requirements, recommendations, and permissions [Your company name] presents:
Art 321 Lecture 7 Dr. J. Parker. Programming In order to ‘make things happen’ on a computer, you really have to program it. Programming is not hard and.
Logic Disjunction A disjunction is a compound statement formed by combining two simple sentences using the word “OR”. A disjunction is true when at.
Algebra 1 Ch 2.4 – Solving Equations with Variables on Both Sides.
11 To call into question Questioning of a statement or fact Demand for justification or explanation Challenge.
Acid-base indicators An acid base indicator is a special substance that exists in two forms ( colours) depending on it’s pH level. We have already talked.
Unit 5 My clothes Part A Let’s learn Let’s do 衣服.
Lesson 4.  Add and subtract multiples of 10 and some ones within 100.  Solve one- and two-step word problems within 100 using strategies based on place.
Ch 3.4 – Solving Equations with Variables on Both Sides
MODULE 4 Lesson 4. Objective Add and subtract multiples of 10 and some ones within 100. Solve one- and two-step word problems within 100 using strategies.
11 Making Decisions in a Program Session 2.3. Session Overview  Introduce the idea of an algorithm  Show how a program can make logical decisions based.
DR. WOLFGANG J. SCHNEIDER GMBH International Information Technology Consultants Dr. Wolfgang J. Schneider Certified IT Consultant.
Color Theory.
What colour?.
3.4 Truth Tables for the Conditional and the Biconditional
Android Layouts 24 July 2018 S.RENUKADEVI/AP/SCD/ANDROID LAYOUTS 1.
Involving One Operation
Manufacturing Fireworks
Color Theory.
Color Theory.
Rules for the classroom
Name: _______________________________
Color Theory.
Objective Solve equations in one variable that contain variable terms on both sides.
UNIT3 Colour.
Go to =>
Color Theory.
Color Theory.
Color Wheel Color Values Color Schemes The color wheel fits together like a puzzle - each color in a specific place. Being familiar with the color.
Involving One Operation
What Color is it?.
©
Objective Solve equations in one variable that contain variable terms on both sides.
©
Automated test.
Involving One Operation
Color Theory.
5-8 Probability and Chance
Statements & Finance Charge
Solving Equations By Balancing.
Involving One Operation
Learning outcomes All will trim the edges of their mask to make it neater All will draw the main features and details onto their mask Most will begin to.
Color Theory.
Involving One Operation
Involving One Operation
Color Theory.
Solving Equations By Balancing.
Color Theory.
Understanding the World Around Us – with SCIENCE!
Automated test.
Color Theory.
Presentation transcript:

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Apply this lesson to the structure on the left (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Case # 1 will cover this part (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Case # 2 will cover this part I have dropped the redundant branches (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Case # 3 will cover this part I have dropped the redundant branches (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK For a system with a moderate risk this is a fairly good coverage (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK We have 100% Code Coverage We have missed only one Branch And we have missed one single condition (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK It’s already getting obvious that we will need a more systematic approach for a structure like this. First, we will set up a table for the conditions (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK VAR CASE cond-1 cond-2 cond-3 cond-4 01 TRUE 02 FALSE 03 04 05 06 07 08 09 10 11 12 13 14 15 16 (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Now, we will insert our 3 cases into the table. Case 1: Condition 1: TRUE Condition 2: TRUE OOPS Condition 3: (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Conditions 3 and 4 will not change the outcome of test case # 1 (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK VAR CASE cond-1 cond-2 cond-3 cond-4 01 1.1 TRUE 02 1.2 FALSE 03 1.3 04 1.4 05 06 07 08 09 10 11 12 13 14 15 16 (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Let’s continue with case 2 Condition 1: FALSE Condition 2: Aha !! Condition 3: TRUE Condition 4: TRUE (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Condition 2 does not matter I have dropped the redundant branches (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK VAR CASE cond-1 cond-2 cond-3 cond-4 01 1.1 TRUE 02 1.2 FALSE 03 1.3 04 1.4 05 06 07 08 09 2.1 10 11 12 13 2.2 14 15 16 (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Case 3: FALSE Irrelevant (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK VAR CASE cond-1 cond-2 cond-3 cond-4 01 1.1 TRUE 02 1.2 FALSE 03 1.3 04 1.4 05 06 07 08 09 2.1 10 11 12 3.1 13 2.2 14 15 16 3.2 (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Let’s add a case to cover this branch and the FALSE value for condition 2 It’s obvious that condition 3 won’t matter (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK I will use TRUE FALSE Irrelevant (because this case Has more power than the FALSE value) (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK More Power ? I am triggering this procedure (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK VAR CASE cond-1 cond-2 cond-3 cond-4 01 1.1 - red TRUE 02 1.2 - red FALSE 03 1.3 - red 04 1.4 - red 05 4.1 - yellow 06 07 4.2 - yellow 08 09 2.1 - blue 10 11 12 3.1 - green 13 2.2 - blue 14 15 16 3.2 - green (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Before we continue, we should complete the path lines. We did not need them for branch and condition coverage. (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK I added the “weaker” path we talked about. You can see that the drawing is getting pretty overloaded. We cannot be sure if we covered all the paths just by looking at the graphic. (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Of course, some things are obvious: The red path is pretty isolated There is an undefined path supposed to switch over from GREEN to YELLOW/BLUE (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK VAR CASE cond-1 cond-2 cond-3 cond-4 01 1.1 - red TRUE 02 1.2 - red FALSE 03 1.3 - red 04 1.4 - red 05 4.1 - yellow 06 5.1 - mauve 07 4.2 - yellow 08 5.2 - mauve 09 2.1 - blue 10 11 12 3.1 - green 13 2.2 - blue 14 15 16 3.2 - green There is an undefined path supposed to switch over from GREEN to YELLOW/BLUE The red path is pretty isolated (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK VAR CASE cond-1 cond-2 cond-3 cond-4 01 1.1 - red TRUE 02 1.2 - red FALSE 03 1.3 - red 04 1.4 - red 05 4.1 - yellow 06 5.1 - mauve 07 4.2 - yellow 08 5.2 - mauve 09 2.1 - blue 10 11 6.1 - orange 12 3.1 - green 13 2.2 - blue 14 15 6.2 orange 16 3.2 - green Let’s call it #6 and paint it in orange (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Voilà (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK VAR CASE cond-1 cond-2 cond-3 cond-4 01 1.1 - red TRUE 02 1.2 - red FALSE 03 1.3 - red 04 1.4 - red 05 4.1 - yellow 06 5.1 - mauve 07 4.2 - yellow 08 5.2 - mauve 09 2.1 - blue 10 11 6.1 - orange 12 3.1 - green 13 2.2 - blue 14 15 6.2 orange 16 3.2 - green Something is still missing (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Cond-1 is FALSE We can exclude this part Cond-2 is irrelevant Cond-3 is TRUE We missed the fact that there is no switch-over from BLUE to GREEN because MAUVE is running along most of this path (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK BLACK follows BLUE Now we join MAUVE Now BLUE leaves us (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK VAR CASE cond-1 cond-2 cond-3 cond-4 01 1.1 - red TRUE 02 1.2 - red FALSE 03 1.3 - red 04 1.4 - red 05 4.1 - yellow 06 5.1 - mauve 07 4.2 - yellow 08 5.2 - mauve 09 2.1 - blue 10 7.1 - black 11 6.1 - orange 12 3.1 - green 13 2.2 - blue 14 7.2 - black 15 6.2 orange 16 3.2 - green (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK We needed 3 cases to obtain Statement Coverage (Anweisungsüberdeckung) We had to add 1 case to obtain Branch Coverage (Zweigüberdeckung) Branch Coverage is stronger than (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK We needed 3 cases to obtain Statement Coverage (Anweisungsüberdeckung) We had to add 1 case to obtain Branch Coverage (Zweigüberdeckung) Branch Coverage is stronger than (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK The additional case we introduced for Branch Coverage also gave us SIMPLE CONDITION COVERAGE (Einfache Bedingungsüberdeckung) We introduced BRANCH CONDITION TESTING Branch Coverage goes with Condition Coverage (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK The additional case we introduced for Branch Coverage also gave us SIMPLE CONDITION COVERAGE (Einfache Bedingungsüberdeckung) We introduced BRANCH CONDITION TESTING Branch Coverage goes with Condition Coverage (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK We need another 3 cases to obtain Path Coverage (Pfadüberdeckung) Path Coverage is stronger than Branch Coverage (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK We need another 3 cases to obtain Path Coverage (Pfadüberdeckung) Path Coverage is stronger than Branch Coverage (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK We needed only 7 out of 16 possible condition combinations to obtain Path Coverage You will always get full Path Coverage out of the Condition Matrix (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK We needed only 7 out of 16 possible condition combinations to obtain Path Coverage You will always get full Path Coverage out of the Condition Matrix (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

(c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at COVERAGE – HOMEWORK Your Test Manager will rip your head off if you run those 16 cases when you were supposed to obtain 100% Statement Coverage (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at

Dr. Wolfgang J. Schneider - Start DR. WOLFGANG J. SCHNEIDER GMBH International Information Technology Consultants Professional Testing Solutions Telecommunications and Utility Billing Systems Euro Preparation for Companies in New EU Member Countries EDIFACT – DATANORM – ELDANORM – ETIM Interfaces Data Exchange with Banks and Credit Card Companies Total Quality Management – Good Manufacturing Practices IT Service Management - IT Infrastructure Library (ITIL) Knowledge Management Solutions IT Fitness for GAAP – IAS – FASB Balanced Scorecard Dr. Wolfgang J. Schneider - Start www.drschneider.at (c) Dr.Wolfgang J. Schneider 2003 - 2008 - www.drschneider.at Take Advantage of 30+ Years of IT Experience !