Forum Discussion

ml's avatar
ml
Contributor
11 years ago

Name mapping: Two objects under one alias?

Hello,

i´ve got a problem. I have two mapped objects ( A & B) and one alias (ADlg) - Is it possible to let both objects, A & B, work under that one alias?

 

Backgroud: 

Our software changes and one dialoge (ADlg) got two diffrent parents (A & B). Now the earlier recorded testcomplete tests will not work because he doen´st find the parent(s) from the dialoge.

 

If its not understandable i will try to explain it better :) 

  • I think I understand your issue - instead of using constant mode to identify your objects, maybe you could use a Project Variable?  This way you can make TestComplete recognise your objects after the software changes.

     

    In code you would set different values to the Project Variable, Refresh the mappings, and the object should be recognised.

     

    Or maybe Conditional Mapping might help you?