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.
Related
I have hybrid framework , which is selenium with java in eclipse. Can i use that whole code to build it in VSTS
Yes, you can. If the Hosted agent doesn’t meet the requirement(s) (such as Chrome: Install headless chrome on hosted build servers), you can set up the private agent on your local machine and do build and test with this agent.
Deploy an agent on Windows
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");
I have a strange problem, which I'm unable to solve for sometime. I have a selenium WDS for Firefox browser. I tried to execute the code in JMeter UI, everything works fine. But when I try to execute the same in a server (using XVFB driver), I get the error:
rm="sun.org.mozilla.javascript.EvaluatorException: Can't find method org.openqa.selenium.remote.RemoteWebDriver.executeScript(string,org.openqa.selenium.remote.RemoteWebElement). (<Unknown source>#17) in <Unknown source> at line number 17"
All the required drivers are the same as the one I locally try. Yet, I get the error only when I run in the server but not locally. Please help
Most probably you have different versions of either WebDriver Sampler or dependency libraries, I don't see any other ways for the same script to work on one machine and don't work on another.
Install the same version of JMeter onto both machines (use JMeter 3.2 or later, whatever is available at JMeter Downloads Page)
Install latest version of the WebDriver Sampler plugin using JMeter Plugins Manager
Your test should now be running fine.
I can't figure out where I am going wrong. I have Eclipse Indigo, JBoss 7.1, JBoss Tools installed. I have this configuration working on my Windows7 64-bit system. I am attempting to set up a co-worker's Windows XP 32-bit machine with the same configuration but am not able to get the server to launch. I have configured the server but when I attempt to start the server, I get an error indicating that it was unable to start the server but there is no specific error listed.
I am able to start JBoss from the command prompt using the standalone.bat file.
I am able to configure the standalone.xml file from within Eclipse. I have confirmed this by checking the file in the standalone/configuration directory.
When I attempt to publish the project from within Eclipse, it does not publish.
Nothing gets written to server.log
The startup parameters match what I have on my computer.
I can't figure out what I am missing. Any suggestions would be appreciated!
Edit:
I have done some more checking. I am able to publish to the server and I am able to start the server (with the published application) fine from the command prompt. That part works. When I attempt to start the server from within Eclipse it gives me "Server JBoss 7.1 Runtime Server failed to start." It never writes anything to the console tab in Eclipse either so I can't tell why it is failing to start.
Also in the Servers tab, there is an entry called "Server Details". When I expand that entry, it says "Not Connected".
The answer to my problem is that Eclipse had be configured to use the java JDK, not the JRE. As soon as I switched over to use the JDK it started working fine. For some reason JBoss will start under 64-bit windows with the JRE but under 32-bit you need to use the JDK. I found the answer here: https://community.jboss.org/thread/169097
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.