Created
December 3, 2016 13:57
ignoretest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.testng.annotations.Test; | |
public class DisableTest | |
{ | |
@Test(enabled = true) | |
public void testMethodOne() { | |
System.out.println("Amm in Test method one and set to TRUE."); | |
} | |
@Test(enabled = false) | |
public void testMethodTwo() { | |
System.out.println("am in Test method two."); | |
} | |
@Test | |
public void testMethodThree() { | |
System.out.println("Am in Test method three - Will execute by default"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment