When multiple instances of Delphi are running, test results show in the first instance only

Issue #13 closed
David Millington created an issue

When TI runs tests in a second instance of Delphi, the results are not shown in that Delphi instance's TI window. Instead, they are shown in the first instance of Delphi you opened.

To reproduce:

  • Open Delphi, and load a test project

  • Verify that when it runs, test results show in the TI window

  • Close that project or switch to another project in the group

  • Open a second copy of Delphi, and open a test project (I used the same project)

  • Run the test project (perhaps after editing a test to fail, to be sure you are seeing results from this project / this instance.) You will see it compile etc, but the TI window in the second copy of Delphi stays blank. If you switch back to the first copy of Delphi, you will see the results appear there.

Comments (4)

  1. David Millington reporter

    Can you pass the port to use as a command-line switch, perhaps? Or have some other way of having the test program be aware of which instance of Delphi it needs to connect to in order to send the results back?

  2. Stefan Glienke repo owner

    Settings are always provided in the TestInsightSettings.ini (it was the best choice for all platforms and starting from outside the IDE).

    The issue was that the indy TCPServer had reused the port from an already running instance. This should be fixed in the next build.

  3. Log in to comment