NI TestStand

取消
显示结果 
搜索替代 
您的意思是: 

teststand callbacks - Is there a way to include step results for the SequenceFilePostStepFailure callback in report?

已解决!
转到解答

I have some steps in the SequenceFilePostStepFailure callback and wanted to include these steps in the report when any step failure occurs. I have the ‘Disable Result Recording for All Steps” unchecked on the SequenceFilePostStepFailure Properties. Also, the ‘Record Result’ option is checked for steps. The callback is executed, but no steps are included in the report. Is there a way to have these step results to be included in the report?

0 项奖励
1 条消息(共 12 条)
6,269 次查看

Give this a try.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
2 条消息(共 12 条)
6,254 次查看

Thank you for your suggestion. It seems like the following statement should help, but I got the same report with or without (skip) it. Still no step results of the SequenceFilePostStepFauilure callback included in the report.

 

RunState.Caller.Locals.ResultList += Locals.ResultList

0 项奖励
3 条消息(共 12 条)
6,245 次查看
Did my example work for you. If so then chances are you aren't populating locals.Resultlist correctly inside of the engine call back
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 项奖励
4 条消息(共 12 条)
6,234 次查看

Oh, I'm sorry that I didn't make it clear. The example didn't work. I got the same result with or without the ResultList statement in Cleanup.

0 项奖励
5 条消息(共 12 条)
6,224 次查看

That's really odd.  When I run it I see both action steps on the report.  What version of TestStand are you running?  I tried in both 2010 and 2014.  Same result.

 

Place a pause before the Copy ResultList step.  Tell me what you see in Locals.ResultList.  Are there any elements?  You should see 2 elements.  Each representing each action step.

 

Which model are you running with?  Do you see any steps on the report?

 

It is baffling to me that this isn't working.

 

Maybe try this instead: RunState.Caller.Locals.ResultList = (RunState.Caller.Locals.ResultList + Locals.ResultList)  My thought here is that there was a bug with the += operator at one point.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 项奖励
6 条消息(共 12 条)
6,217 次查看

TestStand Engine Version: 2010 f2 (4.5.0.350)

Sequence Editor Version 4.5.0.310

Model: Sequential Model

OS: Windows 7

 

When it breaks on ResultList statement, I see 2 elements in Locals.ResultList.

I also tried your suggestion of changing '+=' operator; it still behaved the same (no results included).

On the report, I see the step in the main, which generated the fault.

 

Now, I'm much interested in learning what version of TestStand you are running with.

Thank you for your help.

0 项奖励
7 条消息(共 12 条)
6,211 次查看

TestStand Engine Version: 2010 f2 (4.5.0.350)

Sequence Editor Version 4.5.0.310

Model: Sequential Model

OS: Windows 7

 

When it breaks on ResultList statement, I see 2 elements in Locals.ResultList.

I also tried your suggestion of changing '+=' operator; it still behaved the same (no results included in the report).

On the report, I see the step in the main, which generated the fault.

 

Now, I'm much interested in learning what version of TestStand you are running with.

Thank you for your help.

0 项奖励
8 条消息(共 12 条)
6,211 次查看

You need to turn off On-The-Fly reporting.  Do you have it on?  You can check by going to Configure>>Report Options... and unchecking the On-The-Fly box.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 项奖励
9 条消息(共 12 条)
6,207 次查看

You're right. It worked once I turned off the 'On-The-Fly Reporting' option. Unfortunately, I need to have the 'On-The-Fly Reporting' option on. Any idea how to go about with the 'On-The-Fly Reporting' option on?

 

Thank you for your help.

0 项奖励
10 条消息(共 12 条)
6,176 次查看