NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to show timestamp in test report for each step

Hi I have this issue with showing timestamp on the test report, some of the steps show it, some do not, with all steps show timestamp, in the setp properties, they all have TimeStamp in Result container( Step.Result.TimeStamp), does anyone have any idea how to solve the issue? thank you 

0 Kudos
Message 1 of 7
(8,008 Views)

Hello wwang332,

 

If you right-click on the property in the Sequence Editor, select Advanced>>Edit Flags, you should be able to manually check the box that says "Include in Report" for all your timestamps. I think that for certain step types the timestamp is being collected, but not necessarily included in report by default. I would check this first.

 

For reference, this information can be found as the first step in Section 3 of our Best Practices for TestStand document, linked here: http://www.ni.com/white-paper/8289/en/#toc3

 

Best,

 

Daniel

0 Kudos
Message 2 of 7
(7,966 Views)

thank you! will try!

0 Kudos
Message 3 of 7
(7,954 Views)

Hi Daniel,

I found out that for some certain test type (like: Multiple Numeric Limit Test), in the property tab, result drop down does not have timestamp, in this case, how could add timestamp into final report?

thank you!

0 Kudos
Message 4 of 7
(7,711 Views)

Hello wwang322,

 

Things like time stamps or execution times are only defined at run time, so the appropriate container will not usually be there. If you use a break point during execution, you can find the TS container in the ResultList for the step, as shown here. 

 

How Can I Find the Execution Time of a Step or a Group of Steps in TestStand?

http://digital.ni.com/public.nsf/allkb/52933BCB633C8F28862576F0006BB959?OpenDocument

 

As shown in the article, a brute workaround such as adding a pre-expression to find date and time and then include them in the report might be cleaner. I found this other discussion forum post where users had a similar conversation:

 

Forum: Log the start time of each step to database

http://forums.ni.com/t5/NI-TestStand/Log-the-start-time-of-each-step-to-database/td-p/806154

 

Instead of using Seconds(), you could even use Date() or Time() as Pre-expressions, log them to a variable, and include that in the report. 

 

Best,

 

Daniel

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

You can also override the Report Generation sequence files such as (reportgen_xml, reportgen_html) and add a custom subsequence to log the timestamp for each step. This is cleaner and simpler and can be customized to any extent. 

0 Kudos
Message 6 of 7
(6,242 Views)

Hi, Di you solve the problem?  Can you share the solution with me?

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