Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » How to use if condition with a label
How to use if condition with a label [message #1794014] Wed, 22 August 2018 12:47
Angelo Sala is currently offline Angelo SalaFriend
Messages: 2
Registered: August 2018
Junior Member
starting from the fact that I'm not a programmer and that I've been using RCPTT for a couple of weeks I would like to submit to you the following "problem".
I have a label that can have multiple values ("Stopped" in the image in attach that can have also "Idle" as a value) and I would like to use the if condition like "if the value of the statement is Stopped then push the button "Start in standard mode" otherwise go ahead".
Given that, reading the documentation, if the statement is false I receive back an error I cannot do something like this:

if [get-label "Stopped" |get-property caption| eq "Stopped"]{
get-button "Start in standard mode" | click }

Do you have any suggestion?Is there a better statement to use instead of "if"?

I'm a rookie but I really would like to learn how to use RCPTT.

Thanks to everyone that can help me,

  • Attachment: Capture.PNG
    (Size: 3.07KB, Downloaded 11 times)
Previous Topic:How to use if condition with a label
Next Topic:Added application's functions/options missing (Toolkit)
Goto Forum:

Current Time: Sat Nov 17 23:58:27 GMT 2018

Powered by FUDForum. Page generated in 0.02331 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top