T
e
s
t
N
G
Complete

Search here for all the info you want in this Blog

Testng Introduction











TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use. TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration, etc…
This page list down all available tutorials on TestNG in this blog. This page will be updated as soon as a new tutorial is published on TestNG.

TestNG, where NG stands for “next generation” is a test automation framework inspired by JUnit (in Java) and NUnit (in C#). It can be used for unit, functional, integration, and end-to-end testing. TestNG has gained a lot of popularity within a short time and is one of the most widely used testing frameworks among Java developers. It mainly uses Java annotations to configure and write test methods.
A few of the features that TestNG has over JUnit 4 are:
  • Extra Before and After annotations such as Before/After Suite and Before/After Group
  • Dependency test
  • Grouping of test methods
  • Multithreaded execution
  • In-built reporting framework
It is written in Java and can be used with Java as well as with Java-related languages such as Groovy. In TestNG, suites and tests are configured or described mainly through XML files. By default, the name of the file is testng.xml, but we can give it any other name if we want to. TestNG allows users to do test configuration through XML files and allows them to include (or exclude) respective packages, classes, and methods in their test suite. It also allows users to group test methods into particular named groups and to include or exclude them as part of the test execution.

No comments:

Post a Comment