Contributions
Re: Searching for mapped object took too much time msg
Read through Name Mapping and make sure you understand it. I'm not sure if you really need Name Mapping - Extended Search enabled. Verify that the mapped object has the correct property values to identify the UI object. And ensure the parent mapped object is correctly identified too. See Check for Objects Whose Mapping Criteria Require Updates16Views1like1CommentRe: Add support for testing in multiple instances of the same desktop app
Not making duplicates of the name mapping with different properties, how will TC distinguish between the two? You need something that uniquely identifies the object, and in this example, it's the Index property value.2Views0likes0CommentsRe: Add support for testing in multiple instances of the same desktop app
Create a name mapping for the two instances, and include the Index property value. If there's a unique property vale between the two instances, that can be used too. You can then access this object via scripts or keyword tests.10Views0likes1CommentRe: Add support for testing in multiple instances of the same desktop app
Visual Studio is a development tool, not sure why you would want to automate this? Launching two instances of Notepad, TC can distinguish between the two via it's Index property value. Same applies to VS,11Views0likes1CommentRe: Test case randomly fails with "parent object was not found"
While recording, anything you click on, it will automatically create a name mapping. Sometimes it will create duplicates, with different property values. When you play this back, TC will get confused, as it doesn't know what actual object you are referring too! I create name mappings based on the UI objects I will interact with, slowly building the tree structure. I use Object Spy and Object Browser to find my UI object, right click and select Map Object, followed by Choose a name and properties manually. It is a slow process, but it works 100%3Views1like1CommentRe: Test case randomly fails with "parent object was not found"
By the looks of it, you need to organise your mapped object correctly. Based on the following website http://secure.smartbearsoftware.com/samples/testcomplete15/dialogs/, I have defined the mapped objects as, You need to ensure that the structure of your mapped objects is correctly defined, and that it matches your webpage DOM (you seem to have twoBrowserWindow beneath chrome?). Ensure that the mapped object property values are also correctly defined (the first xpath for AddWireButton is not correct XPath expression). To instruct TestComplete on how to locate the objects in your tested application, name mappings must identify the objects correctly and uniquely.2Views0likes3Comments