Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Left Click operation on a pop up menu(Left Click operation on a pop up menu)
Left Click operation on a pop up menu [message #886085] Thu, 14 June 2012 08:10 Go to next message
Anu J is currently offline Anu JFriend
Messages: 18
Registered: June 2012
Junior Member
Hi,

This is my operation flow:

1) Right Click on a node in a tree.
2) A pop up menu gets displayed with a number of operations.
3) LEFT click on any one of the option on the pop up menu.
4) Check something in the output.

These are the commands I am using:
ub_tre_selectNode_byTextpath
ub_grc_clickRight_single

My question is how can I perform a single left click operation on any one item
from the pop up menu which is displayed which I right clicked it?

I am unable to select any option from the "right click poppped up" menu.

Please tell me if my question is not clear.I will rephrase it.

Thanks.


Re: Left Click operation on a pop up menu [message #886087 is a reply to message #886085] Thu, 14 June 2012 08:13 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1262
Registered: July 2009
Senior Member
Hi,

This question was already answered in my message in the previous thread..

Best regards,
Alex
Re: Left Click operation on a pop up menu [message #886108 is a reply to message #886087] Thu, 14 June 2012 09:08 Go to previous messageGo to next message
Anu J is currently offline Anu JFriend
Messages: 18
Registered: June 2012
Junior Member
Hi Alex,

I referred

help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jubula.client.ua.help%2Fhtml%2Freference%2Fnode11.html

In section Select Context Menu Entry by Textpath,

•Jubula realises this by:
◦Right-clicking in the component, at the place where the cursor currently is.
◦Navigating to the menu item specified.
◦Left-clicking on the menu option.

I just want to confirm, it means that if we want to select an option from a right click pop up menu, we just need to use "ub_grc_selectContextMenuEntry_byTextpath" ONLY.

If this is the case, where should I specify which option should be left clicked from the pop up menu. There are only three parameters TEXTPATH,OPERATOR,MOUSE_BUTTON.(As there are a number of options)

Please clarify.
Re: Left Click operation on a pop up menu [message #886113 is a reply to message #886108] Thu, 14 June 2012 09:19 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1262
Registered: July 2009
Senior Member
Hi,

yes, that is the action. If you read further in the description, you will see the list of parameters and what is expected for each one.

Best regards,
Alex
Re: Left Click operation on a pop up menu [message #886123 is a reply to message #886113] Thu, 14 June 2012 09:38 Go to previous messageGo to next message
Anu J is currently offline Anu JFriend
Messages: 18
Registered: June 2012
Junior Member
Hi Alex,

Sorry, but I dont get what you`re saying.

The current status is that the tool is right clicking the desired menu item and just stops there.

AS I mentioned in my previous post, there are only three parameters to be input:

TEXTPATH = Path to the node which should be left clicked(after right click)
OPERATOR = equals
MOUSE_BUTTON = 3

But if I give the above values, then it stops with the right click operation.

How should I initiate the left click operation?

Sorry but is there something Im missing out?
Re: Left Click operation on a pop up menu [message #886158 is a reply to message #886123] Thu, 14 June 2012 10:59 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1262
Registered: July 2009
Senior Member
You need to first select the node on the tree, then select from the context menu.
The cheat sheet I mentioned in the other thread has exactly this example in it, so I would recommend doing the cheat sheet to learn how this aspect works.

HTH,
Alex
Re: Left Click operation on a pop up menu [message #886462 is a reply to message #886158] Fri, 15 June 2012 01:17 Go to previous messageGo to next message
Anu J is currently offline Anu JFriend
Messages: 18
Registered: June 2012
Junior Member
Ok. I got it working.

Thanks.
Re: Left Click operation on a pop up menu [message #1644221 is a reply to message #886158] Mon, 02 March 2015 00:26 Go to previous messageGo to next message
Rebecca Smith is currently offline Rebecca SmithFriend
Messages: 2
Registered: February 2015
Junior Member
Hi,
I am having a similar issue. I have looked at the other threads, as well as the cheat sheet, and my test continues to die trying to select the context menu item. I am running Jubula 8.1 stand alone against an RCP application. I've received a variety of error messages back, ranging from "Timeout received before confirming the posted event" to "Context Menu not found". I am not sure why it fails to find the menu option.

I have also tried both select by textpath and select by index, hoping one would work, but no luck.

Attached is the screenshot from Jubula. It appears to be getting the context menu to display, but fails to select anything. The cursor never moves onto the menu, so nothing ever gets selected. I tried a few times to export the test results details, but the tool never output anything to the paths provided.


Any help or suggestions are appreciated!
Thanks!
Becky
Re: Left Click operation on a pop up menu [message #1645582 is a reply to message #1644221] Mon, 02 March 2015 15:39 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1262
Registered: July 2009
Senior Member
Hi Becky,

Thanks for the image and the information. If I understand correctly, you're doing the following actions:

- select from the tree
- select from context menu

Is that correct?

Without seeing the test results, it's hard to guess what might be the cause, but here are some suspicions:
- Which mouse button are you using to open the context menu? It should be '3'
- Which actions are you using exactly?
- Which version of Java are you using, and which version of Eclipse (and is it pure or with compatibility layer)?

To get the test result details, you should be able to:
- Export the test results from the reporting perspective
- Or, you can configure in the preferences that a test should write a HTML report to the place you specify (this can be found in the test result preferences)
- If all else fails, take a screenshot of the test specification and provide the parameters you are using / attach the project if you can

Best regards,
Alex
Previous Topic:Mark tests as nonrelevant by default
Next Topic:JAVAGIT plugins isn't recognized
Goto Forum:
  


Current Time: Mon Mar 02 20:51:03 GMT 2015

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

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