NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Individual report for each step in a sequence

Hello,
 
I have built a system where each step in my main sequence is another sequence file. Each sequence file represent one test case. Each of these individual sequences has multiple steps with a pass-Fail criteria.
 
At the end of main sequence run, I get a huge report of the entire tests. Is it possible to generate a report for each of the steps in the main sequence. So at the end of the run, I have say 10 reports for 10 steps each describing in details abou the coressponding step.
 
Regards
Gopal
0 Kudos
Message 1 of 9
(4,612 Views)
Hey Gopal,

If these sequence files truly are separate entities, then you can call them each in a new execution (Sequence Call>>Specify Module>>Multithreading) and separate reports will be generated.

Hope this helps!
Thanks,

Andy McRorie
NI R&D
0 Kudos
Message 2 of 9
(4,584 Views)

Hi
I thank you for the suggesstion. Though I have seperate sequence files, I cannot run them in parallel as there would be resource conflict. My requirement is that the sequence calls in the main seq should execute step by step. At the end of execution it should generate seperate report for each sequence call steps executed.

When I enable 'run in new execution', the sequences starts to run in parallel. I want the flow to be in sequential steps, yet generate seperate reports for each step.

Regards
Gopal

0 Kudos
Message 3 of 9
(4,575 Views)

Hi,

I think you would have to modifying your Process Model sequence file and maybe the report generation sequence file as well.

In the Process Model the steps that occur to generate the report are:

1 A step to determine the FilePathName - this uses the information obtained from the Report Options.

2. A  step which calls Report.Reset ("") - which clears the report.

3. A step which calls Report.Reset (Locals.Report) - Locals.Report holds the current report text obtained from Test Report.

4. A step which calls Report.Save() - which save the report to the current file which was setup by the call in step1 above.

5. Finally, a step which calls Report.Load - which loads the report into the operator interface / Sequence Editor Report window.

Therefore, you are going to have to do as a minimum is steps 1,2, 3, 4. What you display at the end of the test for step 5 is a problem because clearly you may still what to display the complete test run not just the last test.

Also what you may consider, is what header and footer does each report have, and is the information available, or is there extra information that you will have to provide somewhere in your test sequence.

The Results for each top-level steps are contained in Locals.ResultList[] these will need to be stripped out so that you can then pass to the Test Report callback to generate each report.

Although what you might consider, is leave the Process Model to generate the normal report but modify the report generation sequence file to generate the extra individual step reports.

Regards

Ray Farmer

 

Regards
Ray Farmer
0 Kudos
Message 4 of 9
(4,570 Views)

I just want to point out that when you call a subsequence in a new execution, you can specify the "Wait for Execution to Complete: Before Executing Next Step" option on the Execution Settings dialog box. This way you can get separate reports without introducing parallel execution into your sequence.

Ray's approach of modifying the process model would be best if you want this change to apply to a number of sequence files that you'd rather not individually modify.

The new execution approach is easier if you just have one sequence file for which you want this behavior.

Message 5 of 9
(4,555 Views)

Hi,

I am able to get individual reports by enabling the new execution and wait till the execution completes. In this case i get the serial number entry dialog box every time the sequence call in each step starts execution. Is it possible to avoid this?

Is it possible to disable the serail number input dialog?

Regards
Gopal

0 Kudos
Message 6 of 9
(4,533 Views)
Hey Gopal,

You can avoid this dialog either by selecting "Single Pass" as the Entry Point for the sequence call or by modifying the process model (PreUUT), which could be done by (probably less preferable) overriding the callback for PreUUT in each sequence file.
Thanks,

Andy McRorie
NI R&D
0 Kudos
Message 7 of 9
(4,520 Views)

HI,

Thank you. Now got what i wanted. I changed the entry point.

I have one more query, I configured the report options call back for the main sequence. I gave a different directory path for the report. The report corressponding to the main sequence is getting generated in the specified directory. But the reports of the sequence calls are getting generated in the directory specified in the reports option menu.

Is it possible to make the reports generate at the required directory by making changes in the main seqnece alone?

Regards

Gopal

0 Kudos
Message 8 of 9
(4,475 Views)
Hey Gopal,

Please refer to your second entry: http://forums.ni.com/ni/board/message?board.id=330&message.id=15256

Thanks for posting the follow-up question in a new thread.

Thanks,

Andy McRorie
NI R&D
0 Kudos
Message 9 of 9
(4,454 Views)