Upgrading Selenium grid to 1.0.7 - selenium-grid

I have just been tasked with upgrading our build system to selenium grid 1.0.7 from 1.0.3. I did not create the original instance of our selenium grid.
My problem is this: our 1.0.3 installation has a windows service running that cruise control can use. In addition, there are extra folders in our selenium-grid-1.0.3 folders such as /bin /conf that do not exist in my selenium-grid-1.0.7 folder that I just downloaded. Does anyone know how I can somehow build selenium grid so that I can run it on our Windows server 2008 machine? I notice that our bin folder for 1.0.3 has a wrapper.exe in it that calls a wrapper.conf file in our 1.0.3/conf directory. I don't have either of those in my 1.0.7 folder and I'm assuming there is some other binary I must download, but have no idea where to get it from. Anyone know how I can get the selenium grid hub service to work with 1.0.7? Thanks.

Looks like the previous developer simply used Java Service Wrapper to create a service around the Selenium java files, thanks.

Related

where chromedriver installed by Visual studio nuget

I am newbie and want help please.
I am trying on selenium to automate actions to a mobile webpage. (Don't care about landscape, but just reference to its code) I am referring to this post C# Selenium Mobile Emulation in landscape
ChromeDriverService service = ChromeDriverService.CreateDefaultService(#"C:\chromedriver");
I'm on windows7, using visual studio. I installed chromedriver through nuget package manager. I dont know what to replace on #"C:\chromedriver" as I don't know where chromedriver is on my machine.
Below is what I git diff from package.config, but does not seem help.
+
+
+
+
Any help is appreciated. Thank you very much.
If you look at
https://www.nuget.org/packages/Selenium.WebDriver.ChromeDriver/
Install Chrome Driver (Win32, macOS, and Linux64) for Selenium WebDriver into your Unit Test Project.
"chromedriver(.exe)" is copied to bin folder from package folder when the build process.
NuGet package restoring ready, and no need to commit "chromedriver(.exe)" binary into source code control repository.
So you should use
ChromeDriverService service = ChromeDriverService.CreateDefaultService(#"chromedriver.exe");

Using Selenium without java runtime

Is there a way I can use selenium without having to install java runtime on my remote machine?(the machine where the browser is)
The machine that automates the process( where the tests run will have java) but the remote machine where the browser is does not have java. is it possible? and if yes how ?
You can try using Launch4j for embedding JRE into your java application package.
Useful links:
1. Launch4J
2. A SO post for how to do it.
3. Another SO answer which describes how to do it on different OSes

Can't install CloudBees SDK onto Windows 8

I seem to have some problems initialising the CloudBees SDK locally to be able to run a simple application.
I've downloaded the SDK, added the required paths; everything ok up to the point where I am trying to execute the bees run command from my newly created application folder.
The error I get seems related to the JDK installation on my computer - JAVA_HOME is pointing to C:\Program Files\Java\jre7 and not to jdk .
I've checked all the local PATHS and they seem ok.
By the way I am using Windows 8.0 Enterprise 64 bit.
Fully uninstalling Java from my system followed by installing only the 64bit version and recreating System paths seems to have fixed the problem.

Will webdriver script compiled and run on windows will also run on ubuntu?

Currently I use to create and run scripts using java +eclipse+ junit+ webdriver in windows platform.Now if i shift to Ubuntu platform do i need to make any changes in configuration to run all supported browser.
Thanks
Yes it will work.But you need to check the browser for which scripts are designed.As it may be possible that you need to do code changes for web browser drivers for respective operating system.
Also make sure that all the software's java/eclipse/junit/web driver are configured on the linux machine.

Timeout while trying to contact RemoteTestNG in Selenium on Mac

I have a TestNG setup running on Eclipse Indigo 20120216-1857 and TestNG for Eclipse v2.0. Dev environment is Mac OSX 10.8.2. Target is a web server running on Ubuntu 12.04.
Error: 'Couldn't contact the RemoteTestNG client. Make sure you don't have an older version of testng.jar on your class path.'
This error only happens when i'm running selenium scripts. not on my other api oriented test cases. I have selenium-server-standalone-2.25.0.jar running.
This same setup is working on my windows 7 dev environment.
This is a brand new eclipse setup and workspace on the mac.
I had met same question. I hope my resolved method can help you.
Method:
Please open Eclipse->Preferences->Then click TestNG->Restore Defaults
root reason: I had use ReportNG instead of testng default report,but after that I forgot to restore config. So when I make a new project,run as TestNG,but not add ReportNG jars, it report error.