Selenium Rc: Run Tests in Multiple Browsers Automatically

Selenium RC: Run tests in multiple browsers automatically

Did you try Selenium Grid? I think it creates pretty good summary report which shows details you need. I may be wrong, as I didn't use it for quite a while.

Selenium RC: Run tests in multiple browsers automatically

Did you try Selenium Grid? I think it creates pretty good summary report which shows details you need. I may be wrong, as I didn't use it for quite a while.

Selenium RC:How to launch Interactive testing with Multiple browsers

Looks like that question is already answered in my example code: http://stackoverflow.com/questions/213430/selenium-rc-run-tests-in-multiple-browsers-automatically.

firefox = Selenium::SeleniumDriver.new("localhost", 4444, '*firefox', "http://localhost:3000", 10000)
ie = Selenium::SeleniumDriver.new("localhost", 4444, '*iexpore', "http://localhost:3000", 10000)

Then run the commands one the separate browsers how ever you'd like.

Selenium RC: Run tests in multiple browsers automatically

Did you try Selenium Grid? I think it creates pretty good summary report which shows details you need. I may be wrong, as I didn't use it for quite a while.

Selenium Grid on Multiple Browsers: should each test case have separate class for each browser?

I am currently working on a project which runs around 75k - 90k tests on daily basis. We pass the browser as a parameter to the tests. Reasons being:

  1. As you mentioned in your question, this helps in maintenance.
  2. We don't see too many browser-specific code. If you are having too much of browser specific code, then I would say there is a problem with the webdriver itself. Because, one of the advantages of selenium/webdriver is write code once and run it against any supported browser.

The difference I see between my code structure and the one you mentioned in question is, I don't have a test class for each test case. Tests are divided based on the features that I test and each feature will have a class. And that class will hold all the tests as methods. I use testNG so that these methods can be invoked in parallel. May be this won't suite your AUT.

Spawning multiple browsers from Selenium RC utilizing Python

Looking at the 2 code snippets side by side, I think you have inverted the browser and port arguments. This is probably the source of your error.

case1.py (runs fine):

self.selenium = selenium("localhost", 4444, "*chrome", "http://megagate-ffcdcb.xl_net.internal/")

case1m.py (socket error):

self.selenium = selenium("localhost", self.browser, self.port, "http://megagate-ffcdcb.xl_net.internal/")

Selenium RC - How to open two firefox browsers simultaneously

Yes, you can run two tests simultaneously. You should start the RC server on different ports.
Maybe this article helps you:
http://www.zacharyfox.com/blog/testing/selenium-rc-multiple-users

WebDriver. How can I run test in multiple browsers using C#?

You could use Selenium Grid.

See this blog post describing the approach



Related Topics



Leave a reply



Submit