-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple GUI/clients running: give warning #6577
Comments
Look at process list to see if second instance |
Code PR: ISISComputingGroup/ibex_gui#1344 Unfortunately optional goal would seem to require adding more dependencies since switching between windows/tabs is more of a system thing than something easily controllable from Java app. The solution required programming in creation of a folder and temporary files in user directory (this directory could be easily changed to anywhere else) so I added a wiki entry with some more explanation. To test this when reviewing:
Since this process seems difficult to automate, I propose that a manual test is added for this if it passes review. Note when using Eclipse to test this: There exists an edge case that when starting many clients exacly at the same time it is possible for multiple to open without a prompt. This is because GUI needs a moment to start-up and also because a file I/O operation takes a moment to create a new file and in that time there is not yet a file to check for in the second instance. Realistically this would not be a problem if someone tries to open another client just a fraction of a second later since the file writing happens very early at the startup of the client. |
Also note: We might discover that some tests which have 2 clients running at the same time don't work anymore since prompt has to be accepted first. |
Code works correctly but I have requested a few improvements, documentation looks good. Please do add to the system tests and I'll review that too in the rereview |
While I was reworking this I tried a different method of testing and discovered that this actually doesn't work reliably so I will be re-doing it with a different method to make it more robust.
To reproduce:
|
Solved with different (more robust) approach Manual system test added https://github.com/ISISComputingGroup/ibex_developers_manual/wiki/Manual-System-Tests (Section 3, Test 2) Ticket opened to automate that in the future #6737 |
As a user i would like to be warned if i accidentally start a second instance of the ibex GUI - this is similar to #5084
Acceptance criteria
The text was updated successfully, but these errors were encountered: