In the previous chapter we covered the logging and reporting provided by TestNG and different ways to extend the feature to write custom reporter and loggers. In this chapter we will cover how to configure and run test suite through code. This feature helps in configuring and running tests at runtime.
In this chapter we'll cover the following topics:
In the earlier chapters we used the
testng XML configuration files to configure and define TestNG test suites. The problem with the use of XML is that they are static files and ...