OMrun Help
Version 4.x
Version 4.x
  • Introduction
    • Features
      • 📊Facts
      • 🔢Figures
    • System Requirements
    • Terms and Definitions
    • Release Notes
      • 📄Version 4.2
      • 📄Version 4.1
      • 📄Version 4.0
    • ❓Getting Help
  • Installation
    • ↘️Install OMrun
      • 📃OMrun Paths
      • 🔑License Key
    • ✔️Verify Setup
    • 🗑️Uninstall OMrun
  • Configuration
    • Data Adaptor
      • Data Queries
    • Program Adaptor
    • Dashboard Configuration
    • Customize own adapter
      • Own data adapter
      • Own program adapter
    • Configuration Files
      • PublishConfig.cfg
      • OMrunDataProvider.cfg
      • OMrunGuiProvider.cfg
      • OMrun.exe.config
    • Using Variables
      • OMrun Variables
      • Environment Variables
      • Parameter
  • Start OMrun
    • Start via Desktop
    • Start via Batch File
    • Start via Task Scheduler
  • Menu Functions
    • ▶️Button Execute
    • ⏹️Button Stop
    • 🎓Button License
    • ⚙️Button Configuration
    • 📥Button Export
    • ❓Button Help
    • 📌Button About
    • 🗂️Button Windows
    • ⏩Shortcuts and Functions
  • Element Overview
    • Navigation Tree
    • Business System
    • Component
    • Environment
    • Scenario
    • Test Data Object
      • Query
      • Body
      • Business Mapping
    • Test Program Object
      • Batch
      • CSV Converter
      • Data Staging
      • Housekeeping
      • Json Converter
      • Program
      • RTL Generator
      • XML Converter
      • XML Converter XL
    • Parameter List
  • Result Analysis
    • Color Codes
    • OMrun Test Results
    • Excel Result Reports
    • OMdashboard
Powered by GitBook
On this page

Last updated 1 year ago

Abstract

At the the end of any query in source A or B it is possible to add a body part. The body part is meant to be an execution module to run any type of data transformation or data export / import functionality where the query part is a read only function.

To distinguish the body part from the query, the key word /*BODY*/ is needed to separate the content.


Body Conventions

The query can consist of two parts and is separated by the tag /*BODY*/

  • Sql query part (before tag 'BODY')

  • PL/SQL or stored procedure part (after tag 'BODY')

For the body content any sql script (PL/SQL, stored procedures etc.) is allowed. If a script expects return values, they need to be redirected into data base variables or output files.


Execution Order

The order how the different sql parts are executed is fix. A body part is always optional.

Test Object Data execution order:

  1. Query Source A

  2. Body Source A

  3. Commit Source A

  4. Query Source B

  5. Body Source B

  6. Commit Source B


Parameter

Parameters in a /*BODY*/ part are used the same way as in a query.

The use of the following parameters / variables is allowed:

  • System environment variables like %SystemEnvVar%


Attention!

Ensure you do have elevated access rights for the db user defined within the OMrun environment to execute body parts in your test object.

  • Be especially careful with the body scripts.

  • Body scripts are very powerful and in case of using them the wrong way, they have the potential to destroy the data source you are addressing!

(@param1 - @param4) from the parameter list

Environment like @VAR_Environment

  1. Element Overview
  2. Test Data Object

Body

PreviousQueryNextBusiness Mapping
  • Abstract
  • Body Conventions
  • Execution Order
  • Parameter
  • Attention!
Parameters
variables
OMrun test data object - query view
OMrun test data object - body query
OMrun test data object - body part
OMrun test data object - body query
OMrun test data object - body part
OMrun test data object - query view