In which order do TestNG test methods run without priorities?
QuizEasy-MediumJava onlyAsked in: Accenture, Capgemini
A class declares @Test zeta(), then @Test beta(), then @Test alpha(), in that order in the file. None has a priority or a dependency. In which order do they run?
- alpha, beta, zeta: method-name order
- zeta, beta, alpha: the order they are written in
- A random order on every run
- All at the same time
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.