Hi,
I am doing automation testing on some scenario.
Technology:Delphi
Automation tool used: Ranorex
Scenario:
- Open the application do some setting & do not close the application.
- Open the new instance of same application and do some functionality and verify whether the settings done in the first instance is effected or not.
So my problem is after doing the all the settings when I am trying to open the new instance of the same application,I can able to open the new instance usingProcess.Start("").But when trying to do some functionality in the new instance the old instance is being activated and the functionality is happening in the old instance.
So to avoid this I was trying to do this mentioned below..
I want to capture the Process ID for second instance & i want to activate the second instance using the PID.
After that I can do all the functionality on the new instance.
Can anyone suggest me with some sample code for this?
If there are any other way by which this can be done please give the solution for this with sample code.
Thanks,
Rakesh