From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Postexpression that creates a "jumpToEnd" depending on result?

Solved!
Go to solution

Hello,

i want to create a Popup with to buttons. button_1 = continue and button_2 = jump to end.

How can i put this condition inside the PostExpression of the popup-teststep?

Thanks

0 Kudos
Message 1 of 2
(3,090 Views)
Solution
Accepted by topic author OnlyOne

Hi,

 

Maybe an easier way of getting this behaviour is to use the Post Actions rather than post-expression.

 

Create your Message Popup with Buttons 1 = "Continue" and 2 = "Jump To End":

 

Message Popup 1.PNG

 

Then Modify the Properties -> Post Actions to use the following custom condition (Step.Result.ButtonHit == 2) to goto cleanup :

 

Message Popup 0.PNG

 

Regards,

 

Charlie

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

Message 2 of 2
(3,085 Views)