Você está na página 1de 2

What is Selenium Grid? Have you used it in your project?

Explain the implementation details and problems you faced? -Selenium GRID is tool from Selenium, which extends functionality of Selenium RC. -With Selenium GRID, we can run tests parallel on multiple machines or web browsers. Machines can run different browsers and OS. -So, With Selenium GRID, we can have multiple RC servers running parallel and selenium GRID manages all of them. -Yes, I used Selenium IDE for my project with Union Bank of California. -My target was to run RC server on two different machines, one with Windows XP with IE browser and one with windows XP with Firefox browser. - I downloaded Selenium GRID distribution on a host machine with Windows XP, which will work as GRID hub. -Added the directory Path to Ant, so that Ant can access it. -Specified different ports for each selenium RC server and ran RC server on both machines and the tests. Problem Faced: -With the IE browser I had to install a dummy security certificate on RC server.

Describe technical problems that you had with Selenium tool? -While using Selenium RC, I wanted to automate tests on IE7 (Internet Explorer) browser. But while executing test for IE, I needed to install dummy certificate that is provided in Selenium RC.

-IE was slow with Xpaths in my Selenium RC scripts

What are the advantages and disadvantages of using Selenium as testing tool? Advantages: -Selenium supports various languages to write test scripts -Selenium supports multiple browsers -We can extend RC and run multiple RC servers to run tests in parallel using Selenium GRID. - You can record scripts with Selenium IDE or write scripts with Selenium RC.

Disadvantages: -Selenium IDE works with Firefox browser only.

-Selenium RC cant automate file uploads and downloads. -Without Selenium GRID, you cannot run more than one RC server on one machine.

What are the advantage and features of Selenium IDE? -Advantage of Selenium IDE is that it will record test script for us and we dont have to write them. It will record user interactions with web browser (firefox) -The script recorded can be made available with various languages like Java- Junit tests scripts, HTML and Ruby -Its easy to record and playback tests in selenium IDE -There are various assert and verify methods to support testing -Selenium IDE will intelligently locate the html elements based on ID,names,XPath and DOM

What is the use of context menu in Selenium IDE?

-Context menu is very handy feature. It will allow us to test various elements of pages by just right clicking on element and selecting which command we want to run on that. That will result in a command listed in your script for that element.

What problems do you face in recording Ajax calls with Selenium?

-Selenium doesnt support lot of methods for AJAX testing, but I used waitforcondition() method for that. -Sometimes it times out while waiting for AJAX response due to more delay.

Você também pode gostar