09-07-2016 01:28 PM
I am using Teststand 2012 and have installed the simple text report model plugin.
My main test sequence calls a number of subsequences which contain the test steps and also contain more subsequences. A number of the subsequences are actions only. My result test file contains all the test steps results as expected, but it also contains a result line for each sequences call - making it difficult to see the results that matter. I would like to record only test steps.
Looking at the SimpleTextReport.dll code in CVI I can see it is stepping through the list of results, and formatting each line ( I have changed some of the formating). Is this the right place to filter out the sequence call steps or can I stop the sequence call steps from being added to the result list?
Solved! Go to Solution.
09-07-2016 05:45 PM
There are several ways to accomplish your goal:
1- Edit the SimpleTextReport.dll code as you suggested. This will enforce this type of reporting for ALL sequence files on that machine that use that plugin.
2- Add a SequenceFileResultListEntry callback to your sequence file. In there you could look and see if it is a Sequence Call step. If it is then you just grab the results from the substeps and move them to your local results. I've attached an example that demonstrates this. You must have On-The-Fly turned off.
Hope this helps,
09-08-2016 06:39 AM
Thanks, that is very helpful.
Your example fails the analyse sequence stage, but that is OK.
As most of my sequences are in separate files I think I will need to add it to each sequence file. Is it possible to use the same approach in the sequential model?
This system will only ever run this test, and what I am trying is to match is our old result format under teststand 4.2, so a "permanent" solution is good.
David
09-08-2016 07:15 AM
09-08-2016 08:09 AM
Thanks, that worked exactly as needed.