TestNG @Test attributes – AlwaysRun

alwaysRun is a testNG attribute which makes a test method run always even if it’s dependent method is not run…

let’s see the code implementation


Observe the output, even though test1 did not run, test2 executed.

Content posted is based on learning or working experience, please leave comments if anything needs to be added or updated, discuss your queries on our facebook:qavalidation.com, Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: