java - how to set the test case name at runtime using test ng? -


we need set test case name dynamically @ run time. i'm using webtestfactory execute same test case different parameters need provide different test case name each run.

please advise.

testng has interface org.testng.itest. implement interface implementing

public string gettestname(); 

in test methods, set parameters gettestname() can return meaningful name.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -