Is there a way to access the properties (locals, step properties) of a sequence wich is called by a sequence adapter before this step is executed.
For example, I want to set locals and step properties of the mainsequence of a client sequence file from within the process model (before the mainsequence callback).
By the way, I use a modified Batchmodel (Teststand 2.0.1) with multiple testsockets and separate fileglobals for every testsocket.
A possible solution is to manipulate "RunState.ProcessModelClient.Data" before the mainsequence callback is executed. But this does only work for the first execution (at least for step properties and fileglobals).
Another disadvantage is that if I terminate the execution, the sequence editor shows me that the variables were changed (but no "file modified"- marker appears).
Another way would be to dynamical create a client sequence specific parameterlist for the mainsequence callback and hand over parameters instead of locals. But on this way I cannot set stepproperties.
What I want to do is:
1. Load some Data (client sequence file specific) into a dynamical created property-container in the sequence context of the process model. For this, I analyze "RunState.ProcessModelClient.Data" to get the structure of the mainsequence.
2. Befor the mainsequence callback is executed, I want to set step properties and locals of the called mainsequence from within the test socket entry point.
My problem is to access the runtime copie of the mainsequence callback stepmodule. Is there a way to get an ActiveX-Reference to the loaded stepmodule.
Obviously, it does'nt work to access the sequence file and modify it at runtime, I really need the run time copy.
I supplied an sequence file to explain my problem to you.
Use it with the batch model. You have to replace the PreBatch in the model with the PreBatch in the file (overloading the callback does'nt work).
The mainsequence shows a message box to show some variables. These variables (step propertie, local, fileglobal) were set in the PreBatch.