Why not make use of ISuite for sharing data between <test> ?
At any point in time from within a @Test method, you can do something like this:
org.testng.ISuite suite = Reporter.getCurrentTestResult().getTestContext().getSuite();
//To set an attribute use
suite.setAttribute("foo", "bar");
//To read a set attribute use
suite.getAttribute("foo");
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.