TestNG – 1 || Introduction and benefits of TestNG Framework.

TestNG framework (where NG stands for Next Generation) is a testing framework which supports JAVA language. Mainly it is used while working on Key Driven Framework.

Mainly, it helps any programmer or automation engineer from two sides:

  1. Create and Organize Test Cases
  2. Execute Test Cases in a systematic way and generate Reports.
TestNG Framework
TestNG Framework

Things to Remember while using TestNG Framework

  1. The important point is that for a program written in the TestNG framework doesn’t require any main() for the execution.
  2. These programs contain only methods having @Test Annotations.
  3. Use of pre-defined annotations and attributes. These are like keywords or a single line of code to define the flow of the program at run time.

Benefits of TestNG Framework

  1. TestNG can generate reports in HTML and XML format. The XML format can be used to generate further custom Reports.
  2. Along with the Reports, we can also generate Logs.
  3. We can configure test suites using test methods, classes, packages etc.
  4. Dependent test cases can be written.
  5. Parallel Testing, Parameterization Testing can be performed.
  6. Data Driven testing can be performed.
  7. TestNG annotations are easy to create test and organize test Cases.
  8. Test cases can be grouped and Prioritized based on the requirement.

Related Links:

Java Basic:

Java File Handling:

OOPs Concept:

Java Question And Answer:

Java Programs:

Excel:


1161total visits,27visits today

Leave a Reply

Your email address will not be published. Required fields are marked *