Yii Framework Forum: automated testing on command line only servers (i.e. without X) - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

automated testing on command line only servers (i.e. without X) how to auto test on a server with no graphic interface

#1 User is offline   huanito 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 21-November 10

Posted 13 December 2010 - 05:30 PM

In chapter 3 the Agile Web Dev with Yii book by Jeffrey Winesett it is recommended to do automated testing using PHPUnit and Selenium remote control.

That's fine for a server which has a graphic interface but most production servers, in my experience, are shell access only. Correct me if I am wrong but it seems that you can't make selenium work on that type of server as it lacks the graphic interface to be able to run the various browsers for the tests.

I figure it would be nice to run selenium from a remote client but it seems it needs to be on the same server as PHPUnit.

Is there a way of doing these automated tests on shell only servers?
0

#2 User is offline   jefftulsa 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 168
  • Joined: 06-October 08
  • Location:Austin, TX

Posted 14 December 2010 - 09:28 AM

Maybe try an internet search with keywords like "Selenium testing on headless servers". Should result in various examples that might help you out. Here is one about how to automate your Selenium functional tests from a Hudson CI build on a "headless" linux server:

http://shotgunsandpe...ith-hudson.html

Hope this helps.
1

#3 User is offline   huanito 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 21-November 10

Posted 14 December 2010 - 12:42 PM

Thanks. That looks good. I will test drive and report back on the experience.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users