Ask a Question

MFC application testing

SOLVED
Michal_Ignaczak
Occasional Contributor

MFC application testing

Hello, 

 

During creating many functionalities inside our application I observe a strange bahaviour of TestComplete and Windows handlers. 
Sometimes window handlers inside my application change the naming and after this the elements are not accessible by TestComplete. 

Intelligent Quality Addon helps with many situations but not with all of them 

 

Our app is based on MFC and for example I see the situation:

Michal_Ignaczak_0-1626177609545.jpeg

 

All of there windows are the same (but only one of them exists in one time). 

Of course I can handle this issue like:

if exists ....

 

but I wonder if there is any other fancy option to handle these issue in testComplete

 

Best Regards,

Michal

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
brumazz
Staff

Re: MFC application testing

Hi Michal, 

 

TestComplete creates instances of these objects in the name mapping based on properties.

If any of the properties used to map the object are different, that would explain why there are similar names, but failing to find the objects.

 

Sadly, there is not enough info here to provide a resolution, but if you can share the mapping of one of those items, I may be able to suggest a change to the mapping.

 

You could also reach out to your sales rep to set some time up with an SE

 

View solution in original post

AlexKaras
Community Hero

Re: MFC application testing

Hi Michal,

 

Do You have any [...] documentation ?

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/basi... and the whole https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/inde... section.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

3 REPLIES 3
brumazz
Staff

Re: MFC application testing

Hi Michal, 

 

TestComplete creates instances of these objects in the name mapping based on properties.

If any of the properties used to map the object are different, that would explain why there are similar names, but failing to find the objects.

 

Sadly, there is not enough info here to provide a resolution, but if you can share the mapping of one of those items, I may be able to suggest a change to the mapping.

 

You could also reach out to your sales rep to set some time up with an SE

 

View solution in original post

Michal_Ignaczak
Occasional Contributor

Re: MFC application testing

Thanks, 

 

Until now I did not change anything inside Name Mapping, 
Do You have any tutorial how to change it / documentation ?

Best Regards,

Michal

AlexKaras
Community Hero

Re: MFC application testing

Hi Michal,

 

Do You have any [...] documentation ?

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/basi... and the whole https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/inde... section.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: