getting started with conformiq creator · • selenium • ibm rft • microsoft visual studio ......

114
Automated Test Design™ Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 1 Getting Started with Conformiq Creator CONFORMIQ DESIGNER CONFORMIQ Designer CONFORMIQ Creator Modeling SUT Test Execution ? Test Design

Upload: others

Post on 19-Jul-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 1

Getting Started with

Conformiq Creator

CONFORMIQ

DESIGNER

CONFORMIQ Designer CONFORMIQ Creator

Modeling

SUT

Test Execution

?

Test Design

Page 2: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 2

Contents

• Introduction to Conformiq Creator

• Installing Conformiq Creator

• Working with Conformiq Creator (Theoretical)

Part A:Modeling with Interface Diagrams

Part B:Modeling with Activity Diagrams

• Getting Started with Conformiq Creator Examples

• Getting Started with your own Creator Project (Practical)

Page 3: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 3

Introduction to Conformiq Creator

Creator at a glance

Page 4: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 4

Manual

Scripts-Based

Capture/Replay

Frameworks

Keyword Driven

Conformiq ATD+ Creator version

Test Models

ATD

MBT

ATD+

Conformiq Creator

Conformiq Designer

ATD = Automated Test Design

Page 5: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 5

Model

System Operation

with Creator

Direct & Review

Test Design

Generate Test Scripts

& Documentation

Creator = Activity Diagrams + Actions (generated from Structure Diagrams)

Iterative Approach Eclipse based IDE Publishing the outputs

3 – Step ATA(MBT) Process with Conformiq Creator

Page 6: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 6

MBT Architecture using Conformiq

Test Automation

Model system/functional behaviour

Conformiq Creator

Render test cases

Scrip

tin

g

Ba

cke

nd

Test Scripts

Wrapper to invoke

SUT

Test harness

Attached scripting

backend

Test Design:

- Validate the model & Generate Test

cases and execution scripts

- Validate requirement coverage

- Validate expected results ( Pass/Fail)

- Enhance visibility of Functional flows

Auto Test Execution – Seamless Migration

- Tailored integration to the customer

framework

- Linked to Test data & SUT

- Even automate progression testing!!

SUT (SYSTEM

UNDER

TEST)

Page 7: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 7

About Conformiq Creator

• Comes with a new modeling paradigm developed by Conformiq for creating models for test generation

– Activity diagrams describe workflows (what to test)

– Where actions that realize activities are specified based on a generated Action Keyword Repository (AKR) (how to test)

• New frontend for a proven test generation environment

– Specifically developed for (but not limited to) using Conformiq in system & user acceptance testing

• Designed for

– People without programming skills to specify, review and contribute to modeling for test generation

– Domain specific customization of models

– Deeper integration into existing tool chains

– Further automation of the test process!

AKR

+ Productivity

Page 8: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 8

AD

Display

Fill

Query

Req

?

N

Y

SD

Cornerstones for Modeling with Creator

• Activity Diagrams (AD)

– Specify business/work flows using standard activity diagram symbols

– Refine activities and decision based on action keywords and data objects from repository

• Action Keyword Repository

– Action keywords and data objects generated from interface objects

• Structure Diagrams (SD)

– Define external SUT interfaces available for testing based on predefined interface objects

Action Keyword Repository

Page 9: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 9

ATA(MBT) in E2E – Solution Approach

CONFORMIQ Creator

Version Control

Bug Tracking Requirement & Test

Management

Modeling Test Design

SUT

Test Execution

?

Settings

Tests

Framework

Adapters

Issues

Fixes

Releases

Model

Reqs

Test Desc

Coverage

Code Settings

Tests

Execution

Reports

Reqs

Tests

Reqs

Test Desc

• HP QC - DOORS

• Rally - Requisite Pro

• Conformiq Creator

• Visio

• IBM RSA/RTE

• ARIS

Application

model will be

done by SMEs

A

u

t

o

-

h

a

r

n

e

s

s • Test Execution

Tools:

• HP QTP

• Selenium

• IBM RFT

• Microsoft Visual

Studio

• Titan TTCN

• Etc...

Page 10: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 10

Key Features of Conformiq Creator

• Support for subset of standard activity diagram symbols

– Mapping to UML activity diagrams

• Support for graphical data flow specification

• Support for modular model construction allowing independent development of isolated functional aspects

– Enables composition of larger models from supplied parts

• Live check and guidance during model construction

• Support for domain specific SUT interface specification

– Fully automatic generation of action keyword repository

– Support for SUT interface change management

– Import of interfaces from 3rd party (test execution) tools

– Allows further automation of test harness implementation for user interface testing

Page 11: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 11

Conformiq Creator Benefits

• Allows to engage and interact with stakeholders other than testers in directly model creation & review

– Customers, system engineering, business analysts, etc.

– Enables a completely new way of working!

• Access to Conformiq’s unique and proven test generation engine!

– Use of all existing coverage algorithms, criteria, analysis, etc.

– Automatic exploitation of all data dependencies in system operation in test generation

• Automates model creation without programming

– Offers domain specific actions and error checking as building blocks (e.g., login, form entry, sort, search, etc.)

– Allows reuse and aligning with customer activity diagrams

– Reuse interface descriptions, e.g., from existing testing harness

• Enables generation of test harnesses from structure diagrams

Page 12: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 12

Use Scenario: Model Designer + CoE

Joe

• Jill (test automation) provides & maintains SUT interface information

• Jeff (CoE team) supports Joe with custom actions/activity libraries

• Joe models SUT specific functionality and reuses Jeff’s COTS

• Jane reviews Joe’s documentation generated from the model

• Joe & Jeff analyze own generated tests & Jack executes them

Test

Auto SUT

AKR

Jeff AKR

Jane

Jill

frame

work SD/SL

Jack

tests

Page 13: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 13

Working with Conformiq Creator

From Modeling to Validation to Test Execution

About Sharing, Versioning, and Working in Collaboration

Page 14: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 14

Model Development with Conformiq Creator

1. Model or import SUT interfaces available for testing using

Structure diagram(s) in Conformiq Modeling perspective

– Can also be done in parallel with step 2

2. Model overall SUT operation from highest (business

workflows) to lowest level (interface operation) by using

standard (informal) Activity diagram (s)

3. Refine your model by adding SUT interactions, data flows,

and conditions based on generated Action Keyword

Repository to reflect business rules

4. Validate your model by peer review and reviewing tests

generated in Conformiq Test Design perspective

5. Render and upload reviewed tests for documentation and/or

test execution

Page 15: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 15

Modeling of Available SUT Interfaces

• Model all message based and user interfaces required and available to validate SUT operation

• Ideally reuse and leverage existing test harness information – Transform and import via XML

• Start (again) small by modeling only relevant interface information – Only messages and message

fields relevant to system operation

– Only screens, forms etc or widgets like buttons, table columns, text boxes etc required to realize workflows

– Then extend interface definitions based on need

Page 16: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 16

Refining SUT Operation for Test Generation

• Use action keywords and

data objects generated from

Structure Diagram(s)

• Extend existing flows or add

application specific diagram

layer if needed

• Add actions to activities

• Add data objects and data

flow to control flow

• Add action pre-conditions

and decision conditions

Refined

Decision

New

Activity

Refined

Activity

Page 17: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 17

• Decompose SUT operation starting

ideally from business processes

• Refine activities via one or more

levels of sub diagrams to reflect

actual operation of SUT or

application under test

• Follow classic “pipe cleaner” style

– Start with a few high level flows

(i.e. a subset of functionality)

– Then refine by adding more

functionality to the different levels

Multi Level Modeling of Workflows

Page 18: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 18

Important aspect of MBT:

-Functional component Reusability approach

Common

Component #1

Common

Component#2

Common

Component #3

Company Level of

Application Level

Parameter

definitions

Common Data

Definitions across

all features

Models

Feature #3 Feature #1 Feature #2 Feature

Models

Reusable

function

Components

Common

Configuration

Definitions

Page 19: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 19

Model Validation by Test Review

Load model and

generate test cases

Check coverage

settings

Review

generated tests

• Self review by evaluating

tests

– Adjust default coverage

settings in Coverage Editor

(if needed)

– Review generated tests in

test case & test step views

– Use traceability matrix to find

& navigate between tests

• Peer review (with others)

– Print or export models, e.g.,

HTML

– Share model files with peers

Page 20: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 20

From Generated Tests to Test Execution

1. Add one or more scripting backend(s) to your

Conformiq project Design Configuration(DC)

2. Click the “Render tests” button in the tool bar

– All tests generated at this point will be converted by all attached

scripting backends according to their property settings

– The output format depends on scripting backend, e.g., Excel

Scripter produces spreadsheets for tests and traceability matrix,

JUnit scripter produces Java files for tests, etc

3. Before executing generated test scripts a “generic test

harness file” needs to be implemented (one time effort)

– Implementation stubs are generated by scripting backends

Please consult the Conformiq Creator User Manual for more information

Page 21: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 21

Use Scenario: Collaborative

• Jim (MBT Modeler) & Joe work in a huge project on different features

• Jim, Joe & Jeff diagrams via a common project repository

• Joe & Jim analyze generated tests only for their own features

• Jill, Jane and Jack are not shown here but may still be involved

Jeff AKR Joe

Jim AKR

Project

Repository AKR

Page 22: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 22

Versioning and Sharing Creator Diagrams

• Diagrams in a project can be versioned as using

standard version control software like svn, cvs, git, etc

– Since diagram files are XML version them as binary

• Structure diagrams can be shared with other users or

reused in other projects by copying or linking files

• Activity diagrams can be shared as files or for review by

exporting them to a HTML file (or printing them)

– Sharing of Activity diagrams as files also requires

• Sharing of all relevant Structure diagram files (SD and SL),

i.e., basis of actions used in these Activity diagrams

• Sharing of all Activity diagrams referenced as subdiagrams

Page 23: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 23

Installing Conformiq Creator

Page 24: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 24

• Installation And Hardware Requirements & OS:

Conformiq tool comes in client-server architecture where

the client user interface is implemented as an Eclipse

plugin. The server component — Conformiq Computation

Server — can be installed on the same computer as the

Conformiq Eclipse Client or on another computer on the

same local area network.

Installation Recommendation

Page 25: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 25

Hardware Requirements and Recommendations

Full Client only Server only

Physical Memory

(RAM) 4 GB 2 GB 4 GB

Processor

x86 family with 4

cores or 2 HT cores

at 2GHz

x86 family with 2

cores or 1 HT core at

2GHz

x86 family with 4

cores or 2 HT cores

at 2GHz

Hard disk (for

installation only) 400 MB 200 MB 200 MB

The Following Details the strict requirements for the Hardware, It lists 3 types of

Installation and the corresponding requirements & recommendations:

1) Full Creator installation including both client and computation server (default)

2) The client only and

3) The server only.

Industrial deployments should be base on 64 bit architecture even if the tool chain

operates on 32-bit platform.

where HT stands for “hyper threading”.

Page 26: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 26

Hardware Requirements and Recommendations

Full Client only Server only

Physical Memory

(RAM) > 16 GB > 8 GB > 16 GB

Processor 64 bit x86 family with 8

cores or 4 HT cores

64 bit x86 family with 4

cores or 2 HT cores

64 bit x86 family with 8

cores or 4 HT cores

The following details the recommendations for the hardware

A good rule of thumb is memory in GB is more than 2 times number of cores, so for

example a machine with 8 cores should have at least 16 GB of physical memory.

Page 27: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 27

Software Requirements

• Conformiq Creator 2 installer

• Required Java environment for running Conformiq Eclipse

Client (QEC) is Sun Java 6 or higher.

• Windows XP, Windows Vista, Windows 7 are supported.

• Windows distributions are provided both as a 32 and 64 bit

installations.

• The 32 bit installation can be executed also in 64 bit

environments

• It is highly recommended to use native 64 bit installation on 64

bit systems

• It is highly recommended to install SP3 or newer to Windows

XP to take advantage of parallel test generation algorithm

Page 28: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 28

Part A:

Modeling with Structure Diagrams

Concepts & Examples

Page 29: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 29

The Structure Diagram

• Defines the SUT interfaces available for testing

• Message concept for message based interfaces

– Specifies interface(s) & message fields

• Screen, Popup, Form, Data Table concepts for UI Interfaces

– Including input widgets like text box, dropdown, checkbox, etc

– Including action widgets like button, link, tab, expander, menu, etc

• A generic concept of a data table

– To manage Data Table content or model “data base like” SUT behavior

– Has to be mapped to a form or message in an structure diagram to store received data, and to a Data Table to display contents

– Can be initialized via a XLS/CSV file

SUT SD

Page 30: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 30

Structure Diagram for Gmail Login

Define external SUT interfaces available for testing based on predefined

interface objects

Considering Gmail Login Scenario

-Receive Error Message ,if username and password are incorrect

-Navigate to Account Page, if username and password are correct

-Not considering further flow

Message

Field name

Form

definition

Form data

fields

Screen

Screen

Page 31: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 31

More on Structure Diagrams

• Interface objects can be defined across multiple diagrams

– Referenced interface objects or objects with mappings (e.g., forms & tables) must be specified in same diagram

• Conformiq Creator includes a importer for WSDL/XSD files that automatically converts and creates a Structure Diagram with Message, Sequence, Choice and External Interface objects defined in selected WSDL/XSD(s)

• Predefined action keywords and associated data objects are always generated from all structure diagrams in a project

– Requires that there is no errors in any Structure Diagram

– In general one interface object is the source of multiple action keywords to the repository

Page 32: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 32

Action Keyword repository(AKR) Generation on Save

- Message, Form and Screen ID Example and Action Keywords

Generated Action Keywords

Page 33: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 33

The Structure Diagram: Listbox widget in forms

Page 34: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 34

The Structure Diagram: Specification of (tree) nodes in SDs as part of

screen and popups

Page 35: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 35

Part B:

Modeling with Activity Diagrams

Concepts & Examples

Day-2 : FN

Page 36: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 36

The Activity Diagram

• Defines the SUT functionality to be tested

• Specifies abstract control flow aspects by using standard activity diagram symbols (what to test)

– Initial node, (sub)activity, final node, event, decision, merge, control flow

• Activities and decision diamonds are refined with actions and conditions from the action repository (how to test)

– Action are specified from generated action keywords and can include pre-conditions, constraints on received data, and storing or production of data

– Conditions are specified based on generated data objects including variables and different kinds of values

• Data flow aspects can be specified graphically with generated data objects and data flows

AD

Page 37: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 37

Activity flow for Gmail Login

(“what to test ”+”how to test”)

Activity Decision box

Initial node starts

control flow

Variable Data Object

Page 38: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 38

The Activity Diagram: Additional features

• Set State Variable action to modify values of state

variables.

• Ability to define state variables of type string, Boolean,

Number & Date in Activity Diagrams

Page 39: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 39

The Activity Diagram: State Variables

Page 40: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 40

The Activity Diagram: List box widgets (Forms)

• Users can specify list boxes as part of forms. Please note

that when specifying data in conditions or constraints one

(specific) list box value models all the selected fields

(which maybe none, one or more). Alternative values

specify a list of possible selections. Note also that using

listboxes with different Data Coverage setting _requires_

the explicit enumeration of selection of interest using

alternative values in a Form Value, i.e., “all (pairwise)

combinations” of possible selections are not

automatically computed (since Listbox items are not a

static list but may change dynamically.

Page 41: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 41

The Activity Diagram: List box widgets (Forms)

Page 42: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 42

Modeling Data

Concepts & Examples

Page 43: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 43

More about Generated Data Objects

• Data objects can be used

– To specify constraints on or store incoming data in input actions

– To specify outgoing data to be used in send or display actions

– To specify the condition that is part of a decision

– To create graphical data flows

• During action keyword repository generation data objects are

generated for actions that can consume or produce data

– Based on interface object type Conformiq Creator generates

either specific message, form, and/or table entry data objects

– Each specific data object can either be a value, value list, or

variable data object

Page 44: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 44

About Data Tables

• Data tables have to be specified in structure diagrams

– Generally useful for modeling the impact of pre-configured or

received data on SUT operation (i.e., internal data management)

– Have to be used to model the data content of tables shown in a

user interface (i.e., UI tables)

• During repository generation add, query, remove, modify action

keywords for each data table are generated

– When adding table entries using the inline approach,

form/message to entry transformation functions have to be used

– “Is Data Table Query Result Valid?” Boolean function returns false

if no match to a query could be found.

– Queries return (only) the first item matching to a query

• A data table can be initialized via a XLS and CSV file

Page 45: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 45

Data Object Value Types

• Value: <field> EQUAL 1

– One specific value (or reference to variable field value) is specified for

every field in a Value data object (“Don’t care” = ignore field)

– Can be be used in verification actions like “Send Message” or “Display

Screen” or “Add Table” but also in constraint or condition specifications

• Alternative Value: <field> EQUAL 1,2,3 or <field> EQUAL 1 .. 3

– More than one value is specified for at least one field within a Value

data object

– Best used with String, Enumerated, or Number fields in conditions or

constraints

– Basically short hand “<field> EQUAL 1 OR <field> EQUAL 2 …”

– Alternative values can not be used in verification actions!

Page 46: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 46

• Example: Service Request Message

• Form and table entry values are specified in same way

Data Object Types

Variable (Single) Value

Value with Alternatives

Variable name

Variable fields

Variable field reference

Only single values

“Omit” value for

optional fields “Don’t care” = any value

Value List

Alternative values

Page 47: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 47

More About Using Data Objects

• In general values or variables of different data objects

can not be directly compared or assigned

– A message can not be compared against a Form

– A “XYZ Message” can not be compared against a “ABC

Message” or used in a “Send ABC Message” action

• Fields of different data object types can always be directly compared or

assigned if they are of same type

– String field “a” of “XYZ Message can be compared or assigned to

string field “b” of “ABC Message”

• The Creator editor automatically enforces these rules

Exception: Message and form objects can be used in “Add Entry”

actions if they have a mapping in an Structure Diagram

?

Page 48: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 48

Conditions

• As shown earlier conditions are the basis for making a

decision but also to specify pre-conditions in actions

• A condition compares two data objects against each other

based on a logic operator

– A variable (or variable field) against a variable (or variable field)

– A variable (or variable field) against a value

• Conditions are one of the most important constructs in the

Creator modeling language but have to be used with care

– They enable Conformiq’s test generation engine to explore and

generate tests covering all possible scenarios

– At the same time conflicting conditions (or constraints) in

different model parts can prevent test generation

Page 49: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 49

Three Choices for Condition Specification

• Completely graphical specification

– Condition composed by drawing variable(s) or value to be compared and connecting them to decision diamond via data flows (operator always assumed to be EQUAL)

– Easiest to specify and review but also most limited in expression

– Currently only supported for decisions and only for comparing (complete) data objects (only) for equality

• Completely inline specification

– Entire condition composed by selecting the variable(s) (field) or value to be compared and operator via Properties View

– Most flexible that can be used in any condition specification

• Mixed graphical and inline specification

– One or both sides to be compared are specified graphically and the rest (other side or operator) is specified via Properties View

– Best used for decisions based on variable fields

Page 50: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 50

Form

variable

Form Value

with correct

data

Store the

form details

in a variable

Compare

variable with

the value

Simple Condition Specification

Steps to Compare graphically 1) Connect Fill Form action (FF) to Form Variable using data flow

2) Connect Form Variable to decision using data flow

3) Connect Form Value to decision using data flow

Page 51: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 51

• “Combined conditions” (AND, OR, NOT, XOR) allows to

compose multiple, different conditions (e.g. on a data table

and message content)

Complex Condition Specification

AND condition

String condition

Number condition

OR condition

String condition

Page 52: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 52

Input Action Data Constraints

• Allow constraining received data values in input actions (i.e., receive message and user entry actions)

– Creator automatically constrains fields of enumeration type

– “Data coverage” setting can be used to control the amount of input data generated by Conformiq Creator (default is at least one)

• Can only be specified using complete data object values

• Can also limit possibilities for Conformiq Creator to generate tests (e.g., to cover all conditions)

Specifies that any Service Request

received at this point must have “Type

A” and “true” values for request type

and valid content fields - text and

Priority field values are not constrained.

NOTE: This eliminates the ability to

specify decisions on request

type and valid content fields

after this action!

Page 53: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 53

Dealing with Input Data Dependencies

• Often input field values may have complex dependencies

– Simple example: User name & password during login

– More advanced: Country & language selection on a web portal

• Easiest is to constrain input values is to specify relevant value

combinations in a value list

– Copy & paste values

to speed up value list

specification

– Can also be used

with decisions

Data Driven MBT

Page 54: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 54

Dealing with Dynamic Data: Placeholders

• In some situations actual values of fields may not be known at modeling time but important for test execution

– See bank account number example in slide notes

• Such fields have to be modeled as Strings and so called place holders, i.e., strings with some special characters, to indicate that these values are not real but placeholder values

– Examples: “#Account No#” or “#Valid User Name#

– Placeholder can then be replaced at test execution time with real values

• Placeholders can also be used to facilitate data driven test execution

– Example: Execute same tests generated with “#valid username#” n times with n concrete valid user names substitutions

– This technique could be used in the “Simple Login” Activity Diagram part of the “Simple Web Application” example

Page 55: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 55

Finally: Actions on data?

• Actions on data, e.g., concatenate strings or arithmetic

computation, have to be done as part of verification

actions or when adding a table entry

– Predefined functions

for basic types offer most

basic data operations

Example Number Functions

Page 56: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 56

Getting Started with

Conformiq Creator Examples

Basics of Working with Conformiq Creator Editor

Page 57: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 57

How do I Install an Example?

• Select File > New > Example and follow wizard instructions

Page 58: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 58

How To Get Tests from the Example(s)

• Select “Conformiq Test Design”

perspective

• Click “Load model” and

“Generate test cases” in

Progress Panel view

• Review test in test case and

test case steps view

Page 59: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 59

How To Review Test Generation Results

Page 60: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 60

How to Render Tests to Excel, Rally, etc

• In Example project right click on Test Design Configuration icon in project explorer and select New > Scripting Backend

• Select “Designer Installation”

• Select one or more scripting backends

• Click on “Render Tests” button in Conformiq Creator toolbar and open generated output files with applicable tool

• For further details on scripting backend configuration see Conformiq Creator manual

Page 61: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 61

Getting Started with your own

Creator Project

Modeling with the Conformiq Creator Editor

Page 62: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 62

Hands on exercise : # Creating a Login Model

Page 63: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 63

Table of Contents

• Creating a New Conformiq Creator Project

• Creating an Activity Diagram

• Creating an Structure Diagram

• Refining the Activity Diagram with Generated Actions

• Generating Test Cases from an Activity Diagram

• Analyzing Test Cases in Conformiq Creator

• Modifying a Model

Page 64: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 64

Creating a New Conformiq Creator Project

1) In Conformiq Creator, from the main menu, select

File->New->Conformiq Creator Project A New Project Dialog box appears

2) Type “Login Model (e.g.. Gmail)” in Project name field, and select

“Create empty project”, and click the Next button.

Page 65: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 65

2) Once below Window appears, accept the default Test Design Configuration Name: “DC”, and click the Next button.

Page 66: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 66

3) Below window appears; you need to define your Scripting Backend(s). In this initial exercise we will not need any, so just click the Finish button.

Page 67: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 67

Creating an Structure Diagram 1) In Conformiq Creator, in the Project Explorer view, right-click on model folder, and select

New > Structure Diagram.

2) The following Create Structure Diagram

dialog appears:

3) In the Diagram Name field, type “Login Interfaces”.

4) Click on “Conformiq Modeling perspective” – an empty

Structure Diagram should be opened in the File viewer.

Page 68: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 68

5) Click on the Screen symbol from the Modeling toolbar and then click anywhere in the canvas to place it. 6) Type in “Login”. Click Save.

7) A “Login” Screen should appear in the Structure Diagram as shown below:

Page 69: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 69

8) Click on the Form symbol from the Modeling toolbar, and then click within the

screen object to place it there.

9) Type “Login”. A “Login” Form is now added to the Structure Diagram. Click Save.

10) Note the livecheck errors in the Problems view.

Page 70: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 70

11) A Form should have at least one data widget (see related Error). Let’s add some data widgets to the newly created form. 12) Hover over the “Login” Form and select the text box widget icon from the hover tool bar.

13) Type “User Name”, followed by <ENTER>. Click Save. Note that one of the livecheck errors has now disappeared

Page 71: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 71

14) Repeat the last step to add another Text Box, named “Password”. Click Save.

Page 72: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 72

15) Your Structure Diagram should look similar to this at this point:

Note that you can also edit the properties of selected items like name and default widgets status etc for selected objects in the Properties View

Page 73: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 73

16) Let’s add one more widget: a “Login” button. We can either add it to the Form or

to the Screen. Let’s add it to the Login Screen. 17) Add a button widget to the Login Screen (look at the previous steps if needed),

this time select Button from the list of elements (under Basic Widgets).

• Name the button “Login”.

• Next, let’s create a Popup dialog for an error message.

18) Click on the Popup symbol from the modeling toolbar, then click anywhere in

the canvas to place it. 19) Instead of typing the name directly let’s use the Property View to specify the

name. Click <ENTER>. Type “Error” in the Name field in the Property View and click

<ENTER>.

Page 74: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 74

20) Select the Button widget from the tool bar and click in the popup.

21) Type in “OK” as the Name

22) A button named “OK” is now added to the Popup as shown below

Page 75: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 75

23) Save your diagram. The Structure Diagram should now appear as below.

Page 76: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 76

Creating an Activity Diagram 1) Now let’s create Activity Diagram and refine it accordingly for Test Generation, using the Actions we’ve created previously.

2) Right-click on model folder, and select New > Activity Diagram as shown

Page 77: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 77

3) In the Create Activity Diagram dialog type in Diagram Name field

“Login App”

Page 78: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 78

4) A new Activity Diagram should be opened as below in the Conformiq Modeling

Perspective.

Page 79: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 79

5) First, add an Initial Node, by clicking on the Initial Node icon in the Creator

modeling toolbar, and then clicking anywhere on the canvas to place it.

6) Next, add an Activity Node, by clicking on the Activity Node symbol in the

symbol toolbar, and then clicking anywhere on the canvas to place it.

7) Type: “Request User Information”, as this is the first activity that takes place in

the Login process. Click <ENTER>.

Page 80: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 80

8) Next, connect the Initial Node to the Activity Node, by clicking on the Control

Flow symbol from the Creator modeling toolbar, then click inside the Initial

Node, and finally, drag it inside the Activity box.

9) The Initial Node and the Activity Node should now be connected as below.

Page 81: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 81

10) Next, add a Decision Node. Click the Decision Node symbol on the Creator

modeling toolbar, and then click anywhere on the canvas to place it.

11) Type “Is User Correct?” and then click <ENTER>

12) A Decision Node is added to the Activity Diagram as shown

13) Connect the Activity Node and the Decision Node, using the Control Flow

symbol .

Page 82: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 82

14) Next, we’ll add two Final Nodes coming out of the Decision: “Happy End” & “Error”.

To do so:

15) Click on the Final Node symbol in the symbol toolbar, then on the canvas to

place it there.

16) Type “Happy End” in the Name field, and click OK. A Final Node titled “Happy End”

should be added to the Activity Diagram.

Page 83: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 83

17) Now connect the Control Flow Node to the Final Node, by dragging the anchor

displayed when hovering above the “Is User Correct?” Decision Node. Since you

are trying to connect a Flow Control Node, you’d get the following dialog:

18) For this “Happy End” path, select the Yes option. The Yes control flow

should be added to the Activity Diagram.

19) In case that the user is incorrect, lets report an error.

20)Add a new Activity Node titled “Report error”. Look at previous steps if you need

to refresh your memory.

21)“Report error” Activity Node should be added to the Activity Diagram.

Page 84: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 84

22) Next, connect the “Is User Correct?” Decision Node to the “Report error” Activity

Node. This time, pick the No option. The No control flow should be added to

the Activity Diagram.

23) This is how your Activity Diagram should look so far:

24) According to the AUT (Application under Test), if the user provides invalid login

credentials, and an error has been reported, he or she is redirected to retry to login.

25) Therefore, let’s loop back the “Report error” Activity Node back to the “Request

User Information” Activity Node.

Page 85: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 85

26) In this example we’ll make the merging of Control Flows explicit, by using

the Merge node.

27) Click on the Merge symbol from the modeling toolbar, and then click on the

canvas to place it.

28) Type “Login” in the Name field, and then click <ENTER>. Click Save.

A Merge Node titled “Login” is now added to the Activity Diagram.

29) Now, we’ll move and add some Flow Controls (connectors):

29.1) Move the existing Control Flow from the Initial Node to the “Request User

Information” Activity - to “Login” Merge instead.

29.2) Draw a new Control Flow from “Login” Merge to “Request User Information”

Activity.

29.3) Draw a new Control Flow from “Report error” Activity to “Login” Merge.

Page 86: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 86

30) You’re Activity Diagram should look similar as below:

31) The TODO messages listed at the bottom need to go away before this Activity

Diagram can actually generate test cases. We will discuss this topic in subsequent

slides.

32) Note that at this point we still have two warnings / to-do’s on this Activity Diagram:

The above errors need to be removed before the Activity Diagram can

automatically generate test cases.

Page 87: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 87

33) Hover over the “Request User Information” Activity

Node, and then click on the lightning bolt icon.

34) The Action dialog should appear as below:

35) The first Action in this Activity is that the system displays the Login screen to the

user. Select the “Display Login Screen” Action, and click <ENTER>.

Refining the Activity Diagram with Generated Actions

Page 88: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 88

36) The Property View shows the “Display Login Screen” Action added.

37) Next, hover again over the activity and click on the lightning bolt. The Action

dialog should appear.

38) Select “User Entry Action > Login Screen > Fill Login Form” Action and click

<ENTER>. The “Fill Login Form [Login Screen]” Action is now added to the list.

39) The last Action on this Activity, after the user fills out the Login Form, is for the

user to click on the Login button. Let’s add this Action.

40) Add the “User Entry Action > Login Screen > Click Login Button” Action similarly

to the previous steps.

Page 89: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 89

41) The “Request User Information” Activity should now look like this:

Note: DS, FF and CB are abbreviations used for Display Screen, Fill Form, and

Click Button.

Page 90: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 90

42) Next, you’ll add some logic to the “Is User Correct?” Decision. How would you

determine if the data the user entered is valid or not? We need to store the data

somewhere and then compare it with some expected data.

43) Let’s add some variables, by clicking on the Variable Data Object symbol

in the modeling toolbar, and then click inside the canvas to place it.

The Variable Data Object selection dialog should appear as below:

Page 91: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 91

44) Select “Login Form Variable”. Type in the Variable Name field: “Entered user data”, and click <ENTER>

45) Next, we need to point out where this Data object is produced. The form’s

username and password values should be stored when the user fills out the Login

form.

Page 92: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 92

46) Click on the Data Flow symbol , then click on the “FF: Login” area inside the “Request User Information” Activity, then click again at the top bar of the “Entered user data” variable Data object, to connect the two as shown below:

47) Next, we’ll map the “Entered user data” variable data object to the “Is User

Correct?” Decision. You can tie individual variables (username or password in this

case) or the entire object (all variables).

48) Let’s tie the entire object, for comparing both the username and password

between the stored form data and the expected data for the decision making.

Page 93: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 93

49) Click again on the Data Flow symbol , then click inside the top bar of the “Entered user data” variable object, and then click inside the “Is User Correct?” Decision object.

50) Next, we’ll define the expected data for the username and password to compare against in the Decision. In other words, in this example we are going to compare the stored data against some hard-coded values. 51) Click on the Value Data object symbol on the modeling toolbar, and then click inside the canvas. The Value Data Object dialog should open as below. A list of elements should appear.

Page 94: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 94

52) Select “Login Form Value”. Type in the Value Name: “Expected data”, type in the User Name:, “admin”, and Password: “password123”, and click <ENTER>. 53) A Login Form Value object is added to your Activity Diagram as shown below.

Page 95: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 95

54) Using a Data Flow symbol connect the “Expected data” object to the “Is User

Correct?” Decision. Click Save.

55) We’ve now defined a condition that if the username equals to “admin” and the password

equals to “password123”, then the Decision outcome is Yes and connects into

the “Happy End” Final Node, otherwise the Decision outcome is No , and connects to the

“Report error” Activity.

At this point, your Activity Diagram should look similar to this:

Page 96: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 96

56) As you can guess from the last TODO error in the Problems View, we still

need to define an Action for the “Report error” Activity.

57) As before, in order to do so, hover the mouse over the “Report error” Activity,

click on the lightning bolt.

58) Select “Display Error Popup” Action. A “Display Error Popup” Action

should be added to the Actions in the “Report error” Activity.

Page 97: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 97

59) Click on the action in the activity diagrams. Double click on the Popup Contents

Field in the property view. Select New Error Popup Value

60) We could single click now on the Error Text field and simply type our text into

the field. Instead let us double click and we get to a Text Selection dialog.

Page 98: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 98

61) Select String Value and click OK. String Value element is now used for the Error

Text property. Type: “Incorrect user”. Click Save.

62) Notice that the last TODO message went away. You’ve just completed refining

your Activity Diagram and almost ready to generate test cases.

Page 99: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 99

63) In order to ensure proper coverage and descriptive test cases, you need to

add Requirements and Narratives to the model.

64) In our example, we want to generate test cases for both valid and invalid login

attempts.

65) Replace the “Happy End” Final node with a “Successful Login” Activity Node,

then click on the lightening bolt, …Select a Requirement Action.

66) In the Requirement Identifier edit field type “Successful Login”, and then click

<ENTER>.

67) Now add another Action, this time select a Narrative Action. Click on the

Narrative: edit field.

Page 100: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 100

68) Type in the Narrative field: “User logs in successfully”.

69) Your new Activity Node should now have one

Requirement Action and one Narrative Action

70) Similarly, add a Requirement Action and a Narrative Action to the Report Error

Activity Node.

71) Finally set in the Project Explorer the ”Login App” as your ”main activity diagram”

71) Now you are ready to generate test cases from this Activity Diagram.

Page 101: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 101

Generating Test Cases from an Activity Diagram

1) Click “Load Model” in the Creator tool bar.

Page 102: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 102

2) Switch to the Conformiq Test Design Perspective

3) In the Progress Panel, make sure there are no errors detected and the model

loading is completed.

4) The Tick mark in Green color is a sign for successful completion of model loading.

Page 103: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 103

5) Next, you will have Conformiq Creator auto-generate test cases from this model

6) In the Progress Panel, click on Generate test cases button .

Page 104: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 104

7) Make sure the Progress Panel did not detect any errors. Again, the Tick mark in

Green color is a sign for successful completion of model loading.

Page 105: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 105

Analyzing Test Cases in Conformiq Designer 1) Take a look at the Test Case view to see the test cases that were

generated. You should see these:

Note: Test case names were constructed from the Requirement Actions

you’ve added to the model.

Tip: If you don’t see test cases in the Test Case View, this can be due to

some default settings. To fix that, in the Project Explorer, right-click on

the model name “Login Model”, and select Properties.

The Properties for the “Login Model” window should be displayed. Click

on the Conformiq Options tab.

Page 106: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 106

2) Change the Lookahead Depth value to 2 (as shown below), click OK to save and

close the Properties Window.

3) Reload and regenerate test cases (refer to the steps above if you need

assistance). Now you should be getting two test cases as shown above.

Page 107: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 107

4) Click the expand arrow next to the test case names. You should see a description

associated with the test cases as below:

Page 108: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 108

Modifying a Model

1) Test case 1 “Successful Login”, as its name suggests, covers a

successful login, while

2) Test case 2 “Invalid Login” covers an unsuccessful login. In test case

“Invalid Login”, Conformiq generated the following data values:

• User name: “admin”

• Password: “”

3) The reason Conformiq generated this set of values (and not others) is

because we did not specify in the model any info or data constraints on

what scenarios we would like to cover for an unsuccessful login. This test

case only covers a valid username and an invalid password.

4) Let’s say, for example, that we are also interested in a case where the

username is invalid and a password is valid.

5) Let’s make some changes to the Activity Diagram as detailed in next

slide.

Page 109: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 109

6) Switch to the Conformiq Modeling Perspective. First, remove the Control Flow

(connector) between the “Is User Correct?” Decision and the “Report error” Activity.

Select on the Control Flow, and select Delete from Model. The Control Flow should

be deleted.

7) Add a new Decision object, named “Bad Data”. Refer to previous steps in you

need to refresh your memory.

8) Next, add a Control Flow between the “Is User Correct?” and the “Bad Data”

Decision objects.

9) Select the “No” Control Flow type from the dialog.

10) Next, add a new Control Flow between the “Bad Data” Decision and the “Report

error” Activity, this time choosing the Yes Control Flow type.

11) Here we will reuse the user data (“Entered user data”) Data object, so add a

Data Flow (connector) from the “Entered user data” Data object to the “Bad Data”

Decision.

12) Next, let’s define the expected values to be compared with. This time, we’ll use

a value with alternative values.

Page 110: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 110

13) Create a new Value Data object, and select “Login Form Value” as shown below.

14) In the Value Name field, type “Disallowed Login Credentials”.

15) In the User Name field, add first “clark” and then as an alternative value “mark”

16) In the Password field, add values “Password1” and “Password2”

Page 111: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 111

18) Add a Data Flow (connector) from the newly created Data object to the

“Bad Data” Decision object.

19) Add a YES control flow from the “Bad Data” Decision to “Report error”

Activity.

21) We do not care about the NO control flow. Lets draw a Block Node and

connect it with a NO control flow

22) The logic we just added to our Activity Diagram is that now the model

does not allow a user to login using a username “clark” or “mark” and

password “Password1” or “Password2”.

This completes the changes to the model.

17) A “Disallowed Login Credentials” Data object appears in the Activity Diagram as

follows.

Page 112: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 112

Your modified Activity Diagram should look similar to this:

Page 113: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

Automated Test Design™

Copyright © Conformiq Inc. and its subsidiaries. All rights reserved. Friday, November 21, 2014 113

3) Test case 2 is now invalidated because a case where the password is empty is

no longer implemented.

4) Test cases 3 and 4 were added, with “clark/Password1” and “mark/Password2”

sets of user data, reflecting the model changes.

1) In the Conformiq Test Design perspective , load and generate test cases (refer

to section “Generating Test Cases from an Activity Diagram” if you need

assistance).

2) You should get the following display in the Test Case View

Re-Generating Test Cases from modified Activity Diagram

You have completed the exercise successfully!

Try for more such exercises!!

Page 114: Getting Started with Conformiq Creator · • Selenium • IBM RFT • Microsoft Visual Studio ... – Enables a completely new way of working! • Access to Conformiq’s unique

© Copyright Inc., 2010 114 © Copyright Inc., 2013

www.ideabytes.com [email protected] © Copyright Inc., 2013

THANK YOU

Development Centre, India Ideabytes Software India Pvt. Ltd

Jayabheri Enclave, Hyderabad Phone : +91 40 6453 5959

Corporate Office, Canada Ideabytes Inc.

Ottawa, Ontario Phone : +1 613 692 9908

South East Asia Kuala Lumpur, Malaysia

Phone: +60 16 220 1365

USA 3389, Napoli pl,

San Jose, CA - 951 35 Phone: +1 408 600 1439

- Koti & Narasimha