O'Reilly logo

TestNg Beginner's Guide by Varun Menon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter we have covered different topics related to unit testing and functional testing through TestNG. We have learned about unit testing, mocking, and the different mocking strategies available in the market. We have also seen some practical examples of using mocking frameworks, such as Jmock and Mockito along with TestNG.

At the end of this chapter we have learned about functional testing and different automation tools available in the market to automate functional testing. We also wrote a sample program in TestNG using Selenium, which is one of the most famous web automation tools in the market.

Unit and functional testing play a key role in the lifecycle of software development as they together help in reducing the time taken ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required