Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. QA Testing
  3. Question
QA Testing

Is using testNg priority good?

Asked by Anil Mer Apr 27, 2022 1.1K views 1 answer
Share

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


Your answer

1 Answer

More QA Testing discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest QA Testing Blogs

Guides, tips and career advice on QA Testing from JanBask experts.