Hi,
For solution 1:
http://testng.org/doc/documentation-main.html#rerunning, the rerun
will startup a new JVM, so it hard to merge your data I think except
you think about some way to do this.
For solution 2: is good, but may not meet your requirement.
For our team, we try to do this type of thing, we define a new test
listener, called xxxReRunListener, which extends IExecutionListener,
ISuiteListener, after all of the suite executed, we will check if we
need to rerun failed test case at onExecutionFinish method.
We will try to generate the failed.xml by ourself because during that
time, this file still not generated.
Later, we will call TestNG.main (file as parameters) to run it.
For this way, it will use one JVM, but it also require your code dont
have so many static staff, otherwise, you have reset lost of staff.
2014-01-28 venkat paloju <
venkat...@gmail.com>: