10-18-2007 02:14 PM
10-18-2007 03:17 PM - edited 10-18-2007 03:17 PM
Hey Sean,
Why not use the SequenceFileLoad callback? It's an engine callback that gets called when the file is loaded into memory.
By the way if you added the PreUUTCallback to your client sequence file then you should already have access to the sequence file globals. FileGlobals.MyVariable.
Hopefully you aren't editing the PreUUTCallback sequence in your process model. You should be overriding it from your client by adding it there. Edit>>Sequence File Callbacks Then add the ones that you want.
Hope that helps,
Message Edited by ~jiggawax~ on 10-18-2007 03:18 PM
10-19-2007 10:09 AM
Thank you for your response jigg.
I am indeed modifying the process model, because I don't want to have to go through this for all of the individual sequences that will be written. I want the default behavior to read the ini file for a given sequence.
I hadn't thought about the SequenceFileLoadCallback. That is probably a better place than the PreUUTCallback, but it still leaves me with the problem of extracting information from the FileGlobals of the individual test sequence (before that sequence occurs in the process model) to determine the path to the ini file for that sequence.
If you have any suggestions, please let me know.
Thanks,
-Sean
10-19-2007 11:37 AM
10-19-2007 11:38 AM - edited 10-19-2007 11:38 AM
One more thing- In TS 4.0 you can have templates. So then you can just drag and drop into your new client sequences without having to redo it every time. 🙂
Talking about adding the ProcessSetupCallback to your client. Or whatever callback you choose to change.
Message Edited by ~jiggawax~ on 10-19-2007 11:39 AM
10-22-2007 09:39 AM
Jiggawax,
Thank you for the reference. It answers my initial question admirably. Unfortunately, trying to pass an indeterminate amount of data from an ini read by my process model to my client has proven to be unpleasant. I may have to implement this client side after all. I tried to put it in the SequenceLoadCallback and update the file globals, but it appears to only update the globals for the duration of the SequenceLoadCallback? Is there a way to have it update the globals for the duration of all executions until the sequence is exited? I can do this in the PreUUTCallback using an IF statement to check for an empty array and filling it from the INI, but if tnere is a better way to do this then I would rather do it that way. ![]()
Thanks,
Sean
10-22-2007 10:30 AM
10-22-2007 10:37 AM