TestOptimal Tutorials

Model Editor

Model Editor

This tutorial will cover:

  • Model Editor Overview
  • Basic Operations
  • Property Dialogs
  • Manage States/Transitions
  • Find States/Transitions
  • Model Views

Model Editor - Overview

Graphical Modeling and Debugging Tool:

press down arrow for feature details

Model Editor - Overview

Model Notations:

  • State Diagram / Finite State Machine (FSM) - Default
  • Activity Diagram / Control Flow Graph (CFG)
  • Hybrid FSM / CFG

press down arrow for feature details

Model Editor - Overview

Model Features:

  • Super States
  • Sub Models
  • Nesting of Super States & Sub Models
  • Model / Sub Model Must Have:
    • One Initial State
    • One or More Final States

press down arrow for feature details

Model Editor - Features

Editor Features:

  • Context Menus - Model, State, Transition
  • Property Dialogs - Model, State, Transition, MCase
  • Views - MCase, Requirements, Defects, Guard, Tree View
  • Search Dialog - by name, MScript, Requirement

Model Editor - Basic Operations

Various Ways to Create States:

  • Model Context Menu: Add State
  • Right-Mouse Drag from Existing State to Canvas
  • State Context Menu: Add Sub-State
  • Tree View Context Menu on Source State

press down arrow for feature details

Model Editor - Features

Edit State:

  • Rename - Double-Click State Name enables Edit Box
  • Properties - Double-Click State Header or Context Menu

press down arrow for feature details

Model Editor - Features

Various Ways to Create Transitions:

  • Source State Context Menu: Add Transition
  • Right-Mouse Drag from Source State
  • Right-Mouse Drag from Source State to Target State
  • Tree View Context Menu on Source State

press down arrow for feature details

Model Editor - Features

Transition Label:

  • Positioned Relative to Start Segment
  • Drag on Label Text to Move
  • Double-Click Label to enable Edit Box
  • Add Prefix "*" to Hide Transition Label
  • Resize Label by Dragging on Label Border

press down arrow for feature details

Model Editor - Manage State/Trans

Mark States / Transitions:

  • Click to Toggle Mark:
    • State Header
    • Transition Segment
  • Hold Shift for Multi-Mark
  • Clear Marks:
    • Click on Un-Mark State/Transition
    • Click on Canvas

Model Editor - Manage State/Trans

Move States:

  • Move State by Dragging its Header
  • Adjacent Transitions Auto Moved with States
  • Moving State also move all of its Sub States

press down arrow for feature details

Model Editor - Manage State/Trans

Move Transitions:

  • Transitions move with Connection States
  • Move Transition by Drag on its Segment
  • Auto-Adjust Transition Routing Strategy

press down arrow for feature details

Model Editor - Property Dialogs

Model Properties:

  • Modeling Notation
  • Enable/Disable Plugins
  • Browser Type for Web App Testing

press down arrow for feature details

Model Editor - Property Dialogs

MBT Settings:

  • Select Sequencer and Set Sequencer Parameters
  • Set Stop Conditions
  • Choose Virtual Users (Threads)

press down arrow for feature details

Model Editor - Property Dialogs

Model Canvas Settings:

  • Set Canvas Size & Zoom Level
  • Select Graph Orientations
  • Choose Flags to Display for State/Transition

press down arrow for feature details

Model Editor - Property Dialogs

State Properties:

  • State Name, Description, Initial/Final Flag
  • Attach Requirements
  • Text Color and Background Color

press down arrow for feature details

Model Editor - Property Dialogs

Transition Properties:

  • Transition Name, Description, Target State
  • Attach Requirements
  • Guard Condition
  • Weight (Priority), Number of Traversals Required
  • Transition Segment Color

press down arrow for feature details

Model Editor - Property Dialogs

MCase Properties:

  • MCase Name, Description
  • Attach Requirements
  • Add State to MCase via State Context Menu
  • Add Transition to MCase via Transition Context Menu

Model Editor - Find State/Trans

Various Ways to Find State/Transitions:

  • Browser Ctrl-F - Find by State / Transition Name
  • Tree View - Find by State / Transition Name
  • Find Dialog - Find by name, requirement, MScript

press down arrow for feature details

Model Editor - Find State/Trans

Find Dialog - Click on

press down arrow for feature details

Model Editor - Find State/Trans

Find Dialog - Mark or Higlight:

  • Mark:
  • Highlight:

Model Editor - Views

Views Provide Additional Functions to Interact with Model:

  • Tree View
  • Requirements
  • Defects
  • Guards
  • MCase

press down arrow for feature details

Model Editor - Views

Tree View - Showing States and Transitions in Tree View:

press down arrow for feature details

Model Editor - Views

Requirements - Requirement Integration and Coverage:

Click on a requirement highlights States/Transitions covering the requirement.

press down arrow for feature details

Model Editor - Views

Defects - Defect/ALM Integration, Highlight Defects in Model:

Defects retrieved from ALM Defect System through ALM Plugin.

press down arrow for feature details

Model Editor - Views

MCase - Manage MCase / Ad-Hoc Test Cases:

Click on an MCase to highlight its states/transitions on Model.

press down arrow for feature details

Model Editor - Views

Guards - Monitor Transition Guards from State:

Failed Guard Conditions are Colored with Yellow

press down arrow for feature details

THE END

Visit other tutorials Here

© TestOptimal LLC.