02-16-2010 07:26 PM
02-17-2010 09:17 AM
It depends on your configuration of Initialize the On-The-Fly Report Generator Object
02-19-2010 04:24 PM
Try looking into the Sequences referenced in this KB. If this doesn't help, describe, in more detail, what exactly you are trying to achieve. Also include what you have tried and what the results have been.
Cheers,
02-21-2010 04:37 PM
HI Peter,
All i need to do is create separate html reports whenever there is a Sequence call step type. I have attached a simple sequence which calls three sequences. I need a separate report for each sequence call. For example, Sequence1.html, Sequence2.html and Sequence3.html. Also an another report which has links to all three reports.
What i have done so far is edited the Reportgen_html.seq so that when it detects a step with StepType=SequenceCall, it calls a labview module to create a report and add all the step details and closes the report. Also i have managed to include a hyperlink in the main report. Copy my reportgen_html in your models folder. Please run the Create Single Report.Seq and you will see what i have done so far.
I would like to make few improvements. Instead of creating a report with Labview, i would like to do it with Teststand. I can see how Teststand adds data to the report (in TestReport callback), but could not figure out where exactly Teststand opens the report and closes the report after finishing it. In the process model it gets the report file path, resets the report but still not sure how it manages opening a new report and closing it when it finishes.
The next challange is port all these changes to On the Fly Report generation. OTFRG, obviously calls a different sequence. It does not call Reportgen_html.seq. May be it calls ProcessOTFStepResult, i am not sure
I have also tried executing the sequence in a separate execution. Yes, it does create separate html report, but adds significant Overhead to my sequences which is totally not acceptable.
02-22-2010 07:26 PM
This thread gives a good rundown of a couple ways to proceed.
A good way to implement most of this would be by overriding the ProcessModelPostResultListEntry callback. Copy your process model into the TestStand Public directory, or copy the ProcessModelPostResultListEntry to your sequence file before editing it. This way you can always revert back to the default if needed.
The RunState.CallingStep.Sequence.Name will allow you to test if you have finished a step in the "Main Sequence" and create a new report accordingly. See if this helps...
02-22-2010 08:30 PM
Thanks Peter. I have managed to do what i need. Here are the steps i used to create separate reports.
02-23-2010 07:04 PM
10-26-2011 02:15 AM
Hi,
I 'm trying this code but i have an error "'The post-expression for the step 'Add hyperlink' could not be evaluated. Unknown variable or property name 'Parameters.Result.TS.SequenceCall'. in the genereport_html file.
Nathan, please, can explain me how to use ' Step_testCaseName" for the reports.
Thanks you.
10-26-2011 06:55 PM
HI Cheknom,
You can add a property for the sequence call step type you created and call it as TestcaseName.Then you will be able to use Step.TestcaseName for the reports. If you still get the post expression error, please post the sequence file, then it will be easy for me to find the issue.
10-28-2011 01:48 AM
Hi Nathan,
Thank you for reply,
I solve the probleme by use another issue
I set a stationglobal to count the cycle. At each cycle I get the value of this Stationglobal in the report file ( configure report menu).
. But I have probleme when I run my sequence for long time. "Operation Failed" Error code -17500 source 'TSAPI' in Sequence editor.
Do you knox this ?