Project

General

Profile

Actions

Task #6438

closed

Reusing blocks in test templates

Added by Alexander Kamkin over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Andrei Tatarnikov
Category:
Template Processor
Target version:
Start date:
11/20/2015
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Published in build:
2.3.12

Description

A block is a static structure specifying a verification scenario. By default, a block is active, which means that the corresponding test engine is executed right after the creation of the block structure.

There is a need to reuse blocks. The goal is to declare a block (as a static structure) and then activate them by request.

myBlock = block(...) {
  atomic {
    ...
  }
  block {
    ...
  }
}

myBlock.run(N)

block(...) {
  myBlock.add
  block {}
}.run

Block is passive!!!

Actions

Also available in: Atom PDF