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

java - Cast from Object to List<String>: CastClassException -

How to set a border for android Imageview in Longpress? -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -