Decoding TestNG in Detail


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



Overview/Description
TestNG has various annotations and methods to help create complex tests. This course covers test annotation in TestNG, the TestNG assert class, TestNG parameterization, TestNG DataProvider features, the DataProvider method, factory concepts and usage, TestNG grouping, and dependencies. See how to run a dependency test. As a review exercise, you will describe various TestNG annotations, use the assert class and parameterization, define factory and the data provider annotation, describe how groups are used, and finally, show how to use TestNG dependencies.

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.6

Lesson Objectives

Decoding TestNG in Detail

  • start the course
  • describe the use of the @Test annotation in TestNG, including the various important attributes
  • identify the purpose of TestNG assertions and create an example using TestNG Asserts
  • define the use of the parameterization feature in TestNG
  • describe the DataProvider feature in TestNG and what it's used for
  • demonstrate the use of DataProvider by creating a test method including DataProvider
  • recall the dependency of tests and the @Factory annotation
  • use the @Factory annotation to implement tests at runtime
  • describe the concepts of grouping test methods, including grouping tests and regular expressions
  • demonstrate the process of running a TestNG group
  • describe the dependency feature in TestNG, including writing a multiple dependency test and regular expressions
  • demonstrate the process of running a test that depends on or inherits from another artifact
  • describe the various TestNG annotations, including dependencies and groups
  • Course Number:
    sd_teng_a02_it_enus

    Expertise Level
    Beginner