Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » My Javafx AUT tab name will keep changing dynamically(Javafx AUT tab name will keep changing dynamically)
My Javafx AUT tab name will keep changing dynamically [message #1754559] Mon, 20 February 2017 09:18 Go to next message
OM Jami is currently offline OM JamiFriend
Messages: 33
Registered: February 2017
Member
Hi,

In my JavaFx application I am performing GUI automation testing using Jubula.
How do we test for the existence of a tab whose name keeps on changing when ever we open it.
Only the first 4 characters of the Tab tile will remain constant, other characters will change.
Can some one suggest me how to check for existence of the Tab.
Because in the Action check -> Existence of Tab by value -> has options like equals, not equals, simple match but there is no option like contains string value.



Regards,
Om
Re: My Javafx AUT tab name will keep changing dynamically [message #1754642 is a reply to message #1754559] Tue, 21 February 2017 09:37 Go to previous messageGo to next message
Marcel Hein is currently offline Marcel HeinFriend
Messages: 12
Registered: February 2014
Junior Member
Hi Om,

you can use the match option which excepts regular expressions: https://en.wikipedia.org/wiki/Regular_expression. To check wether a certain sequence is part of a string you can use: .*string.*

Regards,
Marcel
Re: My Javafx AUT tab name will keep changing dynamically [message #1754643 is a reply to message #1754642] Tue, 21 February 2017 09:46 Go to previous messageGo to next message
OM Jami is currently offline OM JamiFriend
Messages: 33
Registered: February 2017
Member
Hi Marcel,

Can you please explain me the steps to do that.

Thanks,
OM

[Updated on: Tue, 21 February 2017 09:47]

Report message to a moderator

Re: My Javafx AUT tab name will keep changing dynamically [message #1754646 is a reply to message #1754643] Tue, 21 February 2017 09:55 Go to previous messageGo to next message
Marcel Hein is currently offline Marcel HeinFriend
Messages: 12
Registered: February 2014
Junior Member
For actions like "Existence of Tab by value" you can select an operator in addition to entering a string to check. To use regular expressions you have to select the operator matches and enter a regular expression in the value field, e.g. .*string.*
Re: My Javafx AUT tab name will keep changing dynamically [message #1754647 is a reply to message #1754646] Tue, 21 February 2017 09:59 Go to previous message
OM Jami is currently offline OM JamiFriend
Messages: 33
Registered: February 2017
Member
Thanks Marcel, Got it ! Smile
Previous Topic:AUT not getting started with swing application in linux
Next Topic:Problem with oracle database
Goto Forum:
  


Current Time: Sun Sep 23 12:26:12 GMT 2018

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

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

Back to the top