02-12-2013 09:07 AM
Hello to everyone,
Using: TestStand 2010 SP1 and Visual C# 2008
I want to modify the RunMode ("Normal", "Skip",...) of different steps of my main sequence and also some steps of some subsequences.
Some routes of steps can be for example: "RunState.SequenceFile.Data.Seq[3].Main[5].TS.Mode"
I have been looking at MyContext.AsPropertyObject().SetPropertyObject() but I don't get it...
How do you modify values of RunState from C#?
02-12-2013 10:32 AM - edited 02-12-2013 10:33 AM
You should use the higher-level API instead since it doesn't rely on hidden properties that might change someday:
MyContext.SequenceFile.GetSequence(3).GetStep(5, StepGroup_Main).SetRunModeEx(); <--- See documentation for SetRunModeEx for more details.
-Doug