03-14-2017 12:38 AM
Hi,
I am new to the test stand. I was given a task to add one more UUT serial number to an existing test solution. Basically the test solution is same. But the requirements tags needs to be changed in the report since they are different for new serial number.
For example,
I have tags Requirement_1 for UUT_SN1 and Requirement_2 for UUT_SN2 for the same test sequence. I need to pass the Requirement_1 or Requirement_2 based on UUT selection to the report while executing the test sequence.
Can anyone help in doing this?
Solved! Go to Solution.
03-15-2017 08:07 AM - edited 03-15-2017 08:16 AM
Hello VivekPV,
expressions can be used like
SetNumElements (Step.TS.Requirements.Links, 1),
(RunState.Root.Locals.UUT.SerialNumber=="Test") ? (Step.TS.Requirements.Links[0] = "Test") : (Step.TS.Requirements.Links[0] = "No Test")
Now you have to insert the expression on the position, where the decision was done, to modify the report. In the example the requirements property from the step was changed based on the serial number.
On how many positions must the change done, have you an example?
03-20-2017 05:46 AM
Thank you.
This works perfectly. I used the expressions as the 'pre-expression' for the sequences.