Forum Discussion
Dmitry_Nikolaev
15 years agoStaff
Hi Justin,
The cause of this issue is that the dialog is mapped to a custom name ('dlgCreateSiteplanTable') by a set of properties that satisfy both the dialog and the message box. In this case, TestComplete uses the same mapped name during the recording to record a click to the OK button on the message box. At the same time, during the playback, TestComplete does not search for the message box as the 'dlgCreateSiteplanTable' name is referencing an existing dialog object. As the dialog object does not contain the OK button, the test fails.
To solve the problem, you need to call the RefreshMappingInfo method of the problematic object to force TestComplete to search for the message box regardless of the fact that the 'dlgCreateSiteplanTable' object is referencing an existing object already:
();
Aliases["OptPCS"]["dlgCreateSiteplanTable"]["btnOK"]["ClickButton"]();
If this does not help, you need to map the dialog window and the message box to different names by properties that identify these objects uniquely. If there are no such properties, you can use the 'Required Children' feature to differentiate between these objects. Please see the Specifying Child Objects Required for Mapped Object Identification help topic for more information.
If you still cannot find a way to solve the problem, please reproduce the issue, pack the entire project suite folder and send me the archive via the Contact Support form.
Related Content
- 9 months agomdollinger
- 4 years agovsr
- 9 years agokamilpavlicko
- 10 months agokrisrajz
Recent Discussions
- 10 hours agoSvetaG