Skip to content

Executing RobotFramework test cases from putty? #179

Closed

Description

@PriyaAn

The test cases are kept in linux machine and i am trying to execute them from Windows machine using putty.But i am getting the an exception:

UL1 | FAIL |
WebDriverException: Message: 'The browser appears to have exited before we could connect. The output was: Error: no display specified\n'

Kindly help me in resolving the issue,if possible?

Activity

  1. HelioGuilherme66 commented on Mar 5, 2013

    @HelioGuilherme66
    Member

    I would use SSHLibrary to get the files from the Linux machine. (You can
    even package them in a Zip file and unzip in windows),

    If you really need to have Linux graphical windows you need to have putty
    to forward X11, and a X11 windows server like XMing. This looks like a very
    complicated setup.

    Are the tests specific for Windows?

    Helio

    On Tue, Mar 5, 2013 at 1:06 PM, PriyaAn notifications@github.com wrote:

    The test cases are kept in linux machine and i am trying to execute them
    from Windows machine using putty.But i am getting the an exception:

    UL1 | FAIL |
    WebDriverException: Message: 'The browser appears to have exited before we
    could connect. The output was: Error: no display specified\n'

    Kindly help me in resolving the issue,if possible?

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/179
    .

  2. PriyaAn commented on Mar 5, 2013

    @PriyaAn
    Author

    Actually i want to execute the test cases on another machine(Linux) but from putty.The browser should be launched on the linux machine but the command for execution is being send from putty.
    As of now if i execute from putty i am getting the above exception.

  3. HelioGuilherme66 commented on Mar 5, 2013

    @HelioGuilherme66
    Member

    To troubleshoot that,
    make sure that the graphical environment is working in the Linux machine,
    this is run the tests from a local console. If that is working, then is
    putty not correctly set.

    There is a DISPLAY environment variable to tell Linux where windows should
    be presented.

    My guess is that roboframework is loosing context. (I do not even know if
    it is possible to do what you want, but I'm not expert).

    On Tue, Mar 5, 2013 at 5:25 PM, PriyaAn notifications@github.com wrote:

    Actually i want to execute the test cases on another machine(Linux) but
    from putty.The browser should be launched on the linux machine but the
    command for execution is being send from putty.
    As of now if i execute from putty i am getting the above exception.

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/179#issuecomment-14452813
    .

  4. rsq647 commented on Jul 30, 2013

    @rsq647

    you may try 'xvfb-run'

  5. just-be-dev commented on May 6, 2015

    @just-be-dev
    Contributor

    It's probably because the linux box didn't have an active display and thus couldn't activate the webdriver. One method to get around this would be to test using the phantomjs webdriver which is headless. Otherwise you'll need to investigate X11 forwarding over an SSH tunnel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions