Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
336 views
by The go-to Tester (344 points)
retagged by
What is the use of @test method alwaysRun in TestNG

1 Answer

1 like 0 dislike
by The go-to Tester (473 points)
selected by
 
Best answer

alwaysRun = true

It means, if any test methods get failed or skipped because of some reason, it will not affect to the execution of this test  method which has parameter (alwaysRun = true).

Method with this annoation will run in any scenario. Now the result of this test script can be anything. Result is not related to parameter (alwaysRun = true). This paramter is only for running this test script 


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...