RE: How to do exectuion of second method after first method method exectuion only without giving priority?
With in the TestNG, there are many ways of doing this. You can simply create two methods with annotations before and after. By default test method executes alphabetically, so another way of doing this is to name them A & B. You can even do sequencing as well with the help of TestNG, please follow the link: