Welcome to the next episode in our new series “Integrating testing into your development flow”. Today we are going to be looking at “TestNG Testing Types: A Comprehensive Look Into How To Use Them”.

In our first few presentations, we covered how to build the documentation for a test strategy and test plan. These documents are useful to help the business clearly define the software requirements that both the developers and testers will use to test the software. Then, we went into how unit tests fit into the Software Test Life Cycle and looked at some examples. Previously, we walked through how to get started with TestNG and create some test cases.

Today we are going to move into the next grouping of TestNG, and focus on the different TestNG Testing Types. Such as, exception testing, dependency testing, parameterized testing and running JUnit. As for exception testing, we look at how to write tests that test for a specific type of exception (like an arithmetic exception and a null pointer exception). Subsequently, we create a test case for each of the dependency test cases (depends-on-group and depends-on-method). Then, we look at how to create parameterized tests that pass parameters through the testng.xml, data providers and a CSV file. Finally, we look at how to take existing legacy JUnit tests and run them inside of the testNG framework.

Topics covered in TestNG Testing Types: A Comprehensive Look Into How To Use Them

    • Exception Testing
    • Dependency Testing
    • Parameterized Testing
    • Running JUnit Tests

This series comes from our mentoring/mastermind classes.  These classes are virtual meetings that focus on how to improve our technical skills and build our businesses.  The goals of each member vary.  However, this diversity makes for great discussions and a ton of educational value every time we meet.  We hope you enjoy viewing this series as much as we enjoy creating it.  As always, this may not be all new to you, but we hope it helps you be a better developer.

More information on Using TestNG

Other Classes, You Might Consider:

Leave a Reply