Thanks cedric.
to use the attributes in the context in the beforeMethod/testMethod/
AfterMethod I can set the key as "classname.methodname.keyname" in
beforemethod and use the same key in beforeMethod/testMethod/
AfterMethod.
This would be ok if we say parallel=mehods and method is run once.
However in the case of specifying multiple invocations on the same
methods need to create the keys such as
"classname.methodname.threadid.invocationNumber. keyname" to use the
key in beforemethod/testMethod/Aftermethod.?
The thread id can be retrieved using (thread.currentthread.getid()..
Is there a way to get the current invocationNumber from the
testContext that is injected into beforemethod/aftermethod/
testmethod?
Thanks.