26
Mar

How to modify the TestNG annotation’s value at run-time

Following code will never get executed import org.testng.annotations.Test; public class ExampleTestNG { @Test(enabled = false) public void invoke() { System.out.println(“Function invoked…..”); } } Output: ——- =============================================== Default suite Total...

Read More