02-13-2014 01:32 AM
Good morning,
is it possible, with TestStand 2012, to create a sequence call (automatically) in MainSequence for each defined SubSequence in the same sequence-file?
I have many (as more as 120) tests which are applied as a SubSequence. these Subsequences get called from MainSequence. Now I have to set for every SubSequence a sequence call, this take much time.
My idea is to write a script or a helper sequence which do this job for me, is this possible?
thanks
Heiko
02-13-2014 09:23 AM
Hello,
Here is an example...You will probably need to change some little things for your specific sequence file, but it will help you...
02-13-2014 09:48 AM
You can use this statement instead...(slightly different than the previous one...and more readable according to me)
RunState.SequenceFile.Data.Seq[Locals.index].InsertStep(RunState.Sequence.GetStep(0, StepGroup_Setup), 0, StepGroup_Main)
A few explanations :
> Locals.index : local variable to index each subsequence in your sequence file
> InsertStep : method to insert the step you specify into the subsequence (with options in order to specify where you want to insert the step in your subsequence : group, and position in the group)
> GetStep : method to get a reference to the step you need to insert in the subsequence (with options in order to specify which step of your main sequence you want to get a reference to : group, and position in the group)
02-13-2014 11:47 PM
Hey Julien,
thanks for your answer, but I can't open the file you attached because I use TestStand version 5.0.xxx. Can you save it in a erlier version and post it again?
thx
02-14-2014 02:26 AM
Hop !
02-18-2014 04:11 AM
Is it OK ???
02-24-2014 02:43 AM
Hi Julien,
please excuse my late answer, but there's a lot of work for me actual.
I can open and run the sequence you sent, many thanks for that.
But it's not really that what I meant. I want to add the subsequences BEFORE I run the sequence file.
In my sequence file I have over a hundred sub-sequences which are defined tests. Now I must add for every sub-sequence a sequence call in my main-sequence.
In the main I need that function you sent which CREATE a sequence call and set it in main-sequence.
Is that possible to do?
Heiko
02-26-2014 04:45 AM
That's not exactly what you need but maybe it will help you.
03-06-2014 06:22 AM
Hey Julien,
thanks a lot for your help. You are right, not exactly that what I need but I see what you do to copy steps.
If I can use this logic to set a sequence call of a sub-sequence to main-sequence then it will be greatfull.
Heiko
05-09-2015 09:16 AM
Hi !
I have the same problem , can you help me please ! I tried to use "InsertStep" but I didn't success , do you have any idea thks you !!