We need to set the test case name dynamically at run time. I'm using WebTestFactory to execute same test case with different parameters but we need to provide different test case name for each run.
Please advise.
We need to set the test case name dynamically at run time. I'm using WebTestFactory to execute same test case with different parameters but we need to provide different test case name for each run.
Please advise.
TestNG has an interface org.testng.ITest
. Implement this interface by implementing
public String getTestName();
In your test methods, set parameters so that getTestName()
can return a meaningful name.