11-03-2005 03:34 PM
11-04-2005 12:43 AM
Hi,
Not sure why you are trying to do this when every step already has a text parameter in the results call reporttext and this you can fill at the same time you write the result.
Is this some information thats not available when the step is being invoked?
Regards
Ray Farmer
11-04-2005 07:04 AM
11-04-2005 01:59 PM
Hi Freak,
Let me first clarify my eventual answer by saying if you had a step property that shows up in the step context, this process is much easier. It can be done with the Execution.AddExtraResult method which automatically adds a property to the result list for all steps in which the property exists. However, the comment does not show up in the step context and so the process becomes a little different, but still equally possible. You can use an engine callback, either SequenceFilePreStep or SequenceFilePostStep, to add a property to the result list for every property. I added the SequenceFilePreStep and with the first step, I created a Result.Comment with the value of CommentOf(Parameters.Step) which returns the comment of the particular step using a SetValString with the options of InsertIfMissing. The second step sets the flags of Result.Comment to IncludeInReport so it is automatically put in the report instead of forcing you to change the report generation sequence manually. Please see the attached sequence for this solution.
If you want to make this process occur for all sequence files using a particular process model. Copy the steps from SequenceFilePreStep to a ProcessModelPreStep in your process model. This will run the steps prior to every step in the client sequences running that process model, but not before the steps in the process model itself.
Let me know if you have any other questions.
11-04-2005 02:05 PM
11-04-2005 02:41 PM
11-04-2005 03:00 PM
Good call James. So many callbacks to choose from and I forgot about this one. Thanks for helping out.
11-07-2005 06:48 AM
03-19-2009 06:11 AM
07-01-2010 07:53 AM
I would be really interested by your solution, since I've exactly the same problem, but I'm working on Teststand 3.0, and I cannot open your sequence file in attachment..
Could you convert it to Teststand 3.0 ?