Sunday, 8 January 2012

Beginner's guide to Selenium


Overview –
Selenium IDE is an integrated development environment for performing automation tests for web applications.  Selenium tests can be written as HTML tables or coded in various languages like Java , C#, PHP, Perl, Python and can be run directly in most modern browsers (Firefox, IE, Chrome, Safari) present in the industry. The IDE can help you to record, edit and debug tests. Selenium IDE is only available for Firefox.

Pre requisite for Test Developer –
1.       Experience on QTP does help to quickly learn Selenium as the base of automation remains the same.  
      For those who aren’t much experience in to QTP / automation, should read some books, blogs on QTP    
      to understand how it works.
2.       Knowledge of any one of these languages (Java , C#, PHP, Perl, Python) is must, otherwise you will   
       end up with only recorded scripts and won’t be able to enhance them.

Selenium installation—
1.       Install Firefox (http://www.mozilla.org/en-US/firefox/new/)


2.       Install Java jdk: Download jdk (not JRE) without Netbeans IDE or JEE. 
      (http://www.oracle.com/technetwork/java/javase/downloads/index.html)


3.       Install (optional) Junit for java rc client(ONLY if you are using java client, you also need to add selenium   
       java client driver in classpath)


Main TOOLS Installation:


4.       Install Selenium IDE (http://seleniumhq.org/download/)
            After installation - you should see selenium ide option in Firefox.


Example –
We will see how to create a simple test in Selenium. So let’s get started.



0 comments:

Post a Comment