SeleniumLibrary icon indicating copy to clipboard operation
SeleniumLibrary copied to clipboard

Executing RobotFramework test cases from putty?

Open PriyaAn opened this issue 13 years ago • 5 comments

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?

PriyaAn avatar Mar 05 '13 13:03 PriyaAn

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 [email protected] 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/rtomac/robotframework-selenium2library/issues/179 .

HelioGuilherme66 avatar Mar 05 '13 14:03 HelioGuilherme66

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.

PriyaAn avatar Mar 05 '13 17:03 PriyaAn

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 [email protected] 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/rtomac/robotframework-selenium2library/issues/179#issuecomment-14452813 .

HelioGuilherme66 avatar Mar 05 '13 18:03 HelioGuilherme66

you may try 'xvfb-run'

rsq647 avatar Jul 30 '13 16:07 rsq647

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.

just-be-dev avatar May 06 '15 17:05 just-be-dev