Deprecated Methods |
org.testng.TestNG.configure(Map)
use new configure(CommandLineArgs) method |
org.testng.xml.SuiteGenerator.createCustomizedSuite(String, Collection, Collection, Collection, Collection, Map, String, int)
use SuiteGenerator.createSuite(String, java.util.Collection, java.util.Map,
java.util.Collection, java.util.Map, String, int) instead. |
org.testng.TestNG.getDefault()
since 5.1 |
org.testng.ITestNGMethod.getInstances()
Use getInstance(). |
org.testng.IMethodInstance.getInstances()
Use getInstance() |
org.testng.ISuite.getInvokedMethods()
Use getAllInvokedMthods(). |
org.testng.ITestNGMethod.getMethod()
This method is deprecated and can now return null. Use
getConstructorOrMethod() instead. |
org.testng.annotations.IParameterizable.getParameters()
Use @Parameters |
org.testng.xml.XmlTest.getParameters()
Use getLocalParameters() or getAllParameters() |
org.testng.xml.XmlInclude.getParameters()
Use getLocalParameters() or getAllParameters() |
org.testng.xml.XmlClass.getParameters()
Use getLocalParameters() or getAllParameters() |
org.testng.TestNG.isJdk14()
|
org.testng.asserts.IAssertLifecycle.onAssertFailure(IAssert)
use onAssertFailure(IAssert assertCommand, AssertionError ex) instead of. |
org.testng.asserts.Assertion.onAssertFailure(IAssert)
use onAssertFailure(IAssert assertCommand, AssertionError ex) instead of. |
org.testng.reporters.FailedReporter.onFinish(ITestContext)
this class is used now as IReporter |
org.testng.xml.XmlTest.setClassNames(List)
use setXmlClasses |
org.testng.TestNG.setHasFailure(boolean)
since 5.1 |
org.testng.TestNG.setHasFailureWithinSuccessPercentage(boolean)
since 5.1 |
org.testng.TestNG.setHasSkip(boolean)
since 5.1 |
org.testng.TestNGAntTask.setListener(String)
Use "listeners" |
org.testng.TestNG.setTestNGVersion()
The TestNG version is now established at load time. This
method is not required anymore and is now a no-op. |