Building Test Automation Framework using Selenium and TestNG

4.6
stars
10 ratings
Offered By
Coursera Project Network
In this Guided Project, you will:

Understanding test automation frameworks

Writing reusable components and utilities

Creating layered and structured code

Clock3 hours
AdvancedAdvanced
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

Selenium is one of the most widely used functional UI automation testing tools and TestNG is a brilliant testing framework. Test automation frameworks are a set of guidelines or rules for writing test cases. They can reduce maintenance costs and testing efforts and will provide a higher return on investment (ROI) for teams looking to optimize their processes. Testing guidelines include coding standards, test-data management, defining object repositories, reporting guidelines, and logging strategies. Through hands-on, practical experience, you will go through concepts writing reusable and structure code which is easy to maintain and understand, creating helper classes or utilities, write effective testcases, and generating reports and logs.

Skills you will develop

test automation frameworkSoftware TestingFramework developementSeleniumSelenium with Java and TestNG

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Understanding Test Automation Framework and creating a directory structure

  2. Creating an automation layer and writing a generic method to invoke a browser and navigate to a URL

  3. Writing wrapper methods to perform user actions

  4. Creating an application layer - using POM or Page Factory as a design pattern

  5. Adding logic to the application layer

  6. Writing test cases in the test layer

  7. Executing test cases via TestNG XML file

  8. Reading configuration from config.properties

  9. Generating logs and reports using Extent report

  10. Adding screenshots to failed test cases and attaching to the report

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Reviews

TOP REVIEWS FROM BUILDING TEST AUTOMATION FRAMEWORK USING SELENIUM AND TESTNG

View all reviews

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.