Skip to main content
added 853 characters in body
Source Link
munro
  • 11
  • 2

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

Using xnee you can do something similar, but sadly does not work fully:

  1. Lock your screen
  2. Run cnee (xnee) on a virtual console CTRL + ALT + F1 to record mouse movements and key strokes: cnee --record --keyboard --mouse --display :0 --out-file login.xnl. This will record mouse movements and key strokes from display :0.
  3. Switching back to X console
  4. Click into the password field, enter password and press RETURN
  5. Switch back to virtual console to stop recording with CTRL + C
  6. Run cnee to replay the captured events cnee --replay --display :0.0 --file login.xnl
  7. Immediately switch back to the X console (otherwise the commands will not be replayed there) You're logged in now.

What finally rendered the solution useless is that you have to switch to the X console, what would need to be automated, too.

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

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

Using xnee you can do something similar, but sadly does not work fully:

  1. Lock your screen
  2. Run cnee (xnee) on a virtual console CTRL + ALT + F1 to record mouse movements and key strokes: cnee --record --keyboard --mouse --display :0 --out-file login.xnl. This will record mouse movements and key strokes from display :0.
  3. Switching back to X console
  4. Click into the password field, enter password and press RETURN
  5. Switch back to virtual console to stop recording with CTRL + C
  6. Run cnee to replay the captured events cnee --replay --display :0.0 --file login.xnl
  7. Immediately switch back to the X console (otherwise the commands will not be replayed there) You're logged in now.

What finally rendered the solution useless is that you have to switch to the X console, what would need to be automated, too.

deleted 323 characters in body
Source Link
munro
  • 11
  • 2

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

For the curious out there what didn't work was an attempt to use xnee:

  • Running cnee (xnee) on a virtual console to record mouse movements and key strokes
  • Switching back to X console
  • Performing movements etc.
  • Switching back to virtual console to stop recording
  • Running cnee to replay the captured events

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

For the curious out there what didn't work was an attempt to use xnee:

  • Running cnee (xnee) on a virtual console to record mouse movements and key strokes
  • Switching back to X console
  • Performing movements etc.
  • Switching back to virtual console to stop recording
  • Running cnee to replay the captured events

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
added 323 characters in body
Source Link
munro
  • 11
  • 2

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

For the curious out there what didn't work was an attempt to use xnee:

  • Running cnee (xnee) on a virtual console to record mouse movements and key strokes
  • Switching back to X console
  • Performing movements etc.
  • Switching back to virtual console to stop recording
  • Running cnee to replay the captured events

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

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

For the curious out there what didn't work was an attempt to use xnee:

  • Running cnee (xnee) on a virtual console to record mouse movements and key strokes
  • Switching back to X console
  • Performing movements etc.
  • Switching back to virtual console to stop recording
  • Running cnee to replay the captured events
Source Link
munro
  • 11
  • 2
Loading