10-02-2024 04:25 PM
Where and how would be the best way to enter a testnumber for each test I run so that the test would have a test number column in the database associated with it.
Solved! Go to Solution.
10-03-2024 03:16 AM
I'm not an expert
maybe this give you an idea. See our test result -html and Test Sequence.
Marinus
10-06-2024 11:39 PM
You mean like assigning a (human readable) unique identifier to each test?
10-07-2024 01:17 AM
Hi
I was thinking you can change the test names to 1, 2, 3 etc.
Marinus
10-07-2024 08:05 AM
Thanks but I’d really rather not do it this way. I would rather have a number tied directly to the test itself that way I can create a master test table in the database that corresponds to the test numbers. Makes it easier to generate a test report from the database.
10-07-2024 10:29 AM
Yes exactly. This would make it a little easier when creating a report from the database itself. Ultimately the goal is to have a master table in the database that has names associated with test numbers. I just need a way to put the testnumber in the test results or to be able to add it in the database somewhere that correlates to the actual test performed.
10-08-2024 12:15 AM
I'll start with some background before sketching a possible solution...
TestStands result collection basically works by harvesting the result containers from the steps in a sequence.
The data from the result containers are than written into the report or database by the result processing.
Consequently, the data you want to have in the report / database should go into the result container of the step.
To do so, there are several ways, each with some pros and cons (guess you'll find them out yourself)
1.) Use "Additional Results" Properties of step
2.) Create your own StepType based on the NI StepTypes, modify the result structure and provide some code to enable better UX. (https://www.ni.com/de/support/documentation/supplemental/08/teststand-custom-step-type-development-b... )
These are the most straight-forward options I am aware of.
We have opted for the second way, since there is a lot of additional functionality in our steps.
10-08-2024 07:53 AM
Thank you. This is what I was looking for. I was leaning towards a custom type before posting this but I wanted to make sure that there was not something easier. I will look more into custom types.
10-08-2024 12:51 PM - edited 10-08-2024 12:53 PM
@Joe_H wrote:
Where and how would be the best way to enter a testnumber for each test I run so that the test would have a test number column in the database associated with it.
SELECT UUT_RESULT.UUT_SERIAL_NUMBER, UUT_RESULT.START_DATE_TIME, STEP_RESULT.ORDER_NUMBER AS STEP_ORDER, STEP_RESULT.STEP_NAME, STEP_RESULT.UID, STEP_RESULT.STATUS
FROM UUT_RESULT LEFT JOIN STEP_RESULT ON UUT_RESULT.ID = STEP_RESULT.UUT_RESULT
ORDER BY UUT_RESULT.UUT_SERIAL_NUMBER, UUT_RESULT.START_DATE_TIME, STEP_RESULT.ORDER_NUMBER
A table will be created which includes the UID column
10-08-2024 07:25 PM
This seems like a very viable option. I will try it out and let you know.