Tag Archives: Software Selenium testing

How Selenium Testing Scripts Can Be Performed on Different Browsers?

Many, almost every software application, at present, are written as web-based app which can run in an internet browser. The efficiency of testing these apps differs greatly among organizations and companies. In the period of highly responsive and interactive software procedures, where many companies are relying on Agile methodology, test automation is becoming a necessity for software projects. Test automation indicates using a software tool to perform repeatable tests against the app to be tested.

To ease the task powerful automation tools are coming up in the market like Selenium, as most of the softwares developed today are Agile adopted and browser based. There has been a massive progress in the features of Selenium that focuses on easy- to- use, competent GUIs and can meet the requirements of most app testers by 90% or more. Selenium holds the top position in the software market with these features:

  • Powerful and simple DOM (Document Object Model) level testing, can be employed for nonstop integration with Agile projects
  • Supports numerous browsers like Fire Fox, Safari, Internet Explorer, or Opera on Linux, Mac OS X and Windows
  • Great flexibility and extensibility, tight integration with browser, unmatched by on hand proprietary tools
  • Wires OOP (Object Oriented Programming) languages such as Ruby, JAVA, PHP, .NET, Perl, etc.

Components of Selenium  

There are 4 variations of Selenium, which can be combined or used individually to develop a complete automation suite for web apps. These are:

  • Selenium IDE –Enhancing , creating or recording scripts
  • Selenium Remote Control (RC)– implementing scripts
  • Selenium Web Driver (API) – multiple browser testing
  • Selenium Grid – Cross platform testing

Choosing the right tool

Several people start with Selenium IDE. If if you have no prior experience with scripting or programming language, it is better to use Selenium IDE to familiarize with Selenium commands. By making use of IDE, you can perform simple tests swiftly, sometimes within few seconds.

However, to use Selenium effectively, you will be required to build and run tests by using Selenium 1 or Selenium 2 by combining one supported programming language. So, it is solely on you to decide which one to pick.

While writing, the Selenium developers are setting up on the Selenium WebDriver API. For backward compatibility, Selenium 1 is used. Still, both have weaknesses and strengths which can be figured out at the time of testing.

Activities to be performed during testing

  • Collect the working flows from clients
  • Preparing for test and Selenium framework plan
  • Assign talented resources and offer sufficient training to the new resources
  • Setting up for software installation and test environment
  • Create test scripts with Selenium IDE by using XPath method
  • Use Eclipse to convert scripts
  • Perform every test in Selenium RC using Eclipse as IDE by Batch Scheduling
  • Use WebDriver to run multiple scripts
  • Perform all the tests for each build and multiple builds, every day
  • Reuse test scripts with fewer modifications like revising scripts for every build
  • For speedy actions, generate HTML reports and share it with the team

Areas to be focused while testing

While performing the test, few areas need extensive concentration. These are:

  • Selenium tests as a segment of each build
  • Depending on build release, execute acceptance tests in regression test suite
  • Find bugs in the earlier stages and address the risk of removing bugs in the cycle, later
  • Test the existence of static UI elements
  • Focus on every navigation links to missing pages or broken links
  • Test the functions of input page that comprise of several input fields, check boxes and buttons. Some of these are Account Setting, User Profile, etc.
  • Test dynamic elements with different HTML Ids
  • Execute test in multiple browsers like IE, Chrome, Firefor, etc.
  • Test dynamically varying UI elements like RSS feeds, animation, etc. without having to reload the web page.

It is recommended that those who are new to selenium, and are developing a new test suite from the scrape, it is a good choice to go with Selenium 2, because this variation of Selenium will be supported in the upcoming years.