Hi Matthias,
Looks like you are on the right track. Inside of your subsequence, if you specify RunState.Caller, that is a reference to the caller's sequence context. If you want a reference to the:
1. Calling sequence - Use RunState.Caller.RunState.Sequence
2. Calling Step - Use RunState.Caller.Step
So therefore, RunState.Caller.Step will reside in RunState.Caller.RunState.Sequence. There should be no need to obtain a reference to the sequence file.
Note, that you can use the NameOf function in TestStand to get the name of a property object. For example, NameOf("RunState.Caller.Step") would return to me the name of the calling step, i.e. the name of the sequence call step that launched the subsequence.
Let me know if this helps or if you n
eed an example. If you need an example please let me know what it is you want and the version of TestStand you are using. Thanks!
Ryan