Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Object Mapping
Object Mapping [message #699620] Thu, 21 July 2011 19:32 Go to next message
dee.baliga is currently offline dee.baliga
Messages: 11
Registered: July 2011
Junior Member
I want to insert text into two different textboxes (username and email) in an HTML app but when I perform object mapping, nn_nn_cti maps to the same textbox...Is there something I can do to avoid this?
Re: Object Mapping [message #699863 is a reply to message #699620] Fri, 22 July 2011 09:56 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1092
Registered: July 2009
Senior Member
Hi,

If the technical name for both components is being identified as the same thing, then you could either try altering the object mapping configuration:
http://help.eclipse.org/indigo/topic/org.eclipse.jubula.client.ua.help/html/manual/node161.html

The better way, though, would be to use a unique identifier for the components. You can tell Jubula which identifier you're using as a part of the AUT configuration.

See:
http://help.eclipse.org/indigo/topic/org.eclipse.jubula.client.ua.help/html/manual/node280.html

and

http://help.eclipse.org/indigo/topic/org.eclipse.jubula.client.ua.help/html/manual/node73.html

for more details on this.

Hope that helps!

Alex
Re: Object Mapping [message #700158 is a reply to message #699863] Fri, 22 July 2011 18:58 Go to previous messageGo to next message
dee.baliga is currently offline dee.baliga
Messages: 11
Registered: July 2011
Junior Member
I'm still not able to get around this problem. My two textfields are named Login and password and despite adding these ids in the expert configuration, its considering it to be the same component. Is there something else that I need to modify?
Re: Object Mapping [message #701445 is a reply to message #700158] Mon, 25 July 2011 02:02 Go to previous message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1092
Registered: July 2009
Senior Member
Hi,

Just to clarify - did you add the IDs in the expert configuration, or did you declare the tag you are using to give IDs? From your post it sounds like you have entered the IDs themselves (login, password), but it is the tag for the IDs that needs to be entered. For example if your attribute name (tag) is "testid" (e.g. "<div testid=''Username''></div>") then you would enter testid in the AUT configuration. You will need to restart the AUT for the changes to take place.

Regards,
Alex
Previous Topic:[solved] Table test
Next Topic:Problem Object Mapping Open/New File Menus
Goto Forum:
  


Current Time: Fri Jul 25 05:02:57 EDT 2014

Powered by FUDForum. Page generated in 0.01606 seconds