selenium-grid

How can I run NUnit(Selenium Grid) tests in parallel?

你。 提交于 2019-11-30 05:17:39
My current project uses NUnit for unit tests and to drive UATs written with Selenium. Developers normally run tests using ReSharper's test runner in VS.Net 2003 and our build box kicks them off via NAnt. We would like to run the UAT tests in parallel so that we can take advantage of Selenium Grid/RCs so that they will be able to run much faster. Does anyone have any thoughts on how this might be achieved? and/or best practices for testing Selenium tests against multiple browsers environments without writing duplicate tests automatically? Thank you. There hasn't been a lot of work on this

Has anyone found a way to run C# Selenium RC tests in parallel?

我的梦境 提交于 2019-11-30 04:57:56
Has anyone found a way to run Selenium RC / Selenium Grid tests, written in C# in parallel? I've currently got a sizable test suite written using Selenium RC's C# driver. Running the entire test suite takes a little over an hour to complete. I normally don't have to run the entire suite so it hasn't been a concern up to now, but it's something that I'd like to be able to do more regularly (ie, as part of an automated build) I've been spending some time recently poking around with the Selenium Grid project whose purpose essentially is to allow those tests to run in parallel. Unfortunately, it

Multiple tests on the same IEdriver instance - memory issues

醉酒当歌 提交于 2019-11-29 17:00:35
I'm running lots of selenium tests on my node which is windows machine. In order to speed up test execution by avoiding starting/closing IEDriver instance after every test I decided to reuse the same driver instance for every test. Everything works fine with firefox and chrome, but IE11 is having serious issues. After about 30 minutes IE freezes without any exception and execution stops, it completely loses connection with my node. I can see that IE11 process (iexplore.exe) uses massive memory resources (1.5 GB or more) and I need to kill it using task manager to shut it down. Did anyone face

Is there a way too prevent selenium automatically terminating idle sessions?

…衆ロ難τιáo~ 提交于 2019-11-29 16:52:14
I am using selenium for automating some interactions with websites. This process involves opening several browsers and having them perform actions intermittently. However, occasionally there are long (> 1 hour) periods of inaction, and selenium seems to automatically kill browser sessions after ~30 minutes of not being called. I would like to set this timeout to 7 hours or so, but I cannot find any way of doing this. This is the message selenium sends as it helpfully closes an idle browser. 13:06:35.277 INFO [ActiveSessions$1.onStop] - Removing session 70a1b8cbae6876cde7e66df13b3942d1 (org

Remote WebDriver UnreachableBrowserException: Could not start a new session

限于喜欢 提交于 2019-11-29 16:30:07
I got this exception for all browsers. For example, I create a remote webdriver on chrome like this: caps = DesiredCapabilities.chrome(); ChromeOptions options = new ChromeOptions(); options.addArguments("disable-infobars"); caps.setCapability(ChromeOptions.CAPABILITY, options); webDriver = new RemoteWebDriver(new URL("http://myIP:5555/wd/hub"), caps); And I got UnreachableBrowserException as follow: org.openqa.selenium.remote.DesiredCapabilities chrome INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()` org.openqa.selenium.remote.UnreachableBrowserException: Could

How to Merge Chrome driver service with desired capabilities for headless using xvfb?

只谈情不闲聊 提交于 2019-11-29 12:47:18
I want to merge ChromeDriverService with chromeOptions or with DesiredCapabilities for running browser in xvfb. Below is part of code ChromeDriverService I previously used without selenium grid. String NodeChromeIncognito = "http://localhost:5558/wd/hub" ChromeDriverService chromeDriverService = new ChromeDriverService.Builder() .usingDriverExecutable(new File("driver_linux/chromedriver")) .usingAnyFreePort() .withEnvironment(ImmutableMap.of("DISPLAY", ":1")).build(); chromeDriverService.start(); // commented because using RemoteWebDriver // driver = new ChromeDriver(chromeDriverService); and

Error SessionNotCreatedException with NativeConstructorAccessorImpl.newInstance0 while running selenium remotedriver

末鹿安然 提交于 2019-11-29 12:00:39
I am running the following but getting the error public class base { public static WebDriver driver; public static void main(String[] args) throws MalformedURLException, InterruptedException { System.setProperty("webdriver.chrome.driver", "C:\\code\\lib\\browser drivers\\chromedriver.exe"); String URL = "http://www.google.com"; String Node = "http://localhost:4444/wd/hub"; DesiredCapabilities cap = DesiredCapabilities.chrome(); cap = DesiredCapabilities.chrome(); cap.setPlatform(org.openqa.selenium.Platform.WINDOWS); driver = new RemoteWebDriver(new URL(Node), cap); driver.navigate().to(URL);

Create and upload a file on selenium grid

你说的曾经没有我的故事 提交于 2019-11-29 07:26:09
One of tthe test cases that I have is to upload a file to the application. Witouth grid this can be easily done by creating a bogus file and get absolute path of the file and fill the input field and click upload. However when I am using grid, the file is not on the machine that hosted the node. Is there anyway to either send the file to the node or tell the node to create the file and get the absolute path. It's actually pretty simple once you know how, just set a local file detector. import org.openqa.selenium.remote.LocalFileDetector import org.openqa.selenium.remote.RemoteWebDriver

How can I run NUnit(Selenium Grid) tests in parallel?

拟墨画扇 提交于 2019-11-29 03:15:34
问题 My current project uses NUnit for unit tests and to drive UATs written with Selenium. Developers normally run tests using ReSharper's test runner in VS.Net 2003 and our build box kicks them off via NAnt. We would like to run the UAT tests in parallel so that we can take advantage of Selenium Grid/RCs so that they will be able to run much faster. Does anyone have any thoughts on how this might be achieved? and/or best practices for testing Selenium tests against multiple browsers environments

Has anyone found a way to run C# Selenium RC tests in parallel?

我与影子孤独终老i 提交于 2019-11-29 02:33:11
问题 Has anyone found a way to run Selenium RC / Selenium Grid tests, written in C# in parallel? I've currently got a sizable test suite written using Selenium RC's C# driver. Running the entire test suite takes a little over an hour to complete. I normally don't have to run the entire suite so it hasn't been a concern up to now, but it's something that I'd like to be able to do more regularly (ie, as part of an automated build) I've been spending some time recently poking around with the Selenium