NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

String Value Test: Evaluate Data Source against multiple values?

In a String Value Test, is there a way to evaluate one Data Source against multiple string acceptable values (in Expected String Value)?  Basically, I need a test the where the results "D:", "E:", "F:", or "G:" are acceptable, but "C:" of <blank> are not.  I feel like this should be simple, but my brain is fried today...

0 Kudos
Message 1 of 7
(6,841 Views)

It's kinda hacky but it works.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 7
(6,840 Views)

I was gone for a day, so I'm just getting back to this.

I can't open the sequence, because I still have TesStand 4.2.1.83.

 

Thank you for your help,

T

0 Kudos
Message 3 of 7
(6,799 Views)

I back saved it.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 4 of 7
(6,797 Views)

Thank you jigg, that works.

I am going to revise it to use an array variable for the acceptable letters.  I'll post when I get it working.

 

Thanks again,

T

0 Kudos
Message 5 of 7
(6,792 Views)

You may be able to do that.  Let me know how it turns out.  If you had 2014 or newer it would be trivial because they have a Find function for the Arrays.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 6 of 7
(6,787 Views)

Nice thanks 🙂

I needed Step.Result.String == "Pass - Concession"? "Pass - Concession" : "Pass"

0 Kudos
Message 7 of 7
(5,895 Views)