05-16-2006 11:36 AM
Hi I am using teststand with labwindows/cvi.
I add values to result xml by using TS_PropertySetValString and path “Step.Result….”
(By the way, dose any body know another way to do it??)
So, it works. But when I do this in another sequence(MySequence) and call it from main sequence it doesn’t work. In other words, teststand report generation can’t see values in results of sequences (different from main sequence).
How can I solve it?
Thanks
05-16-2006 12:26 PM
05-16-2006 01:20 PM
So, i'll try to clarify:
There are two questions:
1. I need to add data to teststand report xml from my labwindows dll. i found this way: add data to
Step.Report...... and afterthat teststand know to add data aoutomaticly to the report xml. So, the first question is: do you know easier way to add custom data to report xml?
2. When i do this operation (described in 1) all works. The problem is, that i use
TS_PropertySetValVariant function with testData->seqContextCVI. When i use sequence call from MainSequence to another sequence (MySequence) the variable testData->seqContextCVI contains MySequence but report generated for MainSequence, so teststand can't add data from MySequence to the report. I suppose to call MainSequence by api from MySequence in order to add data, but i don't know how to do it.
do you know how to solve this problem??
Thanks a lot
05-17-2006 12:47 AM
Hi,
Have you enabled reporting for that SequenceCall Step. By default the Record Results is disabled. Select the Step, right mouse click and select the Properties. In the SequenceCall Properties dialog, select the Run Options Tab and click on the Record Result control if not checked.
Regards
Ray Farmer
05-17-2006 11:56 AM
Mr Ray Farmer,
I have Record Result option checked. I see the result xml: teststand insert elements from sequence result xml, but high level only. It means: <Prop Name='TS' Type='Obj' Flags='0x0'> and his sons:<Prop Name='StartTime' Type='Number' Flags='0x0'><Value>150.5377505</Value> </Prop><Prop Name='TotalTime' Type='Number' Flags='0x0'><Value>0.0562527</Value></Prop><Prop Name='ModuleTime' Type='Number' Flags='0x0'><Value>0.055635</Value> </Prop> etc.
My be any body knows, how can i generate report for each sequence call? I mean: if i have main sequence that calls for another sequence then teststand will create reoprt for main sequence and one else for another sequence.
Thanks
05-17-2006 12:06 PM
Hi,
What version of TestStand are you using?
Regards
Ray Farmer
05-17-2006 12:14 PM
05-17-2006 12:28 PM - edited 05-17-2006 12:28 PM
Message Edited by Ray Farmer on 05-17-2006 06:29 PM
05-17-2006 12:54 PM
05-18-2006 05:39 AM
Hi,
So i found the diffrence: when i run your (each sequence) in new thread report generation of subsequence dosn't work.
And that's what i need to do beacause of the problem dicribed in digital.ni.com/public.nsf/0/ ad46b130ba24bb5c86256b8100689612OpenDocument Have you any suggestions?