spiceqa / autotest

Autotest - Fully automated tests on Linux
http://autotest.github.com/
Other
5 stars 2 forks source link

spice/generic copy paste tests #7

Closed lkocman closed 12 years ago

lkocman commented 12 years ago

Original description from Alon

Depend on both issue 155 and issue 157.

Right now copy paste is just spice specific, but there were talks (citation needed, I know, somewhere on qemu-devel) to make this a generic can be implemented by spice or by vnc issue.

So that's just background, actually the requirement is for spice since it can do copy-paste today. The test would check copy from guest and paste in the client, and copy in the client and paste in the guest, for text and images (later maybe files too - but we don't support that yet I think). There is a standalone test already somewhere I can find, but generally the easiest test to start with would be:

linux guest, xsel for paste and copy linux spice-gtk client, xsel on same DISPLAY.

Then using an additional channel (that autotest-kvm already supports using ssh to the guest I believe) to launch the guest side xsel and grab the results, comparing for failure/success.

lkocman commented 12 years ago

there is already such test written in sikuli. You'll just probably need to recreate screenshots and properly integrate it with autotest

The other option could be to use qemu console send_key to copy (ctrl+v) some text from some application e.g. gedit inside client vm

Which Shouldn't be much difficult to perform

and then probably on the other guest ctrl+v by using the same console send_key.

Depends if you want to perform blind paste testing, or use sikuli instead.

Check implementation of inserting password (ticket) in rv_connect for reference

vi-patel commented 12 years ago

Copy and paste tests have been written using pygtk.

krcmarik commented 12 years ago

Well done, Thanks!