Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » "get-item -path" reqular expressions not working
"get-item -path" reqular expressions not working [message #1771954] Fri, 01 September 2017 13:19 Go to next message
Zbyszek Kieliszek is currently offline Zbyszek KieliszekFriend
Messages: 12
Registered: April 2017
Junior Member
Let's have a look at following script:

get-editor | get-section Licenses | get-table | select "Trial \\[0 of 0 remaining\\]" | click
get-editor | get-section Licenses | get-table | select "Trial \\[.* of 0 remaining\\]" | click
get-editor | get-section Licenses | get-table | get-item -path "Trial \\[0 of 0 remaining\\]" | check
get-editor | get-section Licenses | get-table | get-item -path "Trial \\[.* of 0 remaining\\]" | check

First 3 lines are working fine. Question is, why the last line is causing error?

The Item "[Trial \[.* of 0 remaining\]]" could not be found.
at get-item (/Project/test.test:4)

It seems that there is a bug in regular expressions implementation for get-item -path

PS. following versions are also not working:
get-editor | get-section Licenses | get-table | get-item -path "Trial \\[. of 0 remaining\\]" | check
get-editor | get-section Licenses | get-table | get-item -path "Trial \\[* of 0 remaining\\]" | check
get-editor | get-section Licenses | get-table | get-item -path "Trial [.* of 0 remaining]" | check
get-editor | get-section Licenses | get-table | get-item -path "Trial [. of 0 remaining]" | check
get-editor | get-section Licenses | get-table | get-item -path "Trial [* of 0 remaining]" | check

[Updated on: Fri, 01 September 2017 13:37]

Report message to a moderator

Re: "get-item -path" reqular expressions not working [message #1772141 is a reply to message #1771954] Wed, 06 September 2017 03:37 Go to previous message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 109
Registered: March 2017
Senior Member
Hi Zbyszek,

I cannot reproduce your problem. Could you provide a report (rcptt report or html)? If you use RCPTT IDE, you can generate it after test execution by clicking on 'Report' button in Execution View.

Regards,
Viktoria
Previous Topic:NPE when capturing Launch context
Next Topic: Could not validate integrity of the runner
Goto Forum:
  


Current Time: Tue Jun 19 22:24:17 GMT 2018

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

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

Back to the top