Complete Java Servlets Tutorial

dynamic content in servlet

Servlets are Java classes that conform to the Java Servlet API, which allows a Java class to respond to requests. Although servlets can respond to any type of request, they are most commonly written to respond to web-based requests. A servlet must be deployed to a Java servlet container in order to become usable. Although […]

TestNG – Executing Parallel Tests

Parallelism or multi-threading in software terms is defined as the ability of the software, operating system, or program to execute multiple parts or sub-components of another program simultaneously. TestNG allows the tests to run in parallel or multi-threaded mode. This means that based on the test suite configuration, different threads are started simultaneously and the […]

TestNG – Difference between @Factory and @DataProvider

While learning TestNG, many people get confused when they read about the @DataProvider and @Factory annotations – what to use when? and what is better? Let’s take a look at both of their functionalities. Difference between @Factory and @DataProvider Below is the main difference between @Factory and @DataProvider functionalities on TestNG. DataProvider: A test method […]

Java blog for smart concepts and coding practices