Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Ignoring regex on a parameter(Parameter of =PHONENUMBER with a value of +35254646545 fails on test check)
Ignoring regex on a parameter [message #1704136] Fri, 07 August 2015 14:44 Go to next message
Thomas Mortimer is currently offline Thomas MortimerFriend
Messages: 18
Registered: July 2015
Junior Member
Hi all,

I have a test case that accepts a parameter of =PHONENUMBER and I use it for two things. First I use it to input text into a textfield, afterwards that text gets sent to the server and it replies with a message, which is put into a tableview.

I then have a check of that tableview looking in the column phone number for the value of =PHONENUMBER. These should be the same value.

The test works fine if I enter a number, like 564654654. But if I enter an international number, like +3524666445252, it fails on the check, with the error message:
Error Description "+3524666445252" is not a regular expression

I've attempted to escape the + by surrounding the parameter =PHONENUMBER with angled brackets, single quotes and I've also done the same on the defined value of +3524666445252, but none of these seem to work.
Is there another method I should be using to escape the + character?

Details on stuff I'm using:
Jubula version: 8.1.6.023
I've attached the test xml file

Let me know if you'd like more information

Regards,
Tom
Re: Ignoring regex on a parameter [message #1704955 is a reply to message #1704136] Tue, 11 August 2015 06:11 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Thomas,

Is it necessary that the check uses "matches" as an operator? What happens if you use "equals"?

Best regards,
Alex
Re: Ignoring regex on a parameter [message #1704957 is a reply to message #1704955] Tue, 11 August 2015 06:19 Go to previous messageGo to next message
Thomas Mortimer is currently offline Thomas MortimerFriend
Messages: 18
Registered: July 2015
Junior Member
Thanks for the advice Alexandra, that works fine. Do you have a list somewhere of how the different operators behave? I've been following the cheat sheets and they've always used matches so far, so I replicated that. I would like to know the difference between them, if that is possible?
Thanks for the help!
Tom
Re: Ignoring regex on a parameter [message #1704958 is a reply to message #1704957] Tue, 11 August 2015 06:22 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Tom,

Glad that works! The operator parameter is described in the reference manual: http://help.eclipse.org/mars/topic/org.eclipse.jubula.client.ua.help/content/html/reference/parameters/operator.html?cp=44_2_44
Information about working with matches is here: http://help.eclipse.org/mars/topic/org.eclipse.jubula.client.ua.help/content/html/userManual/tasks/useMatchingAndRegex/using-matching-and-regex.html?cp=45_2_39

The reference manual also contains action and other parameter descriptions.

Hope that helps!
Alex
Previous Topic:Conflict with the component names
Next Topic:Writing jubula tests in java
Goto Forum:
  


Current Time: Sat Jul 27 05:02:05 GMT 2024

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

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

Back to the top