NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Report Generation in Single Pass

Hello All,
 
I have a long test where If I get a failure I'd like to retest a single step.  So in order to get the serial number when selecting a single step, I had to modify the Single Step entry point to get the serial number.  I did that fine. But when I do a single step, it doesn't give me the body of my report.  It'll give me the header but no results from the test I selected.  If I go execute, single step It'll give me the body but not ask me for my serial number.  So I'm, having trouble getting the best of both worlds.
 
I need to be able to select a single step, then enter the serial number so it appears in the header, and get the results of my test in the body of the report.  Right now it just gives me the header, says DONE for status, and just says end of uut report with no results.   I'm using Test Stand 3.1.  Any help would be appreciated, thanks!
0 Kudos
Message 1 of 8
(4,332 Views)

Hey Roons,

I assume that you are going to Execute>>Run Selected Steps Using>>Single Pass.  Is this correct?  Or are you just doing Execute>>Run Selected Step?  So then you edited your Single Pass entry point to get the serial number?  The only thing I can think of is that you are not recording results for that step.  If you right click the step and go to properties and then click on the Run Options tab you should see a checkbox called Record Results.  That needs to be checked in order to get a body or "result entry" for that step in the report. 

If it's a test step (i.e. Pass/Fail, Numeric Limit, Multiple Numeric Limit, String Value test) then it should have that checkbox already checked.  Other steps do not.

Hope that helps some.  Let me know if I understand the problem correctly,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 8
(4,321 Views)
 "assume that you are going to Execute>>Run Selected Steps Using>>Single Pass.  Is this correct?"
That is correct.  I am getting my results when I run a full test.  However when I run Execute>> run selected steps using>>single pass I am not getting the body of my report. 
 
I'm confused why I would get my results when I execute from the Main entry point but not the single pass entry point.  When I look at the model, the report generation looks the same to me.  I just want to be able to get the report for my single steps using single pass option.

Message Edited by Roons1159 on 10-18-2007 10:46 AM

0 Kudos
Message 3 of 8
(4,317 Views)
That's odd because it works for me using the default process model that shipped with TS.  Of course I have 3.5 but I don't think there's a difference between this and 3.1 for what we are doing. 
 
Are you able to break at that step and then step over it and see if you have values in your Locals.ResultList for that step?  The report uses what's in there to generate itself.  if nothing is in there then you won't have a report body.  If something is in there then you should be getting a report body.
 
Regards,
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 8
(4,314 Views)

Here was my first problem

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Problem:
I always execute my test sequences with Execute»Single Pass. I would like to be able to have a serial number entered for each UUT tested and have this serial number included in the report as if TestUUTs had been executed. How can I implement this?

Solution:
Only one property needs to be set for a serial number to be attached to the test and included in the report. This property is of string type and has the following lookup string:

RunState.Root.Locals.UUT.SerialNumber

An easy way to allow a test operator to enter a serial number is to use a Message Popup step:

  1. Right-click the Message Popup step and select Edit Message Settings
  2. On the Text And Buttons tab of the Configure Message Popup Step dialog, enter the desired Title and Message Expressions
  3. On the Options tab of the Configure Message Popup Step dialog, select Enable Response Text Box
  4. Click OK to close the Configure Message Popup Step dialog
  5. Right-click the Message Popup step and select Properties
  6. On the Expressions tab, enter the following expression for the Post-Expression:
    RunState.Root.Locals.UUT.SerialNumber = Step.Result.Response
  7. Click OK to close the step properties dialog


Now, the text entered into the Message Popup will be used for the serial number. To have this behavior limited to one sequence, the Message Popup step can be placed in the MainSequence of the sequence file.

If this behavior is desired for any sequence executed with Single Pass on the station, this Message Popup step can be placed in a Single Pass sequence of the Process Model sequence file, SequentialModel.seq for example. Before modifying a sequence in the Process Model, copy the sequence file from

<TestStand>\Components\NI\Models\TestStandModels

to

<TestStand>\Components\User\Models\TestStandModels

Once the Process Model sequence file is copied, the Message Popup step can be added to the appropriate sequence. Add the step so that it is executed before the MainSequence Callback.

For more on customizing Process Models, refer to Chapter 10 of the TestStand Reference Manual. This manual is available from TestStand Sequence Editor»Help»Search the TestStand Bookshelf»TestStand Reference Manual or from the link below.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

YOU ARE RIGHT, IT WORKS WHEN YOU SELECT SINGLE STEP USING SINGLE PASS... HOWEVER IF I DO WHAT THESE INSTRUCTIONS TELL ME TO DO FOR GETTING THE SERIAL NUMBER IN THE SEQUENCE,  THE PROBLEM I MENTIONED ABOUT NO BODY IN THE UUT REPORT BECOMES PRESENT.

0 Kudos
Message 5 of 8
(4,306 Views)
Man that is wierd... I can't figure it out.
0 Kudos
Message 6 of 8
(4,304 Views)

Does it work if you change your Test UUT entry point to allow interactive execution (i.e. open the process model, go to all sequences, right click Test UUTs>>Properties, click the models tab and check allow interactive executioin)?  This will also get your serial number and generate the report.

The reason I suggest this is because I wonder if the issue is caused by the code you added in the singlepass to get the serial number.

Regards,

Message Edited by ~jiggawax~ on 10-18-2007 02:09 PM

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 7 of 8
(4,302 Views)
THANK YOU.  That worked perfect!
0 Kudos
Message 8 of 8
(4,292 Views)