ISAITB / gitb

The Interoperability Test Bed is a service offered by the European Commission’s DIGIT for the conformance testing of IT systems. It is based on the GITB CEN Workshop Agreement and was originally forked from the GITB PoC software (available at https://github.com/srdc/gitb).
https://joinup.ec.europa.eu/solution/interoperability-test-bed/about
Other
16 stars 4 forks source link

Use of variables in "desc" elements #61

Open EliottPaillard opened 2 weeks ago

EliottPaillard commented 2 weeks ago

Is there a way currently to use variables in "desc" element (of verify tag for instance)?

costas80 commented 2 weeks ago

Not when directly in a test case, no. The reason for this is that such descriptions need to be fixed for the duration of the test session to be able to show the execution diagram before, during and after the session starts/completes.

However, if you need to have different descriptions for a step in different cases we do support defining the entire desc attribute with a variable reference if this is inside a scriptlet. The requirement here however is that at test case load time, the value of this variable can already be determined. In this case you could set the step's description via scriptlet inputs with fixed string values when used in different test cases.

This specific option is documented in much more detail here. Note that it also applied to other attributes such as actors (to e.g. adapt the direction of messaging) and titles.