One Alias/Mapping for several parallel running instances of a program
Hi there,
I have a little perhaps trivial question I do not know how to solve.
Given:
- A program named GpxSimulator basing on C#.NET with a multi-tab gui
- A mapping/alias to GpxSimulator
- A number of GpxSimulator instances running at the same time. They have to run on the same machine
Needed:
- A script (python) that defines a number of objects that map to the running instances individually, identified by the process id
- In this instances the name mapping/alias should be used to do things with the gui-elements of the instance
Have everything...the Alias (only a simple one, mapping to the MainWindow, but for a poc this is enough), the script to start up several instances of the program while getting the pid of every instance. And know I do not know how to connect the pid/specific instance with the alias to manipulate it ...
Help is appreciated
Regards
Ulrich
Hi Ulrich,
You may add process PID as additional identification criterion to Namemapping and make it dynamic by not hard-coding it but setting in run-time using Project Variable (see https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/basic-mapping-criteria.html and https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/conditional-mapping-criteria.html for mode details).