Assume I want to simulate a login in the display manager to automate a test case. More or less this would mean a tool simulating keystrokes I guess. Is there anything out there?

Options I'm aware of, but I'm _not_ asking for:

- Disable the login completely using automatic login or password-less login