# 3. Testing Frameworks for Selenium

Testing framework is necessary to organize our tests. When the count of automated test increases it becomes very tediuos to manage them. Test frameworks provide us with below features.

1. Setting up data before tests run
2. Cleaning up data after tests are finished
3. Creating suites to run multiple tests
4. Externalize configurations from actual scripts
5. Integration with CI server

We will be using TestNG as our framework of choice, however we will also briefly cover a Junit Test.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://n-saikiran.gitbook.io/selenium-2-web-driver-basics/3.-testing-frameworks-for-selenium.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
