Codekru

Throughput Controller in Jmeter with examples

In performance testing, simulating real-world user behavior is essential to accurately evaluate an application’s capacity and responsiveness. The Throughput Controller in Apache JMeter plays a pivotal role in achieving this realism by controlling the frequency of specific actions within a test plan. It allows testers to distribute the load intelligently, ensuring that test scenarios reflect

Throughput Controller in Jmeter with examples Read More »

Create custom annotation that adds a method in the same class like lombok’s

Annotations are everywhere in modern Java development. You’ve likely seen them in frameworks like Spring (@RestController, @Autowired), JPA (@Entity, @Table), or testing tools like JUnit (@Test, @BeforeEach). These annotations simplify code, abstract complex logic, and help developers focus on core functionality. Today, however, we will shift gears. Instead of exploring existing annotations, we’ll learn how

Create custom annotation that adds a method in the same class like lombok’s Read More »

Assertions in TestNG

When we are writing tests, the goal isn’t just to run the code but to make sure it’s doing what we expect. That’s where assertions come in – they let us confirm that our code behaves as it should. In TestNG, assertions play a key role, helping us verify if our expected outcomes match the

Assertions in TestNG Read More »