Testing Concurrency With Virtual Box
Posted: 28. Nov 2013, 17:25
I am testing a program. A reported error has something to do with information being send and received from 2 instances of the same program. In my test situation one is running on my PC, the other one is running in a virtual box. I cannot reproduce this error, but there is one thing I have not, and cannot, try: Clicking on a button in both instances at exactly the same time.
Is there any way I can simulate this? I presently thinking of just programming a sleep in one version of that program, and use the sleep to go to the other instance. (And in that other instance, I have turned off that sleep before triggering the button code, of course.)
But do you have any other ideas?
To make my information complete:
In both cases the operating System is Windows 7.
The application being tested actually a WinForms application. I have the source code. (Hence I can program that sleep in that button.)
I am using Network bridge adapter to get my machine and the box in the same network.
I have installed serial port COM1, the application needed a COM port to run.
Is there any way I can simulate this? I presently thinking of just programming a sleep in one version of that program, and use the sleep to go to the other instance. (And in that other instance, I have turned off that sleep before triggering the button code, of course.)
But do you have any other ideas?
To make my information complete:
In both cases the operating System is Windows 7.
The application being tested actually a WinForms application. I have the source code. (Hence I can program that sleep in that button.)
I am using Network bridge adapter to get my machine and the box in the same network.
I have installed serial port COM1, the application needed a COM port to run.