Search code examples
automationgui-testing

GUI testing in the background


I am using a python script to control the mouse and keyboard and simulate an user in a GUI application in Linux.

The problem is that the script requires the computer to be idle, and I can't do other things while it is running, so I let it running during the night.

I would like to run multiple instances of this script in the background at the same time, in the same computer, without it interfering with my physical mouse and keyboard.

I tried to use multiple virtual machines and run one script per VM, but it starts to slow down with more than two VMs.

What would be the best approach to solve this problem?


Solution

  • Xephyr and the older Xnest are leight-weight alternatives to full blown virtual machines if it comes to running applications on the same desktop with separated X servers.

    Whether the keyboard and mouse test interactions will replay independently enough depends on the setup configuration and your test tool's style of user input emulation.