About this question
I'm assigning priority to each test method in a specific class under my automation project.
My senior reviewed the script I wrote and mentioned to me that do not use priority instead use the xml to order the execution of the methods.
I wanted to know if using priority for each method is a good approach or not.
I had an issue before regarding the order in which the methods were getting executed. That's why I started using the priority technique.
If someone has suggestions please help me to understand it. I'm new to programming language and automation