NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand Message Popup

Hi,

Can we store the "Initial Response string" into local variable for my further reference?? MessagePopup->Edit Message settings->Options->Enable Response Text Box.

-Anil
Anil-B'lore
0 Kudos
Message 1 of 5
(8,780 Views)
Hi,

You can access the response string entered by the user from the Run State object of the sequence.

For example :- Locals.Response= RunState.Sequence.Main["Message Popup"].Result.Response

In above statement i am assigning it to Response(My Local Variable) from the run state object of step called "Message Popup"

Please check the attachment.

Regards,
Anuradha
Message 2 of 5
(8,776 Views)
You could also place the following assignment in the Post Expression for the Message Popup step.
Locals.Response= Step.Result.Response

Doing this would not require a second step.
Scott Richardson
https://testeract.com
Message 3 of 5
(8,765 Views)
Hi,

Or if you want to start of with some text in the response string when the dialog first appears.
Put in the Pre Expression of the MessagePopup step

Step.DefaultResponse = Locals.Response

Regards
Ray Farmer
Regards
Ray Farmer
Message 4 of 5
(8,758 Views)
Hi Anuradha,

Thanks for your reply.

-Anil
Anil-B'lore
0 Kudos
Message 5 of 5
(8,723 Views)