Exploring TestNG


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description
TestNG is a testing framework inspired by JUnit and Nunit. It supports a wide variety of test categories. This course covers features and benefits of TestNG, TestNG requirements, Eclipse setup, TestNG plugin setup, how to make a basic test, a discussion of test.xml, and how to create a test suite. Also learn how to run multiple tests via testing.xml, and use annotations with your Java projects. As a review exercise, you will define TestNG, including concepts of installing and configuring the framework, and create a basic test and test suite.

Target Audience
Software professionals, testers, developers, and anyone interested in learning TestNG to improve their unit testing; anyone interested in learning about integration and API testing

Prerequisites
None

Expected Duration (hours)
0.7

Lesson Objectives

Exploring TestNG

  • start the course
  • define TestNG and describe its purpose in unit testing
  • demonstrate specific features and benefits, including test case writing, of TestNG
  • list the requirements for installing TestNG for all available platforms
  • list the steps for installing Eclipse on all available platforms and mapping the necessary directories
  • describe the steps of installing the TestNG plugin in Eclipse and verifying that it is successful
  • demonstrate the process of creating a project and a basic test using Eclipse and TestNG
  • recognize the concepts behind using the testng.xml configuration file, including when to use it
  • demonstrate the process of creating a test suite and testng.xml file and executing it
  • demonstrate the process of creating a testng.xml file to run multiple tests
  • describe the use of annotations in TestNG, including order of execution and benefits
  • demonstrate the use of Before and After annotations and execute a Java project that includes various types
  • define TestNG, including concepts of installing and configuring the framework, and create a basic test and test suite
  • Course Number:
    sd_teng_a01_it_enus

    Expertise Level
    Beginner