Wednesday, February 24, 2010
- Download Selenium Ide for firefox and add it to firefox.
- Download the Selenium RC distribution zip.
- Download Junit-4.5.jar
- Basic knowledge of Java is necessary.
- Open Firefox . Start the selenium IDE by going to Tools → Selenium IDE.
- By default the recording feature of selenium IDE will be started. This can be identified by checking the Red circular icon on the right hand side of the window. If not clicking on the icon will start the recording.
- Now record your test by opening a web page and doing some action over it. For ex.
- Open the http://www.google.com/
- Type “Selenium” in the search page.
- Click on “Search” button.
- Now click on the “Selenium Web application testing system”.
- Now go to the Selenium IDE window and stop the recording by clicking on the Red circular icon on the Right side of the window.
- Now your test is recorded. To verify your test you can re-run your recorded test by clicking onto the Play icon on the selenium window.
- Once your recording is verified. Click on Options → Format → Java(JUnit)-SeleniumRC. This will convert your recorded test into the Java -Junit format.
- Now install any Java IDE you want to use and create a new Java Project. I used Eclipse for developing my cases.
- After creation of new project , create a new Java class under the project. Now copy the Java-JUnit code from the Selenium IDE and paste it to this new Java class.
- Change the class name from the Selenium Ide to the Java Class file name that you created inside your project.
- Now add to the build path of the Java Project in Eclipse IDE "selenium-java-client-driver.jar" from the Selenium-java-client-driver folder under the Selenium RC distribution that you had downloaded. Also add "Junit-4.5.jar" to the build path.
- To Verify your Selenium RC set-up in Eclipse IDE you have to start the Selenium RC server first. This you can do by going to the Selenium-server folder under the Selenium RC distribution that you had downloaded using the command prompt and running the command “java -jar selenium-server.jar”
- Once the server is started Verify your test case by going to the Eclipse IDE and running the test-case as a Junit case.
- Once your test case is executed properly your Selenium-RC setup is ready.
- You can write your custom code over it and do whatever actions you want to do.
- In the similar way you record your Test-cases through Selenium IDE and bring it to Selenium RC for modifications.
Friday, February 19, 2010
One of the famous automation tool in industry is Selenium. Its an Open Source Functional Testing tool.
Selenium provides mainly three types of tools that you can use for automation.
1.Selenium IDE - is a Firefox add-on that records clicks, typing, and other actions to make a test, which you can play back in the browser.
2.Selenium RC - runs your tests in multiple browsers and platforms. Tweak your tests in your preferred language.
3.Selenium Grid - extends Selenium RC to distribute your tests across multiple servers, saving your time by running tests in parallel.
It is an integrated development environment for Selenium tests. It is implemented as a Firefox extension, and allows you to record, edit, and debug tests. Selenium IDE includes the entire Selenium Core, allowing you to easily and quickly record and play back tests in the actual environment that they will run.
Selenium IDE is not only recording tool: it is a complete IDE. You can choose to use its recording capability, or you may edit your scripts by hand. With autocomplete support and the ability to move commands around quickly, Selenium IDE is the ideal environment for creating Selenium tests no matter what style of tests you prefer.
Selenium RC comes in two parts.
1.A server which automatically launches and kills browsers, and acts as a HTTP proxy for web requests from them.
2.Client libraries for your favorite computer language.
The RC server also bundles Selenium Core, and automatically loads it into the browser.
Selenium Remote Control is great for testing complex AJAX-based web user interfaces under a Continuous Integration system. It is also an ideal solution for users of Selenium Core or Selenium IDE who want to write tests in a more expressive programming language.
Selenium RC can only execute your programs in a single type of environment and limited to a single machine. Selenium Grid gives you the power to execute multiple tests in parallel and also onto some remote machines hence saving the time for the test execution.
In my coming posts I will describe in detail how to use Selenium for automation.
Monday, February 1, 2010
Hi this is my first Blog and in this I would like to tell you about me.
My Name is Varun Menon and currently I am a Senior QA Engineer in the company. I currently hold around 4+ years of experience in software industry. I have expertise in both Manual as well as Automation testing.
Worked mainly on Mobile based application Testing and Web-based application testing.
In this blog I will mainly write about technical things. The things I had worked upon and my ideas.
Hope you like it.
Also feel free to comment or suggest.