Introduction to TestNG and Integration with Selenium

4.6
stars
36 ratings
Offered By
Coursera Project Network
1,510 already enrolled
In this Guided Project, you will:

Learn annotations in TestNG - @Test, @Before**** and @After****

Learn using attributes with TestNG annotations

Adding assertions to write effective test cases

Clock2 hours
BeginnerBeginner
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

TestNG stands for Test Next Generation is a testing framework that provides the developer the ability to write more flexible and powerful tests with help of easy annotations, grouping, sequencing & parametrizing. It can easily be integrated with automation tools like Selenium and is widely used by automation test experts to write functional tests. In this one-hour guided project through hands-on, practical exercises, you will learn -- 1. Writing test cases using @Test annotation using TestNG 2. Using @BeforeMethod and @AfterMethod annotations and their purpose in TestNG 3. Using @BeforeClass and @AfterClass annotations and their purpose in TestNG 4. TestNG integration with Selenium automation tool 5. Priority and enabled attributes in TestNG to control the order of execution and enabling/disabling a test case. 6. Using Assert statement to add assertions in TestNG 7. Understanding different format of reports in TestNG Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

  • TestNG Testing
  • Functional Testing
  • Unit Testing
  • selenium automation
  • Test Automation

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. Writing test cases using @Test annotation using TestNG

  2. Using @BeforeMethod and @AfterMethod annotations and their purpose in TestNG

  3. Using @BeforeClass and @AfterClass annotations and their purpose in TestNG

  4. TestNG integration with Selenium automation tool

  5. Priority and enabled attributes in TestNG to control the order of execution and enabling/disabling a test case.

  6. Using Assert statement to add assertions in TestNG

  7. Understanding different format of reports in TestNG

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 INTRODUCTION TO TESTNG AND INTEGRATION WITH SELENIUM

View all reviews

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.