This “Ignored” means the method is not ready to test, the TestNG engine will just bypass this method.
package testWordpress; import org.testng.annotations.AfterClass; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class Test_tag { @BeforeClass public void NavigateTotagPage(){ System.out.println(""); System.out.println("Click on tag page of wordpress-------------"); System.out.println(""); } @AfterClass public void writeStatusToExcel(){ System.out.println(""); System.out.println("Write Pass/Fail/Skip status to Excel / HTML report"); } @BeforeMethod public void VerifyExecutionStatus(){ System.out.println(""); System.out.println("Verify testcase execution status from excel"); } @AfterMethod public void WriteStatusToExcel(){ System.out.println("Write Testcase Pass/Fail/Skip status to Excel / HTML report "); System.out.println(""); } @Test public void AddnewTag(){ System.out.println(" Testing Add new Tag"); } @Test(enabled=false) public void EditTag(){ System.out.println(" Testing Edit Tag"); } @Test(enabled=false) public void ViewTag(){ System.out.println(" Testing View Tag"); } @Test(enabled=false) public void DeleteTag(){ System.out.println(" Testing Delete Tag"); } }
EditTag, ViewTag, DeleteTag are not going to execute.
Lets check testNG result pane
Check TestNG HTML report