Gartner Research

A Guidance Framework for Automating Your Front-End Web Testing Using Selenium

Published: 11 May 2016

ID: G00292624

Analyst(s): Sean Kenefick

Summary

Modern web applications use HTML5, JavaScript and CSS to facilitate communication between clients and servers. Developers and testers can use this guidance framework to build a Selenium-based testing process that provides reusable artifacts and effectively validates the front end of applications.

Table Of Contents

Problem Statement

The Gartner Approach

The Guidance Framework

  • Step 1. Use a Layered Test Strategy, and Determine Your Coverage Goals
  • Step 2. Rely on Testable Source Code
  • Step 3. Prepare to Use Selenium
    • Selenium Capabilities
  • Step 4. Choose a Framework for Test Automation
    • Creating Your Own Test Automation Framework
    • Test Automation Frameworks Models
  • Step 5. Write Highly Reliable and Portable Scripts

Risks and Pitfalls

  • Custom Frameworks Are Complicated and Difficult to Use
  • Teams Spend Too Much Time Waiting for Tests
  • Teams Gain False Sense of Coverage With Poorly Written Tests and Destructive Testing Techniques
  • Only Expert Team Members Have Access to Tests

Gartner Recommended Reading

©2019 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates. This publication may not be reproduced or distributed in any form without Gartner’s prior written permission. It consists of the opinions of Gartner’s research organization, which should not be construed as statements of fact. While the information contained in this publication has been obtained from sources believed to be reliable, Gartner disclaims all warranties as to the accuracy, completeness or adequacy of such information. Although Gartner research may address legal and financial issues, Gartner does not provide legal or investment advice and its research should not be construed or used as such. Your access and use of this publication are governed by Gartner’s Usage Policy. Gartner prides itself on its reputation for independence and objectivity. Its research is produced independently by its research organization without input or influence from any third party. For further information, see Guiding Principles on Independence and Objectivity.

Already have a Gartner Account?

Become a client