TestIndex always -1 if all tests of the root scenario is a subscenarios that 'marked as Tests'
may be this is a bug ?
i try to get testIndex from RunnerStatePersistencyManager.getInstance().getActiveTestIndex();
may be there is a other way ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yeah, it seems to be a bug. I will appreciate if you open a bug in the bug tracker.
Just on top of my head, a good way to get the test index is to implement the TestListener or ExtendTestListner interfaces and register to the ListenerstManager singleton. This way you will get an event in every test start and end and you can just count the events.
By the way, a system object is already registered to the ListenerstManager, so all you need to do is to implement one of the interfaces.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
notes that this counter will effect the "reports.testIndex.xml" (aka
"reports.0.xml") - this xml file is the result file in Xml Jsystem format.
there is others places in the code that have hard coded reference to that
file....
TestIndex always -1 if all tests of the root scenario is a subscenarios that 'marked as Tests'
may be this is a bug ?
i try to get testIndex from RunnerStatePersistencyManager.getInstance().getActiveTestIndex();
may be there is a other way ?
Yeah, it seems to be a bug. I will appreciate if you open a bug in the bug tracker.
Just on top of my head, a good way to get the test index is to implement the TestListener or ExtendTestListner interfaces and register to the ListenerstManager singleton. This way you will get an event in every test start and end and you can just count the events.
By the way, a system object is already registered to the ListenerstManager, so all you need to do is to implement one of the interfaces.
done
see this one: https://sourceforge.net/p/jsystemtest/bugs/112/
notes that this counter will effect the "reports.testIndex.xml" (aka
"reports.0.xml") - this xml file is the result file in Xml Jsystem format.
there is others places in the code that have hard coded reference to that
file....
On Wed, Jan 23, 2013 at 9:16 AM, Roman romangnew@users.sf.net wrote: