Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium RC:How to launch Interactive testing with Multiple browsers

I want to automate this scenario. UserA assign an item to UserB, who gets an alert message. In order to do this I want to have two different browsers launched with different accounts to test this interaction. Is is possible to do this? If yes, how?

like image 689
onesith Avatar asked May 14 '10 17:05

onesith


People also ask

How do I run Selenium test cases in different browsers?

Create an XML which will help us in parameterizing the browser name and don't forget to mention parallel="tests" in order to execute in all the browsers simultaneously. Execute the script by performing right-click on the XML file and select 'Run As' >> 'TestNG' Suite as shown below.

Does Selenium RC support all browsers?

It mainly supports browsers like Firefox, Chrome, Safari and Internet Explorer. It also permits you to execute cross-browser testing. WebDriver also enables you to use a programming language in creating your test scripts (not possible in Selenium IDE).

Can Selenium run multiple browsers?

Selenium is able to run tests in parallel, but CrossBrowserTesting makes it even simpler - allowing you to test across multiple browsers and mobile devices with just a few extra lines of code.

Can you run parallel tests in 2 different browsers?

With Parallel Testing, you can run the same test on different browser/device combinations i.e. cross-browser testing, or run different tests on the same or different browser/device combinations. Parallel Testing will help you reduce the run time of your test suite, resulting in faster build times and faster releases.


1 Answers

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.

like image 186
Daniel Beardsley Avatar answered Oct 19 '22 09:10

Daniel Beardsley