I don’t have doubts that the question was asked — it just does not really belong to “API testing” topic. It’s common that some company want to test if the person they may hire is skilled with Java and Test NG, but that is not really about API testing.
You can run requests from Postman, SoapUI, Jmeter, many other tools in different languages. There is no any particular need to use TestNG for that.
I’d put the topic like you added it below the title: “How can I read the input data from HTTP source every x seconds in TestNG?”
Privacy & Cookies
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.