Conditions for decoding blocks

When adding a child block to a parent block, a condition appears between them (see Figure 129).

You can change a condition at any time by left-clicking on it.

image224

Figure 129 – Decoding condition

  • All – this condition means that the value must be parsed by all child decoding blocks following it; if at least one child block does not parse the value, an anomaly will be generated;

  • Any – this condition means that the value must be parsed by any subsequent child decoding block; if none of the child blocks parse the value, an anomaly will be generated.

Above each block there is also its truth condition. You can set it by clicking on the truth condition (see Figure 130).

image225

Figure 130 – Truth condition

When you click on the selected area, a window for specifying the truth condition will appear (see Figure 131).

image226

Figure 131 – Window for setting the truth condition

To change the truth condition, click on the condition. There are four possible truth conditions:

  1. By default – when this condition is selected, it will be assumed that this decoding block is always running.

  2. Regular expression – when selecting this condition, you must enter the path to the value and the regular expression that it (the value) must match. This decoding block will only work if the specified condition is met.

  3. Exact value – when selecting this condition, you must enter the path to the value and its exact value. This decoding block will only work if the specified condition is met.

  4. Availability of paths – when selecting this condition, you must enter a path. This decoding block will work only if this path is present in the request\response (depending on which parse tree is being deepened).

Note

The truth conditions of parent blocks take precedence; if they do not hold, then the child blocks do not work either.