mathare
13 years agoContributor
NameMapping question
My application under test contains a number of different dialogs (one per data set) that all have the same structure and layout but have different window captions (the name of the data set is included in the window caption). Is there any way of paramterising a name mapping?For example, the dialog may be "Settings for DataSet1" and I would like to name map the dialog and some of the child objects such as tab panes and buttons. Is there a way to set up a "Settings for <dataSet>" name mapping where <dataSet> is a string parameter that will be DataSet1, DataSet2 etc.?
I'm using scripted tests (actually connected applications) in C#, TestComplete version 8.70.727.7.
If it can't be done via a parameter is there a neater solution than just setting up multiple name mappings, one per dialog? There is a fairly small number of dialogs (6-8) so adding that many name mappings isn't a big chore but if it can be parameterised or similar that would make maintenance easier, obviously.
Thanks in advance
Mat
I'm using scripted tests (actually connected applications) in C#, TestComplete version 8.70.727.7.
If it can't be done via a parameter is there a neater solution than just setting up multiple name mappings, one per dialog? There is a fairly small number of dialogs (6-8) so adding that many name mappings isn't a big chore but if it can be parameterised or similar that would make maintenance easier, obviously.
Thanks in advance
Mat