From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(5,955 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
(5,954 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
(5,913 Views)

I back saved it.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 4 of 7
(5,911 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
(5,906 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
(5,901 Views)

Nice thanks 🙂

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

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