NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to check std out for specific string?

Following https://forums.ni.com/t5/Example-Program-Drafts/Display-and-execute-command-lines-from-within-a-Test...

 

I run a command line command, say ping, which will contain either "Request timed out" if the target doesn't respond or "Reply from" if it does. The step settings specify that "Step.StdOutput.Text" should receive the output of this command. I want to search this output for the ping response strings, and then set the step as pass or fail accordingly.  

How can that be done?

 

Tia

0 Kudos
Message 1 of 2
(2,402 Views)

Will something like this work?

 

Cheers,

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