NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to collect Test Results data from Test Stand for logging to Text file?

Hi All,
          Bydefault TestStand logs the test results data into the database. Now my requirements is that, I would need to log all the test results data  into a text file (after execution of each step).
          I would like to know that, How can i collect all the test results data from the TestStand 4.0 ? I want to collect test results whichever is logged into the database and redirect it to a text file on completion of each Step execution.
 
Thanks
Arun
0 Kudos
Message 1 of 5
(4,324 Views)
Hi,
 
By default, The Database logging of results is disabled and I think the Report logging is enabled and set to HTML.
 
Anyway, you can enable the Reports by the menu item Configure | Report Options...
This will set the report options for the Stations and will affect everyone.
To overrride this, you can use the callback sequences 'ReportOptions' in your SequenceFile which will allow you to modify the configured ReportOption for your requirement only.
 
Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 5
(4,321 Views)

Hi Ray,

            Thanks for your reply. I believe you have misunderstood my question. My requirements is that, I would like to collect all the test results data after every Step executes and I need to redirect logging the Test results data to a text file. I would also like to know, where all the test results are stored so that I can log the data to the needed text file.

Thanks

Arun

 

 

0 Kudos
Message 3 of 5
(4,319 Views)
Arun,

Results for a step are located in the Step.Result container.  The contents of this container will vary depending on the type of step in question, but this is the location from which you could obtain your results.

Note that ASCII Text File is a type of Report Format that can be automatically generated by TestStand 4.0.  You can set this format by going to Configure»Report Options.

Hope this helps!
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 4 of 5
(4,257 Views)

Hi Prasath,

One of the methods for easier logging is to have each step put the formated results into the Report Text for the step.  Then and the end of the run, you can collect all of the Report Text entrys from the array ThisContext.Locals.ResultList[].ReportText.Value.  Also, the ...ResultList[].Status.Value gives the Pass/Fail/Error for the step.  This depends on the complexity of your logging requirements.

Have a good day,

Mark Loy

0 Kudos
Message 5 of 5
(4,238 Views)