Introduction to TestNG

In this section you will learn introduction to TestNG ,some basic features and installation of the installation of the TestNG. Our TestNG tutorial is designed for beginners and professionals. Let’s talk about introduction to TestNG in details

TestNG is nothing but a testing framework in selenium in which we can create automation test script by using annotation like @Test, @BeforeTest, @AfterTest.etc. Addition to create functional test case, TestNG is also used to create test script for Unit Testing. Let’s discuss what is unit testing.

Unit Testing is a software using Test method by using the virtual code or test Method. This is testing each specific class to meet the Business requirements. Unit Test focus on the smallest unit of software design. When you are writing the Test case you only writing the logic, all test data, and Execute.

TestNG is a framework which need to execute the Unit Test. This is one of the most important components when you planned for starting and developing the framework from scratch. TestNG is a framework of Java which is Open Source. NG is TestNG stands for Next Generation. This automated the concept inspired by both JUnit and NUnit.

Though it is inspired from JUnit and NUnit , but it introduced some new functionalities that makes TestNG more powerful. TestNG is designed to be better than JUnit when testing integrated classes. Cedric Beust should be thanked who is creator of TestNG which makes Unit testing easier.

This is most powerful and easier to understand because of its annotation. This is very popular testing framework because this can extend to a wide range of testing requirements like Unit Testing, Functional Testing, end-end Testing, Integration Testing etc.

Conclusion:

TestNG is nothing but a testing framework in selenium in which we can create automation test script by using annotation like @Test, @BeforeTest, @AfterTest.etc. Addition to create functional test case, TestNG is also used to create test script for Unit Testing. Let’s discuss what is unit testing.

It requires JDK 5 or above to be compatible with platform This eliminates the limitation of the older Unit testing framework and provides developer to develop flexible test with the help of Annotation, Grouping, Parameterization etc.

2 thoughts on “Introduction to TestNG

  1. Greetings from California! I’m bored at work so I decided
    to check out your website on my iphone during lunch break.
    I enjoy the knowledge you present here and can’t wait to
    take a look when I get home. I’m shocked at how quick your blog loaded on my
    mobile .. I’m not even using WIFI, just 3G .. Anyways, wonderful blog!

Leave a Reply

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