Home » System Variables
System variables are quite useful to get contextual information regarding the suite execution. This variables can be used to improve tasks reusability and speed up test definition. Use them to build:
Here is the list of system variables:
Variable Name | Description |
${CxScenarioSuiteName} | Name of the Scenario Suite |
${CxScenarioName} | Name of the task’s parent Scenario |
${CxScenarioIteration} | Current running iteration number for the Scenario |
${CxActionName} | Name of the task’s parent Action |
${CxActionIteration} | Current running iteration number for the Action |
${CxTaskName} | Name of the Task |
${CxToday} | The current Date |
${CxNow} | The current Date and Time |
Using system variables, the last inbound and outbound messages are also accessible:
[Deprecated] – Use Criteria Editor
Variable (including example) |
Description |
${CxLastOutboundMessage[%FIELD%]} |
|
${CxLastOutboundMessage[%MSH.3%]} | Returns content of MSH.3 from the last outbound message (last message sent) |
${CxLastOutboundMessage[%OBX[2].5[3]%]} |
OBX segment and OBX.5 being both repeatable, it returns content of 3rd repetition of OBX.5 in the 2nd OBX segment of the last outbound message |
${CxLastInboundMessage[%FIELD%]} | |
${CxLastInboundMessage[%PID.3%]} | Returns content of PID.3 from the last inbound message (last message received) |
${CxLastInboundMessage[%PID.3[3].4%]} | PID.3 being repeatable, this expression returns content of the 4th component of the 3rd repetition of PID.3. |
NORTH AMERICA: +1 (877)-872-0027
WORLD: 1-418-872-4000
EMAIL: info@caristix.com
ASIA-PACIFIC
DENIS CANTIN
T: +61418441388
denis.cantin@caristix.com
NORTH AMERICA & EUROPE
JEAN-LUC MORIN
T: 418 872-4000
jeanluc.morin@caristix.com
HL7® / FHIR® are a registered trademarks of Health Level Seven International. The use of this trademark does not constitute an endorsement by HL7.