Overview
TestNG is a testing framework designed to simplify a broad range of testing needs, from unit testing (testing a class in isolation of the others) to integration testing (testing entire systems made of several classes, several packages and even several external frameworks, such as application servers).
Audience
This course is crafted for engineers and developers seeking to adopt the TestNG suite in their workflow.
Requirements
Delegates should have basic programming skills, basic knowledge of testing procedures, or prior experience with other testing frameworks.
Course Outline
Getting Started
- Annotations
- testng.xml
- Running TestNG
Test methods, Test classes and Test groups
- Test methods
- Test groups
- Groups of groups
- Exclusion groups
- Partial groups
- Parameters
- Dependencies
- Factories
- Class level annotations
- Parallelism and time-outs
- Rerunning failed tests
- JUnit tests
- Running TestNG programmatically
- BeanShell and advanced group selection
- Annotation Transformers
- Method Interceptors
- TestNG Listeners
- Dependency injection
- Listening to method invocations
- Overriding test methods
- Altering suites (or) tests
Test results
- Success, failure and assert
- Logging and results
YAML