Download IBM Gotcha TCBeans Users guide

Transcript
Contents
1
Introduction
1.1
1.2
1.3
1.4
1.5
2
2.4
2.5
11
What is a Behavioural Model?....................................................... 11
Writing a Behavioural Model ........................................................ 11
Basic GDL Concepts...................................................................... 13
2.3.1 Backus-Naur Form (BNF) ................................................. 13
2.3.2 Lexical Conventions .......................................................... 13
GDL Syntax ................................................................................... 15
2.4.1 Model Syntax..................................................................... 15
2.4.2 Declaration Syntax............................................................. 15
2.4.3 Procedure and Function Syntax ......................................... 17
2.4.4 Expression Syntax.............................................................. 18
2.4.5 Statement Syntax ............................................................... 21
2.4.6 Rules and Directives Syntax .............................................. 25
A Sample Model – Hello World .................................................... 35
2.5.1 Hello World Application Specification ............................. 35
2.5.2 The GDL Model of Hello World ....................................... 35
2.5.3 The Hello World Finite State Machine.............................. 37
Generating Test Suites – First Steps
3.1
3.2
GOTCHA Users Guide
Overview.......................................................................................... 5
Requirements ................................................................................... 6
What’s New in this Release ............................................................. 6
The GOTCHA-Spider Methodology ............................................... 7
1.4.1 Write a Behavioral Model for Test ...................................... 8
1.4.2 Write a Testing Interface ..................................................... 8
1.4.3 Generate Abstract Test Suites.............................................. 8
1.4.4 Review Behavioural Model, Abstract Tests, and Testing
Interface ........................................................................................... 9
1.4.5 Execute the Test Suite ......................................................... 9
1.4.6 Observe and Iterate .............................................................. 9
The contents of this document ......................................................... 9
Writing a Behavioural Model
2.1
2.2
2.3
3
5
39
The Abstract Test Suite – GOTCHA’s output file ........................ 39
Interactive Test Generation............................................................ 42
3.2.1 Introduction to the Interactive Generator .......................... 42
Page i of 108
Contents