Nexial Automation

Test Automation Platform for everyone!

X

$(execution)

Description

This built-in function expose the execution-level metadata, both the runtime and design-time information.

Available Functions

$(execution|step|index)

Display the row number of the step currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting.. In this example, we use this function in combination with email notification to expose the step that had failed during execution.

In datasheet

The notification email would appear as like


$(execution|step|name)

Display the step currently in execution, in the format of
[ script name ][ scenario name ][ activity name ][ row number ]

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use this function in combination with email notification to expose the step that had failed during execution.

Input datasheet

The notification email would appear as like


$(execution|step|script)

Display the script name (without file extension) currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use this function in combination with email notification to expose the step that had failed during execution.

In datasheet

The notification email would appear as like


$(execution|step|scenario)

Display the scenario currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use this function in combination with email notification to expose the step that had failed during execution.

In data sheet

The notification email would appear as like


$(execution|step|activity)

Display the activity currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use this function in combination with email notification to expose the step that had failed during execution.

In datasheet

The notification email would appear as like


$(execution|step|iteration)

Display the iteration index currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use this function in combination with email notification to expose the step that had failed during execution.

In datasheet

The notification email would appear as like


$(execution|step|command)

Display the command currently being executed

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use this function in combination with email notification to expose the step that had failed during execution.

In datasheet

The notification email would appear as like


$(execution|step|description)

Display the description of the step currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use this function in combination with email notification to expose the step that had failed during execution.

In datasheet

The notification email would appear as like


$(execution|activity|name)

Display the activity currently in execution

Example
Here we are using io » writeFile(file,content,append) in conjunction with this function to write custom log files containing the details of the activity under execution.

Input function

Output


$(execution|activity|script)

Display the script name currently in execution

Example
Here we are using io » writeFile(file,content,append) in conjunction with this function to write custom log files containing the details of the activity under execution.

Input function

Output


$(execution|activity|iteration)

Display the iteration index currently in execution

Example
Here we are using io » writeFile(file,content,append) in conjunction with this function to write custom log files containing the details of the activity under execution.

Input function

Output


$(execution|activity|scenario)

Display the scenario currently in execution

Example
Here we are using io » writeFile(file,content,append) in conjunction with this function to write custom log files containing the details of the activity under execution.

In script file

Log File


$(execution|scenario|name)

Display the scenario currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use an event notification in the form of an email to expose the details of the scenario which has just started execution.

Input function

Output


$(execution|scenario|script)

Display the script name currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use an event notification in the form of an email to expose the details of the scenario which has just started execution.

Input function

Output


$(execution|scenario|iteration)

Display the iteration index currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use an event notification in the form of an email to expose the details of the scenario which has just started execution.

In datasheet

The notification email will appear as like.


$(execution|iteration|index)

Display the iteration index currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use these functions in combination with console event notification to find out which iteration has started execution.

In datasheet

The console will appear like so




$(execution|iteration|script)

Display the script name currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use these functions in combination with console event notification to find out which iteration has started execution.

In datasheet

The console will appear like so


$(execution|script|name)

Display the script name (without file extension) currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use an event notification in the form of an email to expose details of a script that has just completed its execution.

In datasheet

The notification email will appear as like


$(execution|script|fullpath)

Display the fullpath of the script currently in execution.
Note: The script used during execution is the output file created at the start of execution. Not to be confused with artifact/script/script-file.xlsx.

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. In this example, we use an event notification in the form of an email to expose details of a script that has just completed its execution.

In datasheet

The notification email will appear as like


$(execution|plan|fullpath)

Display the fullpath of the plan file currently in execution.

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting.. In this example, we use this function in combination with email notification to expose the step that had failed during execution.


$(execution|plan|name)

Display the plan name (without file extension) currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting.. In this example, we use this function in combination with email notification to expose the step that had failed during execution.


$(execution|plan|index)

Display the row index of script in plan file currently in execution

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting.. In this example, we use this function in combination with email notification to expose the step that had failed during execution.


$(execution|meta|nexial)

Display the current Nexial version.

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. Here, we are using this function in combination with sms event notification to expose metadata about the the nexial version used for the execution.

Input function

Output


$(execution|meta|java)

Display the current Java version.

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. Here, we are using this function in combination with sms Event Notification to expose metadata about the the java version used for the execution.

Input function

Output


$(execution|meta|user)

Display the username of the current Nexial execution.

Example
We can use this function to expose execution metadata as part of Event Notification. This can provide helpful information towards troubleshooting. Here, we are using this function in combination with sms Event Notification to expose metadata about the username which carried out the execution.

Input function

Output


See Also