TestingDocs.com
    Software Testing website
    • Automation
      • Selenium
      • JBehave Framework
    • Tutorials
      • MySQL Tutorials
      • Testlink
      • Maven
      • Git
    • IDEs
      • IntelliJ IDEA
      • Eclipse
    • Flowcharts
      • Flowgorithm
      • Raptor
    • About

    Automation

    Declare variables in Raptor Flowchart

    Overview

    In this post,we will learn how to declare variables in RAPTOR flowchart. We use variables in the flowchart to store and retrieve data. Variable has name, value. Variables have data types. Valid syntax

    variable <- value

    variable <- expression

    Data types in RAPTOR

    Supported data types in RAPTOR are as follows:

    • Number
    • String
    • Array

     

    Data Types in RAPTOR

     

    We can use the assignment symbol to declare and store values in variables. Drag and drop an assignment symbol to the flowchart. Double click on the symbol. Examples are shown below:

    Number

    declare number variable

     

    In the example, count is the variable that holds a Number data type. The value of the variable is assigned to 0.

    count <- 0

    distance <- velocity * time

    String

    String is a sequence of characters enclosed within quotes. For example name is the variable that holds a String data type. The value of the variable is assigned to “Alice”

    name <- “Alice”

    Array

    Array variable are used to store values of same data type. Individual elements of the array are stored and retrieved using the index. In RAPTOR the array index starts with 1. Array variables have dimensions like one dimension, two dimension etc.

    Example of one dimensional array variable to store scores of 3 subjects of a student.

    scores[1] <- 73

    scores[2] <- 94

    scores[3] <- 88

     

     

    RAPTOR tutorial page: https://www.testingdocs.com/raptor-a-flowchart-tool/

    RAPTOR official website: https://raptor.martincarlisle.com/

    Related Posts

    Automation /

    Dart return Statement

    Emma Tool

    Automation /

    Code Coverage Tools

    Selenium 4 Automation Project

    Automation /

    Selenium 4 Project Setup on Ubuntu Linux

    Testing webpage mobile-friendliness using a tool

    Automation /

    Testing webpage mobile-friendliness using a tool

    Errors Code Testing Development

    Automation /

    Error Severity Metrics

    ‹ HSSF / XSSF Interaction with Microsoft Excel ( .xls and .xlsx )› Types of Asserts in TestNG framework

    Recent Posts

    • ChatGPT Subscription Plans
    • Stellar Converter for Database
    • Stellar Log Analyzer for MySQL
    • Stellar Repair for MySQL
    • ChatGPT Capabilities
    • How to secure your SQL Database: Tips and Tricks
    • ChatGPT4 Conversational AI Features
    • Shaping the Future of Development: Exploring Key Trends in Software Engineering
    • Improving Java Performance with Multithreading
    • Open-source Vector Databases

    Back to Top

    Links

    • Contact
    • Privacy Policy
    • Cookie Policy

    www.TestingDocs.com