how to run a command on a specific vnc display

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

I'm using selenium rc for automated testing on a centos box.

working on the box itself has no problem as long as i start the server through terminal.

though if i wanted to run tests remotely i have a problem with firefox not knowing on  which display to run.

i have a vnc client running on port 1 (5801/5901)

I've tried the following:

export DISPLAY=1 ; java -jar selenium-server.jar > /opt/selenium/Logs/logs.txt # through ssh session though that didn't work


the only way to initiate it properly is to connect through vnc, open a terminal and type : java -jar $PWD/selenium-server.jar
though i don't know how to automate this.

so i thought of setting this in xstartup # vnc's startup for display 1

as such:


  1 #!/bin/sh
  2
  3 # Uncomment the following two lines for normal desktop:
  4  unset SESSION_MANAGER
  5  exec /etc/X11/xinit/xinitrc
  6 while true ;do sh /opt/scripts/rc; done &
  7 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
  8 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
  9 xsetroot -solid grey
 10 vncconfig -iconic &
 11 xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
 12 twm &

]# more /opt/scripts/rc
java -jar /opt/selenium/selenium-server.jar > /opt/selenium/Logs/logs.txt


Though that isn't working either, and still the firefox profile doesnt know where to start.

this is the error :


PHPUnit_Framework_Exception: Response from Selenium RC server for getNewBrowserSession(*firefox, http://www.test.com).
Failed to start new browser session: Error while launching browser.


any help to automate the startup on display 1 would be greatly appreciated

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux