09-02-2009 09:28 AM
Hi There,
I would like to add a comment to the report generated by TestStand 4.
The String 206 is an error code and I would like to print out the comment “ RS485 Failed please check connector SK2”
This is the actual generated report:
*********************************************UUT ReportStation ID: XPGBNEWMFG1747Serial Number: NONEDate: 02 September 2009Time: 15:17:45Operator: AdministratorExecution Time: 70.6712946 secondsNumber of Results: 67UUT Result: Failed********************************************* Begin Sequence: MainSequence(C:\testprog\UT70.seq) End Sequence: 02_Init_System Internal self - test: Failed Begin Sequence: 04_Internal self-test on UT70 (C:\testprog\UT70.seq) 3.3 Read 0100 = 199 : Failed String: 206 RS485 Failed please check connector SK2 my comment to add.. Limits: String: 199 Comparison Type: Ignore Case Number of Loops: 250 Number of Passes: 0 Number of Failures: 250 Final Loop Index: 250 End Sequence: 04_Internal self-test on UT70 End Sequence: MainSequence End UUT Report Kind regardsMarkenSolved! Go to Solution.
09-02-2009 01:01 PM
Can you tell us which report format you are using?
Also, what type of code module will provide the error text
09-02-2009 01:48 PM
Hi,
Any errors usually get included in the report as default.
But you could put the text into the step.result.reporttext.
regards
Ray Farmer
09-03-2009 02:36 AM
I have a case statement to evaluate a loop. I run and self test inside the UUT and just waiting for the result. If the result is 199 unit has passed. If the result is between 200, 201…208 they are related to different errors. In the case statement I have a message popup step that evaluates the result. A message pops up for the operator information and I would like that the message information to be printed for the repair tech information.
I have try to put in post-expresion of the step some like Step.Result.ReportText = =" RS485 Failed Self-Test failed" but it did not print.
Any suggestions are very welcome.
09-03-2009 07:04 AM
Hi,
The ReportText of a step is added to the report only if the Record Result is enabled for that step.
And you must use a single "=" in your expression :
Step.Result.ReportText = "RS485 Failed Self-Test failed" (you wrote Step.Result.ReportText == "RS485 Failed Self-Test failed")
Bruno
09-03-2009 07:20 AM
Hi Bruno,
Thanks for the advice.I have tried with one = but the message is only printing when the Report option result filtering Expression is set to All results. I want the comment to be printed on the report when the Filtering expression is set to Exclude Passed/Done/Skipped.
What I am missing out?
Thanks
marken
09-03-2009 07:45 AM
What is the type of the step with the Report Text ?
If you are using the MessagePopup step, the result status is "done".
The filtering expression you are using excludes passed, done and skipped status. You keep in the report only the steps that have a failed or error status.
The MessagePopup has a done status => not included in the report => report text not displayed.
If you want to display the report text you should set the report text of a failed step (the NumericLimitTest of your measurement ?).
Bruno