STM Unit 2 TFT
STM Unit 2 TFT
• Transaction-flow testing
Contents
4. Handling cases – decisions, biosis, mitosis, transactional junction, absorption & conjugation
5. TFG is not structured - Reasons
7. Test Execution
Transaction-flow
Transaction-flow Graph
TFG represents a behavioral (functional) model of the program (system) used for
functional testing by an independent system tester.
Transaction
6. Request direction from user 12. Record transaction in log & cleanup
(Closure)
cancel
help
Y
Transmit Accept More
B C Transmit D
Page to Input Fields? To CPU
terminal Field
CPU- Y N N
More User wants Done
D Accept Valid ?
Pages ? Review?
Confirm
Transmit Set up
Diagnostic C Review
to Terminal
ref boris beizer 6
Definitions U2
Uses of Transaction-flow
Loops are less as compared to CFG. Loops are used for user input error processing
Input S A S B S C S S Output
E
S : Scheduler A, B, C, D, E : Processes
ref boris beizer 8
Implementation of Transaction-Flow U2
Input Output
Queue EXECUTIVE Queue
Front Output
End SCHEDULER - AND / OR OPERATING SYSTEM Module
DISPATCHER
Process
Queues A Processor B Processor C Processor D Processor E Processor
Application Processes
A Transaction is created by filling in a Transaction Control Block (TCB) by user inputs and by
placing that token on input Q of Scheduler.
Scheduler examines and places it on appropriate process Q such as A. When A finishes with
the Token, it places the TCB back on the scheduler Q.
3. Scheduler contains no code / data. Processing modules contain code for routing.
• Scheduler invokes processes A to E as well as disk & tape read & writes.
Cyclic structure like in this example is common in process control & communication systems.
• TFG has tokens, & DFG has data objects with history of operations applied on them.
2. Decision nodes of TFG have exception exits to the central recovery process.
Alternative 1
2. Biosis Parent
Parent
Daughter Tr.
Daughter Tr.
3. Mitosis Parent
Daughter Tr.
Mergers of transactions
Path 1
1. Junction Continue
Path 2
Daughter Tr.
2. Absorption
Predator
Predator
3. Conjugation
Parent Daughter
Parent
NOTES:
• Petrinet model uses operations for all the above. But Petrinets are
applied to H/W, N/W protocol testing – but not Software.
6. Approximation to Reality
• Represent Explicitly
1. Conducting Walkthroughs
• Traceability to Requirements
2. Path Selection
3. Sensitization
• Use patches & break points, mistune, and break the rules,
4. Instrumentation
2. Need
• Trace
• A Running Log
2. Mistakes
6. Test Execution
2. Transaction Dispatcher
• Uses tables & Finite State Machines
4. Self-Test Support
• Privileged modes in Transaction control tables
26 ref boris beizer
Transaction - Flow Testing - Caution U2-B
• Possibility of bugs