TestNG script is run by right-click on the TestNG class -> Run As -> TestNG Test. Subsequently, learn How To Install TestNG In Eclipse And IntelliJ.