05-08-2018 07:58 AM
Hello,
how can i add an if statement in SequenceFilePostStep that gets only true if the Step was a .Net step?
And another file that only executes if the filename equals "abc"?
Thanks
05-08-2018 08:27 AM
For the Adapter you can use: Parameters.Step.AdapterKeyName == "DotNet Adapter"
Not sure what you mean by your second question. Can you shed some more clarification on it?
05-08-2018 08:53 AM - edited 05-08-2018 08:58 AM
I don´t have Parameters.Step.AdapterKeyName?
Oh, i meant "filter" not "file".
I want to create an if that checks the filename.
For example:
myfile.seq contains a some steps.
The model sequence has a SequenceFilePostStep.
In here i want to check "if" the file equals "myfile.seq".
05-08-2018 01:13 PM
Just to clarify SequenceFilePostStep callback will only ever be called by the file within which it exists. ProcessModelPostStep Callback will/can be called by any client sequence file and can only exist in a file marked as a Model.
I'll assume you are referring to ProcessModelPostStep callback. The verbiage you want is: RunState.Caller.SequenceFile.AsPropertyObjectFile.DisplayName == "myfile.seq"
Hope this helps,
05-09-2018 02:37 AM
Perfect. Exactly what i was serching for.
Where can find a documentation of all the callbacks?
When searching in Teststand Help for "ProcessModelPostStep " i get 0 results.
05-09-2018 11:23 AM
Engine Callbacks are here:
https://zone.ni.com/reference/en-XX/help/370052R-01/tsfundamentals/infotopics/callbacks_engine_list/
High level view of callbacks in general:
Look in the process model for Model Callbacks.
Hope this helps,