Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » [SOLVED WITH WORKAROUND]Error when I try to emulate mouse right button click on the table(#mouse #right_click #table #error #Insufficient_parameters_count_for _feature_control)
icon5.gif  [SOLVED WITH WORKAROUND]Error when I try to emulate mouse right button click on the table [message #1710823] Fri, 09 October 2015 14:20 Go to next message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

Dear all,
I need to run a right mouse button click on a table line to open a menu'.

This is the portion of code that select the line

get-items | foreach [val item] {
if [$item | get-property "values['Description']" -raw | matches [concat $prop1 $reference $prop3] ]
{
$item | select-item

}

The problem is when I use the mouse methods RCP TT is stopped.

Example:
get-items | foreach [val item] {
if [$item | get-property "values['Description']" -raw | matches [concat $prop1 $reference $prop3] ]
{
$item | select-item
mouse-press 77 311 button3 -height 689 -width 413
}
}

return the following error:
index.php/fa/23502/0/

Let me know.
Thank you guys



"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova

[Updated on: Mon, 12 October 2015 10:39]

Report message to a moderator

Re: Error when I try to emulate mouse right button click on the table [message #1710968 is a reply to message #1710823] Mon, 12 October 2015 05:33 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Angelo,

Could you please attach a script which is recorded by RCPTT when you launch a menu on a table-cell?

I'm just wondering, why don't you use 'get-menu' command instead of mouse-click.

I've just tried on a tree and it works ok for me:

get-view "Test Explorer" | get-tree | get-items | foreach [val item] {
	if [$item | get-property caption -raw | eq P3] {
		$item | select-item | get-menu "New/Other..." | click
	}
}


Kind regards,
Ulyana.
Re: Error when I try to emulate mouse right button click on the table [message #1711010 is a reply to message #1710968] Mon, 12 October 2015 10:38 Go to previous message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

Hi Ulyana,
Thank you for your message.
I use a different way below my source code.

   get-items | foreach [val item] 
          {         
                   if [$item | get-property "values['Description']" -raw | matches [concat $prop1 $reference $prop3] ] 
                  {
                       global [val counter [plus  1 $counter]] -override
                       $item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals Ready | verify-true
                       $item | select-item | get-menu Claim | click
                       $item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals Reserved | verify-true
                       $item | select-item |get-menu Release | click
                       $item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals Ready | verify-true
                       $item | select-item | get-menu "Claim and Start" | click
                       $item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals InProgress | verify-true
                       $item | select-item | get-menu Stop | click
                       $item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals Reserved | verify-true
                       $item | select-item | get-menu Start | click
                       $item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals InProgress | verify-true
                       $item | select-item  | get-menu Stop | click
                       $item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals Reserved | verify-true
                       $item | select-item  | get-menu Release | click
                       $item | get-property "getParent().getItems().TableItem[0].getData().getStatus().getStatus()" -raw | equals Ready | verify-true                   
                  } 
                
        }  


"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
Previous Topic:Force Wait for a Progress Job to complete
Next Topic:Record System Windows events
Goto Forum:
  


Current Time: Fri Apr 26 23:35:19 GMT 2024

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

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

Back to the top