Object instance issue
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2010
05:05 AM
01-15-2010
05:05 AM
Object instance issue
Several forms that use the same code in dotNET and test complete is trying to use object name not the object within the instance. Is there any way around this? I have 2 windows open which are two different instances with two different sets of data and test complete is trying to use the first instance when it should be using the second. Object name is the same in both. Any assistance would be appreciated.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2010
03:12 AM
01-22-2010
03:12 AM
Hello Vanessa,
By default, TestComplete addresses .NET objects by their native names. So, if there are several objects with the same name, it is not clear which one to address.
To avoid such problems, you can do any of the following:
1. Ask your developers give unique names to objects.
2. Use the Name Mapping feature and map the objects by a property set that identifies each of the objects uniquely.
3. Disable the "Use native object names for TestComplete object names" option for your TestComplete project. For details, see the "Project Properties - General Open Applications Options" help topic.
-----
Alexander
Customer Care Manager
Alexander
Customer Care Manager
