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, Share the post with others if find useful, Any queries?, leave comments or discuss on our facebook:qavalidation.com, Thanks!

Leave a Reply

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

%d bloggers like this: