Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » why regex expression doesn't apply (regex expression failed in verification.)
why regex expression doesn't apply [message #1725037] Mon, 29 February 2016 09:43 Go to next message
stewart nguyen is currently offline stewart nguyenFriend
Messages: 7
Registered: February 2016
Junior Member
Can anyone help me?
I want to use regex expression which mean the result should match with all number char like this:

my scripts:
get-eclipse-window -index 1 | get-editor "s.*:demo_test" | get-text-viewer | get-property text
| equals " <session_id>/[0-9]</session_id>"

string to compare: <session_id>01234</session_id>

actual: <session_id>/[0-9]</session_id>

as you can see, the "get-editor" i can use .* regex to claim: any character between "s" & ":demo_test" is acceptable, and that situation is successful with RCP. However, it failed with my "session id" situation. Embarrassed
Re: why regex expression doesn't apply [message #1726471 is a reply to message #1725037] Mon, 14 March 2016 08:22 Go to previous messageGo to next message
stewart nguyen is currently offline stewart nguyenFriend
Messages: 7
Registered: February 2016
Junior Member
Hello, can anyone help me please?
Re: why regex expression doesn't apply [message #1727274 is a reply to message #1726471] Mon, 21 March 2016 16:39 Go to previous messageGo to next message
Andrey Sobolev is currently offline Andrey SobolevFriend
Messages: 75
Registered: February 2015
Member
Hi,

Actually you need to use matches

get-eclipse-window -index 1 | get-editor "s.*:demo_test" | get-text-viewer | get-property text 
| matches " <session_id>/[0-9]</session_id>"


instead of equals.

Best regards,
Andrey.
Re: [SOLVED] why regex expression doesn't apply [message #1727571 is a reply to message #1727274] Thu, 24 March 2016 04:05 Go to previous message
stewart nguyen is currently offline stewart nguyenFriend
Messages: 7
Registered: February 2016
Junior Member
Oh, thank you very much. This is my mistake. It is solved
Previous Topic:I can use the example org.eclipse.rcptt.ecl.example.view on RCPTT IDE
Next Topic:Not able to launch AUT with RCP Test Runner
Goto Forum:
  


Current Time: Thu Mar 28 08:42:24 GMT 2024

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

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

Back to the top