Skip to toolbar

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 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 tests and organize test Cases.
  8. Test cases can be grouped and Prioritized based on the requirement.

2 thoughts on “TestNG – 1 || Introduction and benefits of TestNG Framework.

Leave a Reply

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

Site Statistics

  • Users online: 0 
  • Visitors today : 2
  • Page views today : 2
  • Total visitors : 49,316
  • Total page view: 67,887

   YouTube ChannelQuora

            Ashok Kumar is working in an IT Company as a QA Consultant. He has started his career as a Test Trainee in manual testing in August 2010. Then he moves towards the automation testing after 4 years. He started learning JAVA and Selenium by self to get the knowledge of automation.

       While learning these tools and working on multiple projects, he found that sometimes people get stuck in live scenarios in their project and they have to do lots of RnD to get out of it. So he decided to start blogging only for such scenarios, where anyone facing any problem in their project, can ask any question or give a solution or you can say an alternate solution to achieve the goal successfully.

Later on, he observed that some people want to learn Java but they have few questions in their mind like how to start Java, whether we should go for the online or offline course. So he started writing tutorials on Java, Jira, Selenium, Excel etc.