Ask a Question

Run test on multiple instances

Occasional Contributor

Run test on multiple instances

Is it possible to record a test once, then run that 1 test over multiple instances of the same application? The tests do not need to run in parallel.


I understand each instance will have a different index number and I can use this to distinguish between the instances

Valued Contributor

Of course purpose of  having a automated test suite is to test on multiple instance of application.

But beware if the application has changed or going to change, you have to have your test ready for changes.

for that you have to go beyond just record and play. 

record and play with initially help for  grasp idea of automation and getting used to tool and technology.

My advice is to at first record and then adjust your test later you be able to write test without recording.



As you already said indexes are different you can use wildcards on indexes as described hear 

Occasional Contributor

Thanks for the reply, but I think you misunderstood what I asked...


I am recording my steps on App A (index 1).

I change my mind and decide to have these steps run on App B (index 2).

How do I get these steps (that have already been recorded) to run on a different instance of the app (App B)?


The only way I can get this to work is by re-mapping each object to App B. In my test I need to run +- 200 instances of my app. It would be crazy to re-map all the objects for 200 apps! It would also be silly to record the exact same test 200 times.

Valued Contributor

If App A and App B are all-most same but with different indexes you can use wild cards for particulate index.


eg in object mapping of AppA you will get something like below where Myform is indexed...



in Object mapping for AppB you will get 



You can not reuse b'cos .Myform1. != Myform3 

hence you have to change Myform1 to Myform* so it's OK with any Index number


Occasional Contributor

The only thing that is different is the very top level of the hierarchy

eg AppA: Aliases.MyApp.Myform1.MyTextField


AppB: Aliases.MyApp2.Myform1.MyTextField


But when using wildcards I would still need to map/edit each object for the 200 apps.


Is this just a limitation of TestComplete?


Valued Contributor

Any tool would identify your app by process name (which is app name it self)...


Simple solution is

1) change your all 200 apps name to same name.

2) keep in 200 folders with what ever folder name

3)add 200 tested apps  as in   


4) change tested app in run time


Showing results for 
Search instead for 
Did you mean: