---
title: "Discussion on \"Usage of annotations in TestNG\" | Hashnode"
description: "Discussion on \"Usage of annotations in TestNG\". TestNG annotations are defined before methods in the Test class to control the next batch of code/method to be executed.\nIf in case any of the annotations are NOT defined in front of a test method, the compiler just ignores and executes it as a part ..."
url: "https://hashnode.com/posts/usage-of-annotations-in-testng/63d8290bef8a01cca0e1dd6b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Usage of annotations in TestNG](https://vaishnavithetester.hashnode.dev/usage-of-annotations-in-testng?utm_source=hashnode&utm_medium=feed)

TestNG annotations are defined before methods in the Test class to control the next batch of code/method to be executed. If in case any of the annotations are NOT defined in front of a test method, the compiler just ignores and executes it as a part ...

Jan 30, 2023 · 3 min read · vaishnavithetester.hashnode.dev  
Read the article

-   [#testing](https://hashnode.com/tag/testing)
-   [#testng](https://hashnode.com/tag/testng)
-   [#software-testing](https://hashnode.com/tag/software-testing)
-   [#testing-framework](https://hashnode.com/tag/testing-framework)
-   [#testing-library](https://hashnode.com/tag/testing-library)

## Written by

[Vaishnavi Dontha](https://hashnode.com/@Vaishnavi24)

@Vaishnavi24 · USA

  
[View profile](https://hashnode.com/@Vaishnavi24)

Automation Test Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
