NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make active status expression in step setting -> properties-> expression?

Hi,

hello to eveone as this is my first question in forum and new to TestStand 2013. I am trying to modify existing teststand program and want to reduce number of iteration from 3 to 1 . But currently status expression box in step setting-> properties - expression is grayed out and looks I can't modified previously written expression there. what should I do? Current expression is

(Step.Result.Status == "Done" && (Step.TS.SData.ThreadOpt == 0 || Step.TS.SData.ThreadOpt == 3)) ? "Passed" : Step.Result.Status and I want to change 3 to 1(only one iteration).

 

 

 

Regards,

Amitabh Bhachhan 

0 Kudos
Message 1 of 3
(4,717 Views)

What kind of a step is this?

 

The default status expression is defined in the step definition in the type palette.  If this is a native step then you don't want to change it.  You want to create your own step type and re-define the status.

 

 

If a step type is written well, you should be able to change those values through the edit substep. 

 

If you are absolutely, postively sure you want to change it without creating a new step type then you can use the API to do so.

 

Can you give us more detail?  We will be able to better help you.

 

Thanks,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 3
(4,713 Views)

@Amitabh_Bachhan wrote:

Hi,

hello to eveone as this is my first question in forum and new to TestStand 2013. I am trying to modify existing teststand program and want to reduce number of iteration from 3 to 1 . But currently status expression box in step setting-> properties - expression is grayed out and looks I can't modified previously written expression there. what should I do? Current expression is

(Step.Result.Status == "Done" && (Step.TS.SData.ThreadOpt == 0 || Step.TS.SData.ThreadOpt == 3)) ? "Passed" : Step.Result.Status and I want to change 3 to 1(only one iteration).

 

 

 

Regards,

Amitabh Bhachhan 


How does editing the status expression help you change the number of iterations? I think you are misunderstanding the purpose and implementation of this expression. The 3 in the above expression has nothing to do with number of iterations.

 

-Doug

0 Kudos
Message 3 of 3
(4,636 Views)