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

Raptor Flowchart

Parameter scope in Raptor Procedure

Overview

Let’s understand the parameter scope in the Raptor procedure with an example. A Procedure is a set of execution flowchart steps that are invoked by using the Call flowchart symbol. The procedure allows parameters to be passed on each invocation

In Raptor there are below types of mechanisms for passing the parameters to procedures.

  • Input
  • Output
  • Input/Output

 

Procedure Call Raptor

Input Parameter scope

The caller flowchart i.e Main flowchart can pass input parameters to the procedure. The procedure flowchart is called callee. TheĀ  callee is the procedure that is called by the Main flowchart. Input parameters have a local scope in the procedure flowchart. The changes made to the parameters are only valid in the procedure body.

 

main flowchart calling procedure

 

Let’s consider a sample procedure Proc with input parameter inParam. The main flowchart will pass the input parameter. We can observe that even when the procedure changes the input parameter in the procedure steps the main flowchart variable inParam remains the same after the procedure call.

 

Output

InParam in main before proc call:=10
InParam passed from main:=10
InParam in procedure after modification:=12
InParam in main After proc call:=10
—-Run complete.

 

Input parameter local scope

Output Parameter

Unlike the input parameter, the output parameter reflects or take the changes of the variable to the caller. So, if the procedure changes the value of the output parameter

the changesĀ  are reflected to the caller of the procedure. In out case, the changes will reflect in the main flowchart.

 

RAPTOR Tutorial Page: https://www.testingdocs.com/raptor-a-flowchart-tool/

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

Related Posts

Install RAPTOR Avalonia CentOS

Raptor Flowchart /

Install RAPTOR Avalonia on CentOS

RAPTOR Avalonia Edition Windows

Raptor Flowchart /

Download RAPTOR Avalonia Edition on Windows

RAPTOR Editions

Raptor Flowchart /

RAPTOR Editions

RAPTOR flowcart to write to a file output

Raptor Flowchart /

Write to a file with RAPTOR flowchart

Sum of Squares Array Elements Modular Approach

Raptor Flowchart /

Sum of Squares of Given Array Elements

‹ Abstract class in Raptor Flowchart› Alternatives to Raptor Flowchart Tool

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