How to explore the GUI elements of the application under test (AUT) - Eclipse RCP with SWT

27 views
Skip to first unread message

Wladislaw Wagner

unread,
Jul 2, 2014, 3:15:05 AM7/2/14
to robotframework-ec...@googlegroups.com
Hi all,

does anyone has suggestions about how to explore the GUI elements of an application under test (AUT) which is an Eclipse RCP with mostly SWT widgets?
The reason I´m asking is: I do not have access to the code of the application and the developers didn´t give the elements any special IDs so it's hard for me to figure out how to access the desired elements when I'm writing the test case steps. For example: if I want to use the keyword "Find Button" - I need a name of that button. How can I find out the name of the desired button without having to ask the developer?

Thanx in advance

Cheers,
Wlad

Laurent Carbonnaux

unread,
Jul 2, 2014, 8:33:58 AM7/2/14
to robotframework-ec...@googlegroups.com
Hello,

The finders looks for label or id, so if you don't have the id, you can search with the button label, the mnemonicText or by index

Here is the documentation of the finder keyword for Button.
@RobotKeyword("Find the button with the given optionals mnemonic and index\n\n"
            + "Example:\n"
            + "| Find Button | mnemonicText | index |\n"
            + "| Find Button | mnemonicText |  |\n"
            + "| Find Button | index |  |\n"
            + "| Find Button | |  |\n")

It is the same for most of the SWT widgets

Hope it helps,
Laurent.

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "robotframework-eclipselibrary-users".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse robotframework-eclipsel...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages