Win7 starts AUT with unpredictabe instance number

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
binonline
Posts: 12
Joined: Thu Apr 19, 2012 4:12 pm

Win7 starts AUT with unpredictabe instance number

Post by binonline » Wed Sep 05, 2012 10:32 am

We want to control 2 instances of the same AUT for a specific test. So I start AUT and see with Spy at the main form an instance=0. I start same AUT additional and SPY shows Instance=1 - all in order.
If I close both AUT, wait a little and start them again it maybe that I get instance=3 and 4 or again 0 and 1. For me and the TestSuite it's unpredictable.
Any hints how to grab this :?:

Cheers
Robert

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Win7 starts AUT with unpredictabe instance number

Post by Support Team » Wed Sep 05, 2012 11:07 am

Hi Robert,

If your instances of your application are successfully closed and you reopen two new instances of it, the instance attribute should be again set to 0 and 1.
If you just close one instance of your application, for instance the application with the instance attribute set to 0, and then open a new instance of your application, the new instance attribute should be again set to 0.

Regards,
Markus
Ranorex Support Team
.
Image