NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible Bug in TestStand with a Message Popup and the API

Hello Folks,

I think today I encountered a bug in TestStand API with the Message Popup window.
I use as a way of user interaction, maybe there is a better way I didn't figured out. I'm open for new Ideas.

The possible bug itself is that if I add a Message Popup step inside the Sequence and under Options enable the Response Text Box while using the API, I will not get the message entered into the response field in the results page.
If I manually do it like with the SequenceFile Editor it works as expected.
It really took me some time, all settings are the same, even the hidden ones. But if I looked up the XML code both are generating, there is a difference.

Inside the Result Obj there is this in the manually created one.
<Response classname='Str' valueflags='8192'>
<value/>

But in the API generated one it is like this:
<Response classname='Str'>
<value/>

It seems the reason is that the API defaults to 0x2800 in the Flags:
Include in Report

Not copy to Results

Which seems to be not reasonable for me at all.
While from the editor it is 0x2000 only Include in Report.

Tell me if I'm wrong and this was by intention, but I really don't get the point for these flags.

 

Greats,

Maximilian

Message 1 of 2
(249 Views)

Hey Maximilian,

 

good job figuring this out! I wasn’t aware of this up to now!

 

IMHO, it’s more of an unlucky design decision rather a bug.

 

Have a great weekend

 

0 Kudos
Message 2 of 2
(216 Views)