Skip to content

Instantly share code, notes, and snippets.

@gururajhm
Created December 3, 2016 13:57
ignoretest
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