Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Ganymede TPTP 4.5 - Items in context menu
Ganymede TPTP 4.5 - Items in context menu [message #133110] Wed, 23 July 2008 11:48 Go to next message
Eclipse User
Originally posted by: jakrezni.cz.ibm.com

Hi,
I try to get familiar with TPTP. I went through the official tutorial but
IŽm not sure about some things...

For example: IŽd like to ensure that some specific items are available in
the context menu when I click on a node of some project tree (itŽs an
eclipse plugin IŽd like to test)...or to test that some values are present
in a dropdown.

Could you please give me some hint where to start?

Regards, Jakub
Re: Ganymede TPTP 4.5 - Items in context menu [message #133188 is a reply to message #133110] Thu, 24 July 2008 10:27 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Hi Jakub,
Are you interested in testing for items in a context menu or drop down?
I would suggest using the AGR:

http://www.eclipse.org/tptp/home/downloads/?ver=4.5.0#AsIsCo mponents

Here is some documentation:

http://www.eclipse.org/tptp/test/documents/gettingstarted/Au tomated_GUI_Recorder_Getting_Started.html#3.0

Note, the AGR is an as-is component.

Paul
"Jakub Reznicek" <jakrezni@cz.ibm.com> wrote in message
news:2dd11b8f5bb15ca46c6fbd1b99a6f8e7$1@www.eclipse.org...
> Hi,
> I try to get familiar with TPTP. I went through the official tutorial but
> I
Re: Ganymede TPTP 4.5 - Items in context menu [message #133476 is a reply to message #133188] Tue, 29 July 2008 10:56 Go to previous messageGo to next message
Eclipse User
Originally posted by: jakrezni.cz.ibm.com

Hi,

thanks for your answer...IŽve tried AGR before but IŽm not sure it can
solve my problem. IŽll ask again in a different way: I have a dropdown and
IŽd like to test whether it contains some specific items (for example:
when I test it it contains 5 concrete items...later when I run the test
again it contains just 3 items or 5 items but different than before)...is
it possible to do that?

Thanks in advance, Jakub
Re: Ganymede TPTP 4.5 - Items in context menu [message #133489 is a reply to message #133476] Tue, 29 July 2008 11:25 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Hi Jakub,
Using the AGR, you cannot test the contents of a context menu. However,
you can test the contents of a drop-down (e.g combo box), by setting a
verification on the org.eclipse.ui.IEditorPart, org.eclipse.ui.IViewPart, or
org.eclipse.swt.widgets.Shell containing the drop-down:

http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI-4-5-0.html#2.3

Paul
"Jakub Reznicek" <jakrezni@cz.ibm.com> wrote in message
news:dd32b61ed67ba58256da34c6b70c6004$1@www.eclipse.org...
> Hi,
>
> thanks for your answer...I
Re: Ganymede TPTP 4.5 - Items in context menu [message #133710 is a reply to message #133489] Mon, 04 August 2008 11:39 Go to previous message
Eclipse User
Originally posted by: jakrezni.cz.ibm.com

Hi,
thanks for your help, but finaly I did this:

For example IŽd like to test the presence of "Properties" and "Import..."
items in the context menu when I right click the "Java project", then itŽs:

...
<command type="focus" contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="org.eclipse.swt.widgets.Composite#1"/>

<command type="focus"
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"
contextId="popup/view/org.eclipse.jdt.ui.PackageExplorer/{{/}}-{{1.0}} "
widgetId="{{Properties&amp;#x9;Alt+Enter}}-{{1.0}}"/>

<command type="focus"
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"
contextId="popup/view/org.eclipse.jdt.ui.PackageExplorer/{{/}}-{{1.0}} "
widgetId="{{Import...}}-{{1.0}}"/>
...


This is enough for me - I get an error if itŽs not possible to locate some
item.

Thanks for all your help, Jakub
Previous Topic:Listen to Agent Control View "Set" check box
Next Topic:Profile using TPTP gives CoreException The process launcher seems to be inactive
Goto Forum:
  


Current Time: Sat Oct 25 14:40:33 GMT 2014

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

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