Question
What is timeout in TestNG?
Answer
The maximum number of milliseconds the test should take.
Sample Code:
@Test(timeOut=1000) // time in milliseconds public void timeOutExample(){ System.out.println(""Timeout test""); }
The above test should be executed within 1000 milliseconds. Other test will be failed.