Java Testing with TestNG Training Course
Course Summary
Java Testing with TestNG training course introduces students to the Next Generation Java Testing Framework: TestNG, explains its goals and features, and shows how to apply them in real-world software environments.[top] Duration
1 day.
[top] Objectives
By taking this course, students will:
- Learn about the trade-offs associated with testing, so that they can make better decisions about what and how to test
- 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
[top] Audience
Java Developers and Quality Assurance Engineers who wish to learn how to test Java programs with TestNG framework.
[top] Prerequisites
Students must be familiar with Java including principles behind object oriented programming (OOP).
[top] Outline
Introduction to TestNG
- Motivation
- Compared to jUnit
- Overview of TestNG
- Features
- Benefits
Testing with TestNG
- Downloading
- Installing
- Annotations
- Test, Suites, and Configuration Annotations
- Groups
- Configuration via testng.xml
- First TestNG Test
- Reporting
- Integration with Ant and Eclipse
Testing Design Patterns
- Testing for Failures (Exceptions)
- Factories
- Data-driven Testing
- Asynchronous Testing
- Multithreaded Testing
- Performance Testing
- Mocks and Subs
Dependant Testing
- Dependent Code
- Depending on groups and methods
- Threads
- Failures of configuration methods
Test Groups
- Motivation
- Groups and Runtime
- Running Groups
- Using groups effectively