Testing dan Implementasi Sistem materi 4

Slides:



Advertisements
Similar presentations
Front Of The House Functions
Advertisements

Test Yaodong Bi.
Software Testing and Quality Assurance
Use case tutorial examples.
Black Box Testing Csci 565 Spring 2009.
SOFTWARE TESTING. INTRODUCTION  Software Testing is the process of executing a program or system with the intent of finding errors.  It involves any.
Use Case & Use Case Diagram
BTS430 Design Model: Sequence Diagrams involving collections.
1 Software Engineering Lecture 11 Software Testing.
Use Case Modeling SJTU. Unified Modeling Language (UML) l Standardized notation for object-oriented development l Needs to be used with an analysis and.
Register Disbursement Schemes
Lecture 9 Descriptors, Events & Event Tables INFO1409 Systems Analysis & Design Module HND Year /9.
1 BTEC HNC Systems Support Castle College 2007/8 Systems Analysis Lecture 7 Descriptors Events Events Tables.
Software Engineering Introduction to UML.
Introduction to Software Testing Chapter 2.6 Graph Coverage for Use Cases Paul Ammann & Jeff Offutt
©2008 TTW Where “Lean” principles are considered common sense and are implemented with a passion! Product Training Credit Cards.
Analysis Modeling Over view of today’s lesson T he analysis model is the first technical representation of a system. Analysis modeling uses a combination.
Travel Tips: Do and Don’t. I. Introduction: Travel Tips: Do and Don’t A. Knowing something before you go B. Consular information program (Travel Aboard)
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
Testing an individual module
Copyright © 2007 Prentice-Hall. All rights reserved 1 Internal Control & Cash Chapter 8.
7. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Detailed Object-Oriented Requirements Definitions  System Processes—A Use.
1 Software Testing and Quality Assurance Lecture 27 – Testing State Transition Diagrams.
Software Testing Prasad G.
Database Constraints. Database constraints are restrictions on the contents of the database or on database operations Database constraints provide a way.
Equivalence Class Testing
Test coverage Tor Stålhane. What is test coverage Let c denote the unit type that is considered – e.g. requirements or statements. We then have C c =
© 2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
January 27, 2002 ECEN5033 University of Colorado -- Class Testing 1 Specifying interactions Remainder of slides assume Operations defined by a class are.
© 2002 Railinc. All rights reserved. 1 Copyright © 2005 All rights reserved. Customized Parameter Trace.
THIS IS THE FIRST SCREEN YOU SEE WHEN YOU LOG INTO MUNIS. TO ACCESS THE SCREENS YOU WILL NEED THROUGHOUT THE DAY, START BY CLICKING ON THE MENU TAB. Utility.
Dynamic Black-Box Testing Part 2
Testing. What is Testing? Definition: exercising a program under controlled conditions and verifying the results Purpose is to detect program defects.
CS 325: Software Engineering March 3, 2015 Activity Modeling for Transformational Systems Trtansformational Systems UML Activity Diagrams.
BTS330 Documenting Use Cases.
COURSE DESCRIPTION Ventana Medical Systems will share how it changed the organization’s culture and implemented the necessary processes to sustain and.
Contents: Sales Process Handling Issues in Sales – A/R Sales - A/R.
Software Transition Testing Presented By: Varun Phanda
CHECKING TODAY. ADVANTAGES OF REGULAR CHECKING ACCOUNTS Safe means of transporting money Legal proof of payment Form or recordkeeping ADVANTAGES OF eCHECKING.
Black Box Testing Techniques Chapter 7. Black Box Testing Techniques Prepared by: Kris C. Calpotura, CoE, MSME, MIT  Introduction Introduction  Equivalence.
Originated by K.Ingram, J.Westlake.Edited by N.A.Shulver Use Case Scripts What is a Use Case Script? The text to describe a particular Use Case interaction.
Copyright © 2009, Thinking Media, a division of SAI Interactive, Inc. All rights reserved. The Career Ready 101 logo is a registered trademark and Career.
© The McGraw-Hill Companies, 2006 Chapter 2 Selection.
Sanjay Johal. Introduction(1.1) In this PowerPoint I will be explaining :  The purpose of the code for each of the two given programs, e.g. to carry.
1 Graph Coverage (6). Reading Assignment P. Ammann and J. Offutt “Introduction to Software Testing” ◦ Section
Scenario A scenario is a sequence of steps describing an interaction between a user and a system. Use case is a set of scenarios tied together by a common.
Information Systems Engineering Activity Diagram 1.
Chapter 7 Buying Decisions Lesson 7-1 Designing a Buying Plan LEARNING OBJECTIVES: - DISCUSS THE RESULTS OF BEING FINANCIALLY RESPONSIBLE AND FINANCIALLY.
Section 1- Designing a Buying Plan CHAPTER 7.  Systematic Decision Making  The process of making choices that reflect your goals  Consider pros and.
Testing in the Small (aka Unit Testing, Class Testing) 1209.
 Engineering Quality Software.  Today o State Diagrams Jerry Kotuba SYST30009-Engineering Quality Software 2.
Microsoft Excel 2013 Chapter 9 Formula Auditing, Data Validation, and Complex Problem Solving.
State Machine Diagram Chapter 5 Introduction Pages
Synchronous Counter Design
Black Box Unit Testing What is black-box testing? Unit (code, module) seen as a black box No access to the internal or logical structure Determine.
NEXT…. Introduction 1. You must have android phone Or Computer… 2. Than first check bus fare and seat availability.. 3. If once selected then simply select.
Verification vs. Validation Verification: "Are we building the product right?" The software should conform to its specification.The software should conform.
Testing Integral part of the software development process.
Testing dan Implementasi Sistem materi 4
Software Testing.
Dynamic Modeling of Banking System Case Study - I
Exercise 1 Draw a UML class diagram that represents a travel agency's ticketing information. In this diagram, you should represent the concept of a person,
Graph Coverage for Specifications CS 4501 / 6501 Software Testing
EVALUATION OF V&V TOOLS
UML State machine diagram
Chapter 10 Object States and The Statechart Diagram
Test Case Test case Describes an input Description and an expected output Description. Test case ID Section 1: Before execution Section 2: After execution.
Using Use Case Diagrams
Information Systems Engineering
Test Design Techniques Software Testing: IN3240 / IN4240
Presentation transcript:

Testing dan Implementasi Sistem materi 4

State-Transition Testing Example in Reservation system

State-Transition Testing Example State-Transition diagrams are an excellent tool to capture certain types of system requirements and to document internal system design. These diagrams document the events that come into and are processed by a system as well as the system's responses.

Reservation system example 1- Make a reservation Provide information including departure and destination cities, dates, and times. A reservation agent uses that information to make a reservation. At that point, the Reservation is in the Made state. The system creates and starts a timer. If this timer expires before the reservation is paid for, the reservation is cancelled by the system.

The Reservation is Made giveInfo, is an event that comes into the system from the outside world. The command after the "/" denotes an action of the system; in this case startPayTimer.

2- Pay for the Reservation - PayMoney The Reservation transitions to the Paid state. Events may have parameters associated with them. For example, Pay Money may indicate Cash, Check, Debit Card, or Credit Card

3- Print the ticket: - print The Reservation transitions to the Ticketed state.

4- Give ticket giveTicket to the gate agent to board the plane The Reservation transitions to the Used state.

4- Give ticket (Cont.) The path ends

5- Cancel for no payment by the ‘PayTimer’ If the Reservation is not paid the PayTimer expires and the Reservation is cancelled for non-payment.

6- Cancel by customer When the customer asks to cancel the Reservation Cancel the Reservation from the Made state

7- Cancel by customer after payment A Reservation is cancelled from the Paid state, a Refund should be generated and leave the system Cancellation from the Paid state

8- Customer cancels after receiving the ticket From the Ticketed state the customer can cancel the Reservation. In that case a Refund should be generated. The airline will generate a refund but only when it receives the printed Ticket from the customer. This introduces one new notational element—square brackets [] that contain a conditional that can be evaluated either True or False. This conditional acts as a guard allowing the transition only if the condition is true.

8- Customer cancels after receiving the ticket (cont.) Cancellation from the Ticketed state

State-Transition Tables State-transition tables may be easier to use in a complete and systematic manner. State-transition tables consist of four columns—Current State, Event, Action, and Next State.

State-Transition Tables (Cont.) The advantage of a state-transition table is that it lists all possible state-transition combinations, not just the valid ones. When testing critical, high-risk systems such as avionics or medical devices, testing every state-transition pair may be required, including those that are not valid. Creating a state-transition table often unearths combinations that were not identified, documented, or dealt with in the requirements. It is highly beneficial to discover these defects before coding begins.

State-Transition Tables (Cont.) Using a state-transition table can help detect defects in implementation that enable invalid paths from one state to another. The disadvantage of such tables is that they become very large very quickly as the number of states and events increases. In addition, the tables are generally sparse; that is, most of the cells are empty.

Creating Test Cases Create a set of test cases such that all states are "visited" at least once under test. The set of three test cases shown below meets this requirement. Generally this is a weak level of test coverage.

A set of test cases that "visit" each state

Creating Test Cases (Cont.) 2. Create a set of test cases such that all transitions are exercised at least once under test. This level of testing provides a good level of coverage without generating large numbers of tests. This level is generally the one recommended.

A set of test cases that trigger all transitions at least once

4. A set of test cases that trigger all transitions at least once (Cont.) Test cases can also be read directly from the state-transition table. The gray rows in the following table show all the valid transitions.

State-Transition Testing (Cont.) Summary State-Transition diagrams efforts by identifying the states, events, actions, and transitions . These define how a system interacts with the outside world, the events it processes, and the valid and invalid order of these events. The generally recommended level of testing using state-transition diagrams is to create a set of test cases such that all transitions are exercised at least once under test. In high-risk systems, you may want to create even more test cases, approaching all paths if possible or create test cases for some or all of the invalid state/event pairs to make sure the system has not implemented invalid paths.

Teknik Black Box Testing Lainnya 1. Orthogonal Array 2. Functional analysis 3. Comparison Testing 4. Test factor Analysis 5. Risk Based Testing 6. Syntax Testing