cancel
Showing results for 
Search instead for 
Did you mean: 

Name mapping with faster timeout or "disconnected" mode

Regular Contributor

Name mapping with faster timeout or "disconnected" mode

I have objects in my web app that are the same-ish. Their children are the same but their properties are different depending on how they are accessed. For instance a "screen" is contained within a panel whose properties are different for inquiry vs update. I am trying to work in Name Mapping, editting the proprties of an item without it taking a really long time to find the desired (but not currently found) item and also allowing all the features like conditional mapping. Is this possible? Thanks

3 REPLIES
Contributor

Re: Name mapping with faster timeout or "disconnected" mode

Use NameMapping.Object.Refresh & NameMapping.Object.RefreshMappingInfo for the code which is changing frequently. So the Object gets refresh to the current state and perform an Action on it.

With Regards
Valla
http://vallatestcomplete.wordpress.com
Community Hero

Re: Name mapping with faster timeout or "disconnected" mode

Not really.  If the object is not currently existant in the system memory, there's not really a way of adding new properties to the object.

You can edit the property values for properties you already have defined, though, without the object being present.  If you have the component up, you can click on the ellipses on the property value to edit the property.

 

propertyedit.png

You can also copy/paste items within NameMapping so you can make a copy of a child object and paste it onto a different parent object.  That will bring over all the properties.  You can then make the property edits from there.  https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/how-...


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.


I’ll be talking about “Hidden Treasures – TestComplete Script Extensions” at #SBConnect in October! Who’s joining me? Click here for tickets
Extensions available
Community Hero

Re: Name mapping with faster timeout or "disconnected" mode


@vallalarasu_p wrote:

Use NameMapping.Object.Refresh & NameMapping.Object.RefreshMappingInfo for the code which is changing frequently. So the Object gets refresh to the current state and perform an Action on it.


Wish I could thumbs down...  but this is not exactly a relevant answer.  @vthomeschoolmom is trying to edit their NameMapping, not refresh the object try in runtime.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.


I’ll be talking about “Hidden Treasures – TestComplete Script Extensions” at #SBConnect in October! Who’s joining me? Click here for tickets
Extensions available
Share Your Stories
Read Latest News
Top Kudoed Authors