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

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

Automation Environment Setup Verification

Automation /

Automation Environment Setup Verification

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

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version