07-09-2025 08:07 AM
Hello all,
for better communication with external personal we want to have the current sequence/subsequnce name and the step index in the step name that is written in the report.
I found a way to change the step name while the script is running with using the "SequenceFilePreStep" callback and the following statement
> RunState.Caller.Step.Name = "(" + Str(RunState.Caller.Sequence.Name) +"_" + Str(RunState.Caller.StepIndex) + ") " + RunState.Caller.Step.Name
The problem is that when the script is run multiple times in direct succession using the "Test UUTs" mode the name gets longer and longer.
I have not found a way to reliable revert the name or let it only change once.
A manual change of the name is not desired because when there are changes in the script every following step also has to be renamed manual.
I hope someone can help me.
Greetings
Markus
Solved! Go to Solution.
07-09-2025 08:29 AM
A colleague did find the solution:
In the properties of the sequences (double click on the sequence) uncheck the "Optimize Non-Reentrant Calls to this sequence" option.
This did solve my problem.