cancel
Showing results for 
Search instead for 
Did you mean: 

Test Complete doesnot recognise Objects

SOLVED
Highlighted
ISR
Occasional Contributor

Test Complete doesnot recognise Objects

Hi Guys,

 

I am currently creating tests for Desktop application built on Delphi and have created a few tests last week and run it successfully. For some reason on running the same tests today ,all are failing with error " Objects does not exist" .

There was no update done to the application and not really sure whats causing the issue.

 

Any suggestions would be really appreciated.

 

Thank You.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Manager

Re: Test Complete doesnot recognise Objects

Hi @ISR,

This happened because the AcePayForm and wndAcePayForm objects contain different values in name mapping identifiers. Perhaps, some non-reliable properties, such as Index, were used to map these objects. Another situation, which occurs very often, identifiers used to map objects change their values from run to run. 

 

You will need to explore all mapping identifiers and remove unreliable ones or add wildcards. All possible steps are listed in this article - I recommend that you go through it:

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/dynamic-identif...

 

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
9 REPLIES 9
Contributor

Re: Test Complete doesnot recognise Objects

 Are you using Debug build for Testing?

 

If not please refer to the link below

https://support.smartbear.com/testcomplete/docs/app-testing/desktop/delphi/preparing/compiling-delph...

Super Contributor

Re: Test Complete doesnot recognise Objects

Hi ISR,

 

I use Delphi apps also, you don't really need to use debug info. I prefer to not use debug info to be under the same conditions as the final user.

 

I'm asking myself if you use mapping. If you don't, there are elements in memory that changes at each instance, so a test that works a day may fail another.

ISR
Occasional Contributor

Re: Test Complete doesnot recognise Objects

@anupamchampati  Yes I am using Debug Build for testing and have checked the project properties as per the link it is as per the link, except .TDS file not being in the same folder as the tested application. On compiling and running the tests again made no difference too.

 

ISR
Occasional Contributor

Re: Test Complete doesnot recognise Objects

HI @m_essaid  ,

 

According to my understanding Name mapping is done automatically by Test Complete. But yes I see that the components name have been changed from earlier.

Community Hero

Re: Test Complete doesnot recognise Objects

You will need to update you name mapping properties to use static values, or wild card any dynamic values. The automatic mapping Test Complete provides is a great starting point, but will never be reliable without manually adjusting properties. 

 

I would start with reading through every part of the documentation around object identifications: https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/index.html

 

 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Super Contributor

Re: Test Complete doesnot recognise Objects

you dev team may have made changes on the DFM of some units, ask them...

Community Manager

Re: Test Complete doesnot recognise Objects

Hi @ISR,

Were you able to resolve this issue? Please share the solution with us.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
ISR
Occasional Contributor

Re: Test Complete doesnot recognise Objects

Hi @cunderw , 

Thank you for your suggestion .

 

I created new project and updated name mapping properties to use static values, or wild card any dynamic values. 

Sorry Just another question here . Does Test complete creates objects twice if the properties of the first one is not right.

Please see the attached screenshot and marked labels. 

Thank You.

Community Manager

Re: Test Complete doesnot recognise Objects

Hi @ISR,

This happened because the AcePayForm and wndAcePayForm objects contain different values in name mapping identifiers. Perhaps, some non-reliable properties, such as Index, were used to map these objects. Another situation, which occurs very often, identifiers used to map objects change their values from run to run. 

 

You will need to explore all mapping identifiers and remove unreliable ones or add wildcards. All possible steps are listed in this article - I recommend that you go through it:

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/dynamic-identif...

 

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓