Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Get item text based on the index no. from a table(From a table, get item using the table row or index no.)
Get item text based on the index no. from a table [message #1780219] Thu, 18 January 2018 17:29 Go to next message
noor shiblee is currently offline noor shibleeFriend
Messages: 4
Registered: November 2017
Junior Member
Hello all,

I am doing some exploration in eclipse rcptt tool. I want a suggestion regarding get item text from a table using index no.

while recording, the rcptt tool suggest me the below code:

get-view "Application ID" | get-table | get-item
-path "some dynamic number is shown here. like id 4338934 or id ssdf3434" -index 0
| get-property caption
| contains " Id"
| verify-true

As there is some dynamic number in "path", it can not get item when executed second time.
If i remove the -path from the script, than null pointer problem is shown. I want to get the third row or fourth row of the table based index.

Is there any other way to get the table row data except the rcptt recorder suggest?


Thanks
Re: Get item text based on the index no. from a table [message #1780381 is a reply to message #1780219] Mon, 22 January 2018 04:25 Go to previous message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 109
Registered: March 2017
Senior Member
Hi Noor,

To get item by a pattern try to use '.*' in path: get-view "Application ID" | get-table | get-item -path ".*Id ssdf3434.*"
Previous Topic:get-menu, text includes filepath
Next Topic:check values from table column
Goto Forum:
  


Current Time: Fri Jun 22 03:51:40 GMT 2018

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

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

Back to the top