conformiq tool suite - verifysoft conformiq tool suite issues with traditional test case development...

42
Conformiq Tool Suite Automatic Test Design 5 October 2011

Upload: dangxuyen

Post on 22-Mar-2018

216 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

Conformiq Tool Suite

Automatic Test Design

5 October 2011

Page 2: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

2

Software development processSoftware development processRequirements

Analysis

SystemDesign

ArchitectureDesign

Detailed Specifications

Coding

SoftwareValidation

System Testing

IntegratingTesting

Unit Testing

Black box tests

White box testsTestwell CMT++

CMTJavaComplexity

Measures

Testwell CTA++Unittest

Testwell CTC++Code Coverage

Conformiq Tool SuiteElvior TestCastFunctional Test

Page 3: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

3

Conformiq Designer:Conformiq Designer:

Model-Based Automated Test DesignModel-Based Automated Test Design

for functional testsfor functional tests

(black box tests)

for software and systems

Conformiq Tool SuiteConformiq Tool Suite

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 4: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

4

Manual tests takes time...and leads to risks

incorrect tests

missed tests

redundant tests

maintenance of tests

Conformiq DesignerConformiq Designer

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 5: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

5

Our solution: Automated Test Design

→ model driven testing, model based testing, specification based testing,

specification driven testing,

...

Conformiq DesignerConformiq Designer

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 6: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

6

Automatic test generation and execution based on your design models

instead of writting the tests manually

Manual vs. AutomaticManual vs. Automatic

X

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 7: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

7

Process:Creation of the model Import of the model Selection of the test coverage requirements and formats for the test scripts. Automatic test generation with Conformiq Designer

Test execution in your environment.

Test generationTest generation

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 8: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

8

Process:Creation of the model Import of the model Selection of the test coverage requirements and formats for the test scripts. Automatic test generation with Conformiq Designer

Test execution in your environment.

Test generationTest generation

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 9: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

9

The tool automates the design of functional tests (black box tests) for software and systems

Model Driven TestingModel Driven Testing

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 10: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

10

Model Driven TestingModel Driven Testing

Benefits:Benefits:

● enforces the quality of requirements enforces the quality of requirements documentation documentation

● creates a common platform for designers creates a common platform for designers and testersand testers

● self documentedself documented

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 11: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

11

Modelling – The ModelModelling – The Model

● When designing your MBT model you can have two different approaches:● Design your model from scratch – independently

from other existing models● Reuse and adapt other existing development

models:– Customize the model to your needs– Simplify the model – Strip the model from all irrelevant information– Make sure that it is black box, and describes the syste´m

behaviour in a proper way

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 12: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

12

ModellierungModellierung

Supported Constructs:

● Data (strings, numbers, records, classes, arrays…)● Time (timeouts, dynamic timeouts…)● Control structures (methods, dynamic

polymorphism…)● Concurrency (multiple Java threads in model, ITC

primitives…)● Java + templates, macros, record values, type

inference…

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 13: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

13

● Textually in Java (with elements in C#)● Grafically in UML State Charts (optional)

● The model can be created with:– Text editor („Java“)– Conformiq Modeler (UML State Charts)– or Third Party Modeling (UML) tools

ModellingModelling

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 14: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

14

Process:Creation of the model Import of the model Selection of the test coverage requirements and formats for the test scripts. Automatic test generation with Conformiq Designer

Test execution in your environment.

Test generationTest generation

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 15: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

15

Process:Creation of the model Import of the model Selection of the test coverage requirements and formats for the test scripts Automatic test generation with Conformiq Designer

Test execution in your environment.

Test generationTest generation

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 16: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

16

Coverage CriteriaCoverage Criteria

● defines the exhaustiveness of testing

● choice depends on the model; Designer also assists here by only showing criteria that is relevant for a particular model

● the number of checkpoints thus generated is linearly proportional to the size of the model

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 17: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

17

State ChartsState Charts

● Transition coverage→ Cover all transitions in all state charts

● 2-transition coverage→ Cover all transition sequences of length 2 in all state charts

● State Coverage→ Cover all states in all state charts

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 18: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

18

Conditional BranchingConditional Branching

● Boundary value coverage– For every test x < y, cover cases x = y – 1; x < y – 1; x = y; and x > y– Other comparators work analogously

● Branch coverage– For every if and while loop, cover both the positive and the negative branch

● Atomic condition coverage– For every x and y and x or y, cover combinations of the truth values of x and y (but taking short-circuited evaluation into account)

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 19: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

19

Requirements coverageRequirements coverage

● to add traceability to system requirements– example: Inventory system must give an alarm under appropriate circumstances

● to extend test coverage by expressing testing targets that are not covered by model coverage criteria

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 20: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

20

Control FlowControl Flow

● Method coverage– covers every QML level method

● Statement coverage– covers every QML level statement

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 21: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

21

Formats for the test scripts generation:

Python TCL TTCN-3C, C++ Visual Basic JavaJunit Perl ExcelHTML Word Shell Scripts

Test generationTest generation

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 22: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

22

Process:Creation of the model Import of the model Selection of the test coverage requirements and formats for the test scripts. Automatic test generation with Conformiq Designer

Test execution in your environment.

Test generationTest generation

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 23: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

23

Test scripts generationTest scripts generation

Test scripts Generation progress

List of test scripts

Requirement Tracebilityof the test scriptsMessage Sequence Chart

for a test script Test Step Viewwith detailled information

about contents

Execution Trace View:shows the execution's

trace in the model

Page 24: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

24

Conformiq DesignerConformiq Designer

Model

Test scripts generation

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 25: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

25

Process:Creation of the model Import of the model Selection of the test coverage requirements and formats for the test scripts. Automatic test generation with Conformiq Designer

Test execution in your environment

Test generationTest generation

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 26: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

26

Test scripts executionin your existing evironment(manually or automatically)

Test scripts executionTest scripts execution

Model

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 27: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

27

Conformiq Tool SuiteConformiq Tool Suite

Issues with traditional test case development• Unknown & inadequate functional testing coverage

• Difficulties to establish requirement traceability to the test cases

• Missed test cases or scenarios

• Growing test suite after a series of revisions not knowing which

test cases are redundant

• Update on test suite after each revision is time consuming

• Pressure to conduct testing quicker

due to late delivery of implementation

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 28: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

28

Conformiq Tool SuiteConformiq Tool Suite

MBT vs. Traditional testing

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 29: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

29

MBT vs. Traditional testingMBT vs. Traditional testing● Compared to traditional test methods, MBT is a complete

paradigm shift.● New competences are required, and training must be

taken care of.● New roles must be established within the test organisation,

especillay the model designer (“test architect“).● The testers must learn to not think as testers.

When designing the model, the tester shall not think in terms of test cases – the tester should, ultimately, only think of the system behaviour.

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 30: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

30

MBT vs. Traditional testingMBT vs. Traditional testing

● The tester must have a thorough understanfing of the new functionality, and be involved in (and contribute to!) the development project already in the early stages.

● Basic level of “stability“ (organisation, test environments, etc.) is needed.

● And from experience:For a tester to work with MBT, is challenging, inspiring and Fun!

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 31: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

31

Conformiq Tool SuiteConformiq Tool Suite

Customer Feedback

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 32: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

32

Customer FeedbackCustomer Feedback

● The generated test cases are better than our traditional test cases.

● The generated test cases cover several events (Conformiq Designer requirements), while the traditional test cases normally only cover one event/situation.

● And we have found faults with the genereated test cases that we would not have found with the traditional test cases.

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 33: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

33

Customer FeedbackCustomer Feedback

● The generated test suite is easy to read, follow and understand. Conformiq provides plug-ins that will render the generated test cases into an html document and/or automated test scripts.

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 34: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

34

Customer FeedbackCustomer Feedback

● The output consists of a test suite, which is divided into a number of test cases, which in turn contain a number of test steps.

● The number of generated test cases is greater than the number of test cases we would have written “manually“ with our traditional methods.

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 35: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

35

Customer FeedbackCustomer Feedback

● The generated test cases are better than our traditional test cases. The generated test cases cover several events (Conformiq Designer requirements), while the traditional test cases normally only cover one event/situation.And we have found faults with the genereated test cases that we would not have found with the traditional test cases.

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 36: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

36

Customer FeedbackCustomer Feedback

● The generated test suite is easy to read, follow and understand. Conformiq provides plug-ins that will render the generated test cases into an html document and/or automated test scripts.

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 37: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

37

Customer FeedbackCustomer Feedback

● The generated test scripts get a good structure, and yhere also easy to read, follow and understand. There are also easy to edit, which is good for trouble-shooting purposes.

● Furthermore you can also easily build your own test cases using the structure from the generated test suite.

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 38: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

38

Conclusions - ExperiencesConclusions - Experiences

Hard experiences:● Time:

– First project : approximately same lead time and same number of resources (no one with experience in this way of working.– Following projects: same lead time but fewer resources.– Forthcoming projects: shorter lead time and fewer resources.Major gains have been achieved when implementing similar functionality on different platforms, and with incremental development.

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 39: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

39

Conclusions - ExperiencesConclusions - Experiences

Hard experiences (continued):● Coverage:

– Faults found that we would not have found with traditional test design methods.

● Quality: – No decrease in the quality of the tested product has been observed.Too early to say whether the quality has increased

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 40: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

40

Conclusions - ExperiencesConclusions - Experiences

Soft experiences:● Most testers think that MBT is a very interesting way of

working, and are eager to learn.

● High motivation among the testers that have been working with it – and everyone think is Fun (most of the time).

● Not all testers are suited for working with modelling.

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 41: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

41

Conclusions - RecommendationsConclusions - RecommendationsIf you are a test orgamization, and if you benefit from have automated test suites:Try out the MBT way of working

But→ Don't go for a full deployment from the start.Start with a smaller, well defined, well encapsulated, area/functionality.And→ In the beginning: Stay away from functionality where you suspect you cannot avoid models with parameter explosion or great depth.

Conformiq Tool Suite™ (Modeler + Designer) is a product and a trademark of Conformiq Inc.

Page 42: Conformiq Tool Suite - Verifysoft Conformiq Tool Suite Issues with traditional test case development • Unknown & inadequate functional testing coverage • Difficulties to establish

42

more Informationmore Information

Tel: +49 781 127 [email protected]

Thank you!Thank you!