Forum Discussion

vbushel's avatar
vbushel
Occasional Contributor
12 years ago

Instances of the same process.

I run some installer in Windows environment.

Sometimes installer dialog window appear as instance 2, sometimes as instance 3. Sometimes as 1. I cannot predict it. 

How, anyway, I can recognize element in the dialog box if I cannot predict its instance number?

1 Reply


  • Hi Vladimir,


     


    When the installation starts, there are several processes having the same "msiexec" name, and the process taken by TestComplete can fail to contain the needed window. To avoid this problem, you can modify the NameMapping scheme and specify the required children for the needed process. See the "Specifying Child Objects Required for Mapped Object Identification" article for details. Also, you need to avoid using the Index property to map the installation's main form, and add the Visible property equal to True to the mapping criteria. Please note that the value of the Caption property for the main form can change. You can use wildcards to make your NameMapping scheme more reliable.


     


    Also, this question was discussed on the forum several times. You can refer to the search results to find some useful information: