Is it possible to run a selenium test in remote(other) machine without using selenium Grid and Node

2,600 views
Skip to first unread message

van...@tripodtech.net

unread,
Nov 23, 2016, 1:49:09 AM11/23/16
to Selenium Users
Is it possible to run a selenium test in remote(other) machine without using selenium Grid and Node. Please suggest if it possible or not.
Thank you.

⇜Krishnan Mahadevan⇝

unread,
Nov 23, 2016, 6:17:33 AM11/23/16
to Selenium Users
As a bare essential you atleast need to be running the Selenium Server on the remote machine.

Without that its not possible to have your local test execute anything on the remote machine.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Wed, Nov 23, 2016 at 12:19 PM, <van...@tripodtech.net> wrote:
Is it possible to run a selenium test in remote(other) machine without using selenium Grid and Node. Please suggest if it possible or not.
Thank you.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c13ece83-4ded-44aa-9bc1-5a17fcb00f4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David

unread,
Nov 23, 2016, 12:34:48 PM11/23/16
to Selenium Users
Yes, and Krishnan, it is actually possible. But whether one finds the approach worthwhile is a different matter.

If one doesn't use Selenium Grid hub/node mode, nor uses RemoteWebDriver (standalone selenium server on single host mode), then the last alternative is to run the Selenium test "locally" with the local drivers but execute or call this test "remotely", via SSH/PSExec/WinExe, depending on which platform the tests run on VS which platform you are making the remote execution call from. One could even wrap that into a REST API, etc. to remotely execute instead of using SSH/PSExec/WinExe.

e.g. user on machine A runs SSH (or PSExec) command to execute a single command against remote machine B, to run tests on B, where the test command might be "mvn test" for example.

Krishnan Mahadevan

unread,
Nov 23, 2016, 12:49:11 PM11/23/16
to Selenium Users

Lol David. I agree. But to me it would be a bit too convoluted and difficult when there are simpler ways of doing it either via a selenium server or via a grid infrastructure ( which is why grid was built to start off with ).

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/addb8b74-e39a-48d7-b656-323e70cc2723%40googlegroups.com.

van...@tripodtech.net

unread,
Nov 24, 2016, 2:26:52 AM11/24/16
to Selenium Users
Thank you Krishnan for your response.

Can you please provide more details about how to start Selenium Server?.

⇜Krishnan Mahadevan⇝

unread,
Nov 24, 2016, 2:31:45 AM11/24/16
to Selenium Users
Download the Selenium standalone server from here into the remote machine.
Open a terminal/command prompt and run the command : java -jar selenium-server.jar (here selenium-server.jar is the name of the jar that you downloaded. Replace it with the actual name)

Now your tests need to instantiate a webdriver via new RemoteWebDriver(new URL("http://<remoteServerIp>:4444/wd/hub"), DesiredCapabilities.firefox());

If you would like to learn how to work with the Grid instead then refer to this blog post of mine.



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/25802452-7ecd-4940-860d-b3b3d8728b11%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages