question

amichaels avatar image
amichaels asked amichaels answered

How do I run a web, selenium or other GUI test using itestcli on a machine with no display?

I have a web test that I want to execute on a headless execution machine (linux). I get errors about GTK and pango libraries. How can I successfully run these tests?
iTestitestcliregression
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
amichaels avatar image
amichaels answered
There are at least 2 solutions here: 1) login via the GUI as the same user that executes CLI and leave that session open (could be VNC, or the console in VirtualBox, or on the actual console display) 2) use the Xvfb package. This package allows you to create a virtual frame buffer and assign it a number. The utility script, xvfb-run, allows you to wrap your program in a display it creates. xvfb-run is not available on CentOS 5.10, but you can modify the script in the CentOS 6.5 release to run on 5.10.
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.