Hi Bagy,
Please refer the testng documentation for this
http://testng.org/javadoc/org/testng/annotations/Optional.html
some snippets posted below for your easy understanding.
Parameters can be declared optional with the Optional annotation:
@Parameters("db") |
@Test |
public void testNonExistentParameter(@Optional("mysql") String db) { ... } |
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
--