CBleunven
12 years agoContributor
2 instances of the application running - adressing the right windows
Hi,
I'm facing a problem with building a test with Test Complete.
We may run several instances of our applications in the same time. Processes appears under the Object browser as ["Process"]("Name"), ["Process"]("Name",2) etc... So they differ asexpected by an index.
But below windows carry the same name:
["VCLObject"]("TConfig0") and the same MappedName.
Thus when trying to act on the second window, it is always the first window wich is adressed.
Is there a way to manage this, in KeywordTests or with script tests ?
I've no problem to pick the good process but I can't retrieve the windows from it.
The following script fails
Many thanks for your help.
Have nice tests,
Christophe
I'm facing a problem with building a test with Test Complete.
We may run several instances of our applications in the same time. Processes appears under the Object browser as ["Process"]("Name"), ["Process"]("Name",2) etc... So they differ asexpected by an index.
But below windows carry the same name:
["VCLObject"]("TConfig0") and the same MappedName.
Thus when trying to act on the second window, it is always the first window wich is adressed.
Is there a way to manage this, in KeywordTests or with script tests ?
I've no problem to pick the good process but I can't retrieve the windows from it.
The following script fails
var p,w;
p = Sys["Process"]("Name")["_NewEnum"];
w = p["VCLObject"]("TObjectAliase0"); // error: Object expected
Many thanks for your help.
Have nice tests,
Christophe