Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Wrong Button clicked(Test Case clicks different button than mapped)
Wrong Button clicked [message #1857541] Tue, 14 February 2023 15:41 Go to next message
Mike Bray is currently offline Mike BrayFriend
Messages: 60
Registered: May 2019
Member
I have a SWING application which has a tab pane. This tab pane can have 2 or 3 tabs depending on user choice. At the bottom of the screen is a number of buttons which can be invisible or not depending on the tab being displayed.

see enclosed file objectmapping issue QL.png

I have a test case that is for a particular set up (number of tabs and buttons) where I have mapped the component name/technical name to a particular button. The correct text shows up in the Object Mapping screen.

i.e
Button Component ("Close")
closebtnsec

However when I run the test in a test suite it clicks on the button before it.

See enclosed file objectmapping issue jubula.png

Are ComponentName/Technical Name/object mapping unique to an AUT or does is combination this common to all AUTs?

If I delete all of the technical names from my AUT will it affect the other AUTs?


Mike Bray
Re: Wrong Button clicked [message #1858998 is a reply to message #1857541] Thu, 04 May 2023 22:29 Go to previous messageGo to next message
Milos Hroudny is currently offline Milos HroudnyFriend
Messages: 24
Registered: June 2017
Junior Member
Hi Mike, I do not know whether you still have the reported problem but I try to share my experience.
Object mapping can be a little bit tricky.
By my opinion the reason could be the used heuristics.
If you prepare your test case and go to the screen of an application
you usually get proper component object mapping.
Anyway if you prepare some steps of the test case,
it can happen that the previously mapped object
is not found as required. From this reason I suggest
to let run the test case through test steps till the
moment when you need to click the mapped object.
At this point switch on object mapping functionality,
move mouse over your tab that shoul be clicked
and when the tab is green marked repeat your
mapping. There are to possible cases here.
1.There is marked your previously mapped component
in the list of mapped components by green or yellow
point. In this case your mapping should work.
If not, try execute all test cases in a suite with
the actually developed TC as the last one and repeat
attempt to map object.
2.Even though you mapped already the object
in the past, after object mapping is created a new
technical object. In this case you should use the new
mapped object to reach your object.
You can also revert the steps. With switched on
object mapping move your mouse pointer over
originally mapped object in mapper and select context
menu to show the object in the application. I expect
that there is green rectangle on other tab than you
want. If yes, make a new mapping. By my experience
the visually same screen can produce for some
objects different mapping for different previous
conditions/steps. From this reason is also good idea
to introduce some structure in your object mapping
and not keep all mapped objects in one list.
On the other hand you do not need always destroy
previously prepared mapping. Just use new unique
logical name, map it to the new found technical
name and this new mapped object move to some
proper folder in the mapped objects structure.
Hopefully my hint helps.

[Updated on: Thu, 04 May 2023 22:52]

Report message to a moderator

Re: Wrong Button clicked [message #1859000 is a reply to message #1858998] Fri, 05 May 2023 05:21 Go to previous messageGo to next message
Mike Bray is currently offline Mike BrayFriend
Messages: 60
Registered: May 2019
Member
Hi Milos
Thank you for the detailed reply. I have now finished my testing. I know Object Mapping is a bit of a black art. Since Bredex has stopped support for Jubula I have taken the source and built it so I can upgrade it to the latest java version and then start to look at improving the Object Mapping. We will see.
Regards
Mike
Re: Wrong Button clicked [message #1859002 is a reply to message #1859000] Fri, 05 May 2023 06:28 Go to previous message
Milos Hroudny is currently offline Milos HroudnyFriend
Messages: 24
Registered: June 2017
Junior Member
I wish you good luck with your Jubula update
My biggest problem with Jubula was that it moves
mouse very slow in Java16+ application. I switched off
mouse as recommended in some posts and it really
helped. I also tried WindowsDriver and Selenium but
the problem was in object mapping with Microsoft tool.
It did not see some objects and from this reason I tried
Jubula with switched off mouse and I can live with it.
Previous Topic:Unable to install Jubula and getting and getting Error
Next Topic:Jubula with JDK17
Goto Forum:
  


Current Time: Sun Oct 06 10:54:13 GMT 2024

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

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

Back to the top