End To End Testing on Headless Server

前端 未结 2 1193
臣服心动
臣服心动 2020-12-14 12:55

I am trying to set up an environment for end-to-end testing on a droplet running Ubuntu server 12.04.3 on digital ocean.

What I am trying to achieve

2条回答
  •  一个人的身影
    2020-12-14 13:05

    There is PhantomJS but with Protractor is buggy and a dead-end.

    You can still use Chrome & Firefox headless through docker-selenium or, if you don't like Docker you can do it yourself with ubuntu-headless sample. Both solutions provide Chrome & Firefox by using Xvfb even though there is no real DISPLAY.

    UPDATE 2 Seems to be possible to run Xvfb in OSX: http://xquartz.macosforge.org/landing/

    UPDATE 1 Mac OSX selenium headless solution:

    Enable multi-user remote desktop access to OSX machine

    So can test selenium headless on mac. Not headless really but as another user so it doesn't interfere with your current user display. To do this you need kickstart: http://support.apple.com/en-us/HT201710 Begin using the kickstart utility

    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -restart -agent
    

    Activate Remote Desktop Sharing, enable access privileges for all users and restart ARD Agent:

    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -restart -agent -privs -all 
    
    Apple Remote Desktop 3.2 or later only

    Allow access for all users and give all users full access

    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all
    

    Kickstart help command

    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -help
    

提交回复
热议问题