Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » How to check multiple line text in jubula?(Checking multip0le line text in jubula)
How to check multiple line text in jubula? [message #1007023] Mon, 04 February 2013 06:01 Go to next message
Rajesh Dash is currently offline Rajesh DashFriend
Messages: 35
Registered: January 2013
Member
I am checking the text of of my rcp application with jubula but it always gives failed result.I have attached the application image and text on its text box.(note- text has multiple line ). Suppose the textbox have only 11 but it is giving failed result.I have tried with matches it is giving failure but with simple match and wildcard * it is passing.Can anyone tel me what is the problem.
Re: How to check multiple line text in jubula? [message #1007240 is a reply to message #1007023] Tue, 05 February 2013 08:25 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi,

Based on the images, you are using * in combination with "matches". If you want to have a wildcard for "any number of any characters", then you should use .* with matches.

HTH,
Alex
icon14.gif  Re: How to check multiple line text in jubula? [message #1007292 is a reply to message #1007240] Tue, 05 February 2013 11:59 Go to previous messageGo to next message
Rajesh Dash is currently offline Rajesh DashFriend
Messages: 35
Registered: January 2013
Member
Sorry for the mistake .. But what about these gap and mutiple line text in the text field.And how can i check for around 100 no of times as the datas are coming from transmitter for around infinite no of times so i have atleast check 100 times whether the data are correct or not.Is there any way to check data for n times (n is integer value)


example
11 23 34 56 78 78 90
11 23 34 56 78 78 90
11 23 34 56 78 78 90
11 23 34 56 78 78 90

suppose these type of data will come i have to ensure that these are correct data .is there any wildcard to check it for n times or till transmitter fail to transmit
.

Thanks for your response
Re: How to check multiple line text in jubula? [message #1007480 is a reply to message #1007240] Wed, 06 February 2013 05:34 Go to previous messageGo to next message
Rajesh Dash is currently offline Rajesh DashFriend
Messages: 35
Registered: January 2013
Member
Thanks for support alex ...One more thing can it possible to check the data which are coming continuously from transmitter
like 11 12 14 15 16
11 12 14 15 16
11 12 14 15 16
.....................
here i want to check the all the lines so i am checked with (11 12 14 15 16.*//n).* and also (11 12 14 15 16.*//n)* but both are not working.How can i handle such type of test cases.

[Updated on: Wed, 06 February 2013 09:12]

Report message to a moderator

Re: How to check multiple line text in jubula? [message #1007490 is a reply to message #1007480] Wed, 06 February 2013 07:29 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Rajesh,

For your first question - "n" times is difficult. You usually have to either:
- Know how many times, or
- Have something you can check in advance to tell you that more actions need to be done. Then you can work with retry event handlers. One example is:

"Close any open tabs"
- Check that tab with index 1 does not exist
-- If it does, an Event Handler is activated that closes index 1.
-- This check can be repeated (not quite "n" times, but you can set it to a high number that will always cover your "n").

This kind of construct only works if there is something binary that you can check where you can do an action until the condition is switched (in the case above, from false to true).

For the other question - yes, you can use the drag and drop actions (use the ones on graphics component). They are described in the reference manual.

Just a tip : If you have questions that are non-related to a specific thread, it's more helpful to post them in a new thread.

Best regards,
Alex
Re: How to check multiple line text in jubula? [message #1007512 is a reply to message #1007490] Wed, 06 February 2013 09:26 Go to previous messageGo to next message
Rajesh Dash is currently offline Rajesh DashFriend
Messages: 35
Registered: January 2013
Member
Thanks for support alex ...One more thing can it possible to check the data which are coming continuously from transmitter
like 11 12 14 15 16
11 12 14 15 16
11 12 14 15 16
.....................
here i want to check the all the lines so i have checked with (11 12 14 15 16.*//n).* and also (11 12 14 15 16.*//n)* but both are not working.How can i handle such type of test cases.
Re: How to check multiple line text in jubula? [message #1007698 is a reply to message #1007512] Thu, 07 February 2013 08:06 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Rajesh,

My knowledge of regex is pretty limited, but I do think that a good regex could help you here. I'm fairly sure you can't use \n for a newline, so that's probably the reason why the test is failing at the moment.

I saw in one of your images in another thread that you were working with repetition amounts in the regex - that could be a way of getting this to work. Bear in mind that you will need to use matches, and not simple match to do complex regular expressions like this.

HTH,
Alex
Previous Topic:Same AUT Definition for multiple Projects / etc.
Next Topic:test rcp application
Goto Forum:
  


Current Time: Fri Oct 04 01:36:24 GMT 2024

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

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

Back to the top