Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

Unit Testing with testNG

The testNG - Essentials training course covers the features of the testNG tool and how to create unit test cases using testNG.

The testNG - Comprehensive training course introduces the Next Generation Java Testing Framework: testNG, & explains its goals and features, and shows how to apply them in real-world software environments.

By attending testNG Essentials workshop, delegates will be clear with the basic concept of TestNg and will be able to create unit test cases using testNG.

By attending Unit Testing with testNG workshop, delegates will:

  • Understand the limitations of older testing frameworks (such as jUnit) and how TestNG addresses them
  • Learn about the features and benefits of TestNG
  • Be able to integrate TestNG in their existing code, frameworks, and libraries
  • Become proficient in testing critical code features such as encapsulation, state sharing, scopes, and thread safety
  • Learn how to integrate TestNG with Eclipse and Ant

  • Testing fundamentals
  • Java programming knowledge

This testNG class is intended for Java Developers and Quality Assurance Engineers who wish to learn how to test Java programs with TestNG framework.

COURSE AGENDA

testNG - Essentials
(Duration : 1 Day)

1

Introduction to testNG

  • What is testNG?
  • Installation and configuration
2

testNG Annotations

  • What are annotations?
  • Different types of annotations and description
  • Examples :-
    • @Test
    • @BeforeMethod
    • @AfterMethod
3

Assert Statements

  • Overview on assert statements
  • Different types of assert statements and description
  • Examples :-
    • assertTrue
    • assertEquals
    • assertNull
4

Grouping functionality

  • Group anddependsOnGroup features
  • Dependability in test cases
5

Logging and build creation in testNG

  • Log4j with testNG
  • Overview of Apache Ant
  • Build creation using Apache Ant
6

Comparision between JUnit and testNG

  • Grouping mechanism
  • Dependency testing
  • Parameterized testing
testNG - Comprehensive
(Duration : 2 Days)

1

Overview of test Driven Development

2

Overview of Unit testing frameworks

3

JUnit Vs testNG

4

Introduction to testNG

5

Features of testNG

6

Configuring testNG in Eclipse (Indigo/Juno versions)

7

Annotations

8

Annotations with attributes

9

Test methods

10

Test groups

11

Assert Statements

12

Inclusion and Exclusion groups

13

Partial groups

14

Parameters

15

Parameters with Data Providers

16

Dependencies with annotations

17

Class level annotations

18

Factories

19

Create program to run testNG tests

20

Implementing IReporter interface to create Test Results

21

Understanding testNG xml tags and creating testng.xml

22

Invoking testNG from command line, from Ant and maven

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting https://www.encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top
Notice
X