It may sound a very basic question,how does selenium scripts are executed for a enterprise/project/application? Scripts are created in java using locators etc and lots of tests are created.Tests are structured via TestNG and i can run these test via IDE(eclipse for me) using Run as " TestNG suite" . As i am in learning phase for selenium i am curious, if this is the only way or some other process as well. I want to understand how the complete packaging/deployment/execution of scripts happens along with other dependencies like additional libraries for TestNG or excel utilities etc(using maven or others).
I tried searching on web , but nothing of this sort is available or i am not searching the correct way.