Ask a Question

Add one object with Two Name

SOLVED
MadGrb
Contributor

Add one object with Two Name

Good Day,
our Desktop application is in developing procidure, therefor there is too many mistakes.

For example, there is two window with same Caption.

So, I want to add one Object with Two diffrent name in mapping table.
How can I do it?

Look our app mistake

 

0.JPG

6 REPLIES 6
BenoitB
Community Hero

Perhaps use aliases ?

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/how-...

 

Or perhaps this thread could help to (apparently the opposite of your problem but some good info):

https://community.smartbear.com/t5/TestComplete-Desktop-Testing/Two-diffrents-objects-with-same-name...

Un sourire et ça repart

TanyaYatskovska
SmartBear Alumni (Retired)

Hi @MadGrb

I think you need to play with the Required Children feature. It will allow you to specify children objects that must be on window 1 and window 2. This will help you map these windows for sure. Please refer to the following article for more information:

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/requ...

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



Thanks to all,

Now I have a window that have just one child, but her caption is like 5 more window.
I want to recognize a Window not from Caption but from Header. As well the Header is in 4 lower Child.

what can I do about this problem.

TanyaYatskovska
SmartBear Alumni (Retired)

Hi again,

Perhaps, the extended search will work:

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/exte...

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



Many Thanks for @TanyaYatskovska  and @BenoitB 

 

Finaly I find solution, I have copy object with new childs as new name then she works.

TanyaYatskovska
SmartBear Alumni (Retired)

That's great to here, @MadGrb!

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: