Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » How to check a part of Text on TextComponent(I need some help to get success !!)
icon5.gif  How to check a part of Text on TextComponent [message #1383876] Mon, 26 May 2014 15:54 Go to next message
Plinio Froener is currently offline Plinio FroenerFriend
Messages: 13
Registered: May 2014
Junior Member
Hi all,

Jubula recognized an Text Component and got this text from the component:
</head>
<body>
<h1>
Installation Path
</h1>
<div class="body">
C:\Program Files\DmView
</div>
<h1>
Chosen Installation Feature
</h1>
<div class="body">
Enterprise Server
</div>
<h1>
Chosen Installation Packs
</h1>
<div class="body">
Core<br>Nms Services<br>Database Server<br>Web Server<br>Jdk 1.6.0_14<br>Apache
Ant 1.9.2
</div>
</body>
</html>


I want check only a part of this, E.G. C:\Program Files\DmView.
I'm trying the "Check Text" Action Type, and changing the Operator to "matches" and specifying the "Text" like .*C:\\Program Files\\DmView.*

Could you help me?


Thanks in advanced,

Plinio
Re: How to check a part of Text on TextComponent [message #1383956 is a reply to message #1383876] Tue, 27 May 2014 12:20 Go to previous messageGo to next message
Dominik Gabriel is currently offline Dominik GabrielFriend
Messages: 113
Registered: June 2013
Senior Member
have u tried to use "simple match" with *'C:\Program Files\DmView'*. i usually use this
Re: How to check a part of Text on TextComponent [message #1383990 is a reply to message #1383956] Tue, 27 May 2014 17:24 Go to previous messageGo to next message
David Hickernell is currently offline David HickernellFriend
Messages: 85
Registered: October 2012
Member
Yes, Dominik's solution should work; I believe the reason your check with the "matches" operator did not work is that, in typical regular expression syntax, "." does not match a newline. It would probably work if your RE were something like:
(.*\n)*.*C:\\Program Files\\DmView.*(\n.*)*
Re: How to check a part of Text on TextComponent [message #1384002 is a reply to message #1383990] Tue, 27 May 2014 19:23 Go to previous message
Plinio Froener is currently offline Plinio FroenerFriend
Messages: 13
Registered: May 2014
Junior Member
It´s working fine! Thank you for All.
Previous Topic:Observation Mode - Wait for Window to Close
Next Topic:Is there a way to disable logging?
Goto Forum:
  


Current Time: Tue Apr 23 12:45:11 GMT 2024

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

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

Back to the top