Top Banner
Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007
16

Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

Dec 19, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

Acceptance Testing

CSSE 376, Software Quality Assurance

Rose-Hulman Institute of Technology

March 30, 2007

Page 2: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

2

Outline

Role of Acceptance Testing Other Paths to Acceptance Agile Approach

Page 3: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

3

Lifecycle Testing Relationships

Requirements

High-level Design

Low-level Design

Code Unit Testing

Integration Testing

System Testing

Acceptance Testing

Page 4: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

4

Requirements as Use Cases

1. For each use case enumerate a set of scenarios

2. Construct a test case for each scenario

3. Construct a test suite to run the test cases

Page 5: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

5

Other Paths to Acceptance

Beta testing Distribute system to volunteers Collect change requests, fix, redistribute Collect statistics on beta use

Shadowing Collect or redistribute real-time use of existing

system Compare results Collect statistics

Page 6: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

6

Agile Approach: Framework for Integrated Test (FIT) Developed by Ward

Cunningham as an extension of xUnit framework

Encourages customer participation via simple tables

Page 7: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

7

Story-Driven Development

Customers write stories Developers develop code to realize

each story Customers and developers work

together to create tests of each story

Page 8: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

8

Cartoon of the Day

Page 9: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

9

FIT + Wiki + Web Server = FitNesse

Page 10: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

10

Why Do We Need a Wiki?

Lower the barrier to customer participation

Easy to keep up-to-date

Page 11: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

11

Fixture: Connection Between Test System and Application

When "Test" button is pushed a fixture is called to process the table

The fixture delegates to underlying application code

Fixture code is like xUnit TestCase code extends base class may create objects for multiple tests

Page 12: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

12

Common Table Formats

ColumnFixture each row specifies one input and one

output RowFixture

first row is input, remaining rows are output

ActionFixture each row is either an action to perform

or a value to check

Page 13: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

13

ColumnFixture

eg.Division

numerator denominator quotient?

10 2 5

12.6 3 4.2

100 4 25

Page 14: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

14

RowFixture

fitnesse.fixtures.PrimeNumberRowFixture

prime

2

3

5

7

Page 15: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

15

ActionFixture

Action Table

start fitnesse.fixtures.CountFixture

check counter 0

press count

check counter 1

Page 16: Acceptance Testing CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 30, 2007.

16

Demo