Forum Discussion

adi_xyz2000's avatar
adi_xyz2000
Occasional Contributor
11 years ago

Refresh mapping information on overlapping windows

Hi,



I have to test an application and following situation appears:



I have a window identified by

NameMapping.Sys.xxxxx.dlgSelectTheTraceFile and mapped using the name property:

Window("#32770", "Please select the trace file", 1)



If the user selects an invalid file, another a dialog appears with exactly the same name and parameters:

NameMapping.Sys.xxxxx.dlgSelectTheTraceFile and

Window("#32770", "Please select the trace file", 1)



What is happening with the background window (the first one) is that it will change the index into value 2, as below:

Window("#32770", "Please select the trace file", 2)



In my testcase I do a refresh using the command

NameMapping.Sys.xxxxx.dlgSelectTheTraceFile.RefreshMappingInfo, but the mapping will not be updated.



Also the manual Refresh Current Object control does not work every time.



My Test Complete version is 10.40.2015.7

4 Replies

  • adi_xyz2000's avatar
    adi_xyz2000
    Occasional Contributor
    Ok, I found the problem: two window were mapped with the same identifiers. I updated the mapping and now works using the RefreshMapping command
  • In Name Mapping, have you tried clearing the Index Value from the mapped Object so it is Null?
  • adi_xyz2000's avatar
    adi_xyz2000
    Occasional Contributor
    The ID seems to be the only difference between the two window so I can not set it to none, because the second will not be recognized anymore.



  • Any chance you could post a screenshot of the Name Mapping section where these Objects are located?



    Will be easier for me to reply with a decent answer.