05-18-2018 05:20 AM
Hi I am new to teststand. I use testand on windows 10 and i'm actually trying to execute some bash scripts that I have already tested on linux and on windows using the softaware cygwin. I saw that in order to do that i needed to use a call executable fonction in the insertion palette, and then chose in the file path name section cmd to open a windows terminal or mintty for my cygwin terminal. the question I would like to ask is how can i enter the commands to go to my scripts location and execute them automaticaly in a console ?
thanks for your help
05-19-2018 11:22 PM
05-24-2018 08:35 AM
Yes thank you i found that tutorial. But now i am having some difficulty to acces the standart output stream of my script into teststand. I have a bash script that test a value and then print one particular message if I enter the correct value, and another one if i entre the wrong value I managed to run my script into teststand, but it gave me the "test sequence passed" answer every time, althought i want my test to fail when i give my script a wrong parameter. I followed the related part on this link http://www.ni.com/tutorial/8847/en/. In standard output i choosed store in variable property as output destination Step.StdOutput.Text as default. In the additional result panel i added a standart output result from the list and when I run my test, the standard output part in my report is empty, it's just 2 quotes ''.
05-29-2018 10:29 AM
Store it as a local variable and then in another step do the analysis. For example you could have a String Value Type check the local variable.
Step.Result.Status has to be set to "Failed" in order for you to see that on the report. The String Value Type step does this automatically against a string.