Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » "Generic" item selection from a tree(item selection)
"Generic" item selection from a tree [message #1801511] Mon, 21 January 2019 13:09 Go to next message
Pascal Bontempi is currently offline Pascal BontempiFriend
Messages: 2
Registered: January 2019
Junior Member

I´m currently trying to get several items from a tree using a list.

As you can see in the "itemSelection.png" i am looping over a list of different items
("item0" "item1" "item2") ignoring "item0" and concatenating "item1" and "item2" to "item1 item2" (they have the form: ".*/item{i}").

So it would look like: "".*/item1" ".*/item2""

Now i want to use the command "select" to select both items in a tree.

When i try this an error message occurs:

"Insuffitient parameter count for feature 'control' at select".

Could you please help me with this?
Re: "Generic" item selection from a tree [message #1802024 is a reply to message #1801511] Thu, 31 January 2019 05:41 Go to previous message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Hello, Pascal

I suppose the following steps could help you:

1. Put get-tree right before select and delete with get-tree in the beginning of ECL snippet.
2. Extract [emit $list | str] to variable.

Take a look at the following snippet. It works fine:
let [val len [emit 2]] {
	loop [val i 1] [val list ""] {
		if [$i | eq $len] {
			let [val item [concat "TestProject/" [emit $list | str]]] {
				get-view "Test Explorer" | get-tree | select $item
		} -else {
			recur [$i | plus 1] [concat $list [emit hh | $i]]

Please try and let me know if it helps.

Yours sincerely,
Previous Topic:Unable to restart my AUT (Elexis)
Next Topic:How to press 2 buttons at the same time
Goto Forum:

Current Time: Sun Jul 21 18:02:34 GMT 2024

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

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

Back to the top